>>performMovement([object Object])): TypeError: Object [object DOMWindow] has no method 'updatePicture'\nTypeError: Object [object DOMWindow] has no method 'updatePicture'\n at eval at (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?330d5a5932cc8dd5235d5ca169e177f3:14259:29)\n at eval at (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?330d5a5932cc8dd5235d5ca169e177f3:14259:29)\n at eval at (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?330d5a5932cc8dd5235d5ca169e177f3:14259:29)\n at Box.performMovement (eval at (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?330d5a5932cc8dd5235d5ca169e177f3:14259:29))\n at TargetScript.execute (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?330d5a5932cc8dd5235d5ca169e177f3:23391:36)\n at TargetScript.tick (http://lively-kernel.org/repository/webwerkstatt/core/generated/combinedModules.js?330d5a5932cc8dd5235d5ca169e177f3:23319:18)\n at bound (http://lively-kernel.org/repository/webwerkstatt/core/lively/bootstrap.js:854:37)","prevScroll":[0,0],"showsHalos":false,"loadingMorph":{"__isSmartRef__":true,"id":24648},"savedWorldAsURL":{"__isSmartRef__":true,"id":24801},"attributeConnections":[{"__isSmartRef__":true,"id":24802}],"doNotSerialize":["$$savedWorldAsURL"],"doNotCopyProperties":["$$savedWorldAsURL"],"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.World"},"1":{"submorphs":[],"scripts":[],"id":"4617CA55-7567-4281-9052-4C1B478631A3","shape":{"__isSmartRef__":true,"id":2},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":8},"_MaxTextWidth":1095.7426289999983,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":5},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"GroupList","partsBinMetaInfo":{"__isSmartRef__":true,"id":9},"textChunks":[{"__isSmartRef__":true,"id":12},{"__isSmartRef__":true,"id":14}],"charsReplaced":"Gruppe 1: Tim Felgentreff, Philipp Tessenow, Lauritz Thamsen: Lively Kernel : Jump and Run: Creative Development\n\nGruppe 3: Josefine Harzmann, Sebastian Oergel, Jan Sandbrink: Lively Kernel: Bejeweled : ???\n\nGruppe 4: Tobias Metzke, Sebastian Meyer, Tobias Pfeiffer: Cloud Nine: Recommendations \n\nGruppe 5: Patrik Schilf, Markus Kahl, Stephanie Platz: Cloud9 oder Dart: Standard Tetris.... nicht super kreativ\n\nGruppe 6: Oliver Richter, Leonhard Schweizer, Marko Röder: Cloud9 | Dart | AppInventor | Lively: ???\n\nGruppe 7: Roland Lux, Willy Scheibel: Lively Kernel: ???\n\nGruppe 8: Hauke Klement, Sebastian Woinar: ???\n\n[Matthias Jacob, Ralf Diestelkämper, Robert Strobl ] ???\n\n\n\n\n\n","lastFindLoc":682,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":16},"renderContextTable":{"__isSmartRef__":true,"id":17},"eventHandler":{"__isSmartRef__":true,"id":18},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":19},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":1095.7426289999983,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":0},"moved":true,"isBeingDragged":false,"_Rotation":0,"_Scale":1.002003004005006,"distanceToDragEvent":{"__isSmartRef__":true,"id":20},"priorSelectionRange":[0,0],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21},"__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},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4":{"x":1103.7426289999983,"y":26,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"8":{"x":18,"y":41,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"9":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":10}],"revisionOnLoad":148789,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"10":{"date":{"__isSmartRef__":true,"id":11},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"11":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"12":{"style":{"__isSmartRef__":true,"id":13},"chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"13":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"14":{"style":{"__isSmartRef__":true,"id":15},"chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"15":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16":{"x":1103.7426289999983,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"17":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"19":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20":{"x":606,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21":{"parseParticipants":{"__isSmartRef__":true,"id":22}},"22":{"varMapping":{"__isSmartRef__":true,"id":23},"source":"function parseParticipants() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":24},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23":{"this":{"__isSmartRef__":true,"id":1}},"24":{"timestamp":{"__isSmartRef__":true,"id":25},"user":"undefined","tags":[]},"25":{"isSerializedDate":true,"string":"Tue Apr 17 2012 13:34:48 GMT+0200 (CEST)"},"26":{"submorphs":[],"scripts":[],"id":"84EA511B-F205-4058-B5B5-40863EB0DD00","shape":{"__isSmartRef__":true,"id":27},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":33},"_MaxTextWidth":595,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":34},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":35},"_TextColor":{"__isSmartRef__":true,"id":36},"renderContextTable":{"__isSmartRef__":true,"id":37},"textChunks":[{"__isSmartRef__":true,"id":38}],"eventHandler":{"__isSmartRef__":true,"id":40},"priorExtent":{"__isSmartRef__":true,"id":41},"derivationIds":[7706],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"_MinTextWidth":595,"_MinTextHeight":null,"_Rotation":-0.325912587928681,"_Scale":1,"previousSelection":[9,18],"charsReplaced":"","lastFindLoc":20,"distanceToDragEvent":{"__isSmartRef__":true,"id":42},"priorSelectionRange":[0,19],"__LivelyClassName__":"lively.morphic.Text"},"27":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":28},"_Extent":{"__isSmartRef__":true,"id":29},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":30},"renderContextTable":{"__isSmartRef__":true,"id":31},"_Padding":{"__isSmartRef__":true,"id":32},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"28":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"29":{"x":595,"y":86,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"30":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"31":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"32":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"33":{"x":31,"y":110,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"34":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"35":{"partsSpaceName":"PartsBin/Wiki/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"36":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"37":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"38":{"style":{"__isSmartRef__":true,"id":39},"chunkOwner":{"__isSmartRef__":true,"id":26},"storedString":"Group 3: Bejeweled\n\n","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"39":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"40":{"morph":{"__isSmartRef__":true,"id":26},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"41":{"x":595,"y":86,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"42":{"x":375,"y":-24,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"43":{"submorphs":[],"scripts":[],"id":"C173CDB2-664F-4594-96F6-BACE9AE191B4","shape":{"__isSmartRef__":true,"id":44},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":50},"_MaxTextWidth":139,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":51},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title1","partsBinMetaInfo":{"__isSmartRef__":true,"id":52},"_TextColor":{"__isSmartRef__":true,"id":53},"renderContextTable":{"__isSmartRef__":true,"id":54},"textChunks":[{"__isSmartRef__":true,"id":55}],"eventHandler":{"__isSmartRef__":true,"id":57},"priorExtent":{"__isSmartRef__":true,"id":58},"derivationIds":[7706],"_WhiteSpaceHandling":"pre-wrap","_ClipMode":"visible","moved":true,"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":0},"_MinTextWidth":139,"_MinTextHeight":null,"_Rotation":0,"_Scale":1,"charsReplaced":"My New World","lastFindLoc":12,"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":59},"__LivelyClassName__":"lively.morphic.Text"},"44":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":45},"_Extent":{"__isSmartRef__":true,"id":46},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":47},"renderContextTable":{"__isSmartRef__":true,"id":48},"_Padding":{"__isSmartRef__":true,"id":49},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"45":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"46":{"x":139,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"47":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"48":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"49":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"50":{"x":598,"y":33,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"51":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"52":{"partsSpaceName":"PartsBin/Wiki/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"53":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"54":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"55":{"style":{"__isSmartRef__":true,"id":56},"morph":{"__isSmartRef__":true,"id":43},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":43},"storedString":"DevSite","__LivelyClassName__":"lively.morphic.TextChunk"},"56":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"57":{"morph":{"__isSmartRef__":true,"id":43},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"58":{"x":139,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"59":{"x":96,"y":-15,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"60":{"submorphs":[],"scripts":[],"id":"9FD90CA0-AC2C-423D-B4AD-8777F17B3A4D","shape":{"__isSmartRef__":true,"id":61},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"courier","registeredForMouseEvents":true,"_MaxTextWidth":791.1474876031417,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":64},"showsHalos":false,"_FontSize":10,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"TextBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":68},"textChunks":[{"__isSmartRef__":true,"id":69}],"charsReplaced":"","lastFindLoc":1093,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":71},"renderContextTable":{"__isSmartRef__":true,"id":72},"eventHandler":{"__isSmartRef__":true,"id":73},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"layout":{"__isSmartRef__":true,"id":74},"_Padding":{"__isSmartRef__":true,"id":75},"_WhiteSpaceHandling":"pre-wrap","_Position":{"__isSmartRef__":true,"id":76},"derivationIds":[2362],"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":0},"_MinTextWidth":791.1474876031417,"_MinTextHeight":null,"moved":true,"_Rotation":0,"_Scale":1,"previousSelection":[1082,1093],"priorSelectionRange":[951,951],"__LivelyClassName__":"lively.morphic.Text"},"61":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":62},"_Extent":{"__isSmartRef__":true,"id":63},"_BorderWidth":0.768,"_BorderColor":{"__isSmartRef__":true,"id":64},"renderContextTable":{"__isSmartRef__":true,"id":65},"_BorderRadius":10.08,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":66},"_Padding":{"__isSmartRef__":true,"id":67},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"62":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"63":{"x":792.6834876031417,"y":376.536,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"64":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"65":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"66":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"67":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"68":{"partsSpaceName":"PartsBin/Text/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"TextBox","revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"69":{"style":{"__isSmartRef__":true,"id":70},"chunkOwner":{"__isSmartRef__":true,"id":60},"storedString":"\nWenn hier ein Board rumliegt, dann sollte es auch aktuell sein und nicht veraltet!!!! (Kommentar: HAHA :D ... sorry ... )\naktueller Stand:\n- man kann spielen (Steine verschwinden bei 3er Reihen)\n- das Spielfeld wird bevor man es sieht so weit aufgeräumt, dass man nur durch vertauschen weiterkommt (es gibt also keine 3 Steine die so aneinander liegen)\n\nTODO:\n- 2-3 weitere Steinsorten, damit es schwerer wird ^^ (sonst gibt es auch immer so ultra-kombos, die das gaze Spielfeld einreißen) (DONE!?)\n- gleichzeitige bzw. kaskadierte Zerstörung von Steinen\n- Punktezählung\n- Animationen, Sound, Netzwerk usw.\n\nWas an Lively nervt:\n- Selektion der Gems, weil irgendwelche anderen Morphs drüber sind\n- man kann nicht mal eben was ohne Aussehen reinhacken (siehe Iterator, der deswegen jetzt ein \"lokales Singleton\" im GemFrame ist)\n- einmal wurde mein Spielfeld aus Versehen das Kind des Editors, das konnte ich dann wegwerfen\n- konkurrierende Versionierungsmechanismen (World vs. PartsBin)\n- Anzeigen aller möglichen Methoden eines Objekts benötigt etwas Zeit\n- (kein) Kommentieren\n- Umlaute?\n- \"show untagged methods\"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"70":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"71":{"x":792.6834876031417,"y":376.536,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"72":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"73":{"morph":{"__isSmartRef__":true,"id":60},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"74":{},"75":{"x":5,"y":5,"width":5,"height":5,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"76":{"x":264,"y":436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"77":{"submorphs":[{"__isSmartRef__":true,"id":78},{"__isSmartRef__":true,"id":120},{"__isSmartRef__":true,"id":15806},{"__isSmartRef__":true,"id":15848},{"__isSmartRef__":true,"id":15878},{"__isSmartRef__":true,"id":15903},{"__isSmartRef__":true,"id":16168},{"__isSmartRef__":true,"id":16192},{"__isSmartRef__":true,"id":16216},{"__isSmartRef__":true,"id":16245},{"__isSmartRef__":true,"id":16278}],"scripts":[],"id":"9DCB56DF-7429-4A7F-8B0B-648E5AE5B759","shape":{"__isSmartRef__":true,"id":16303},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16310},"showsHalos":false,"name":"GemBoard","partsBinMetaInfo":{"__isSmartRef__":true,"id":16311},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":16324},"eventHandler":{"__isSmartRef__":true,"id":16325},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","7F54EAB4-C38B-461C-9A21-6AD6860B7C91","CDF7D8A8-8854-46E1-9676-B7C3667E50AC","ED830339-A40D-42D3-9A6E-19004692276E","FDADA96B-E121-46C6-9033-8BB8BB2FCBCB","EBC23B69-D545-49E7-A597-AE01F937C024","E5136533-5959-4077-AA54-8A835F5F318B","F62830CC-C4C8-40A3-87D6-7F32B9BDBC78","2E7C4202-BE3D-442A-8A69-8F2B76EEEF07","930C1598-3875-4F1D-BB34-84D647C1119E","914BC940-E95B-45C4-9599-A0AE8BDAF6FF","1778E171-4D33-4CC5-A08D-34E391ED3777","8C5512B7-4953-4E6B-B8CB-CE0AED40164F","2FC7B47C-96B0-4DA5-AED3-9E5687550874","A8B652C7-6355-4BDF-8D03-F48405719CA8","3D8C1CF2-490C-41EF-8024-82E11762E05B","A7D30785-C3F4-46AC-B94F-981B7AC15FC5","6D6ABB00-357A-4A96-8B0F-329CE0DC8807","B4CD3AB2-7D00-41B7-99A1-49C3B5A07BD4","7937BACE-E39E-4B1C-9A25-9D56740C8E6D","AB4D7BF0-50AC-4C5C-8840-E1395DD40429","CD4D227D-C7F2-4754-B7A2-D3044311B3C4","6F94CC89-3E2B-4A61-B747-6FF10BA2C7F2","5D95D38A-638C-4E1F-ADA6-60EE0EBF1277","105861D1-CA3B-402C-A96A-D303672C5528","5D0F8951-3314-4F5E-83E6-A27DEA2286AB"],"partTests":{"__isSmartRef__":true,"id":16326},"_ClipMode":"visible","moved":true,"priorExtent":{"__isSmartRef__":true,"id":16331},"prevScroll":[0,0],"isBeingDragged":false,"numberOfHorizontalGems":8,"numberOfVerticalGems":8,"gemPrototype":null,"ScoreIndicator":{"__isSmartRef__":true,"id":15848},"prototypeBox":{"__isSmartRef__":true,"id":15903},"lockScore":false,"highscore":4790,"HighscoreIndicator":{"__isSmartRef__":true,"id":16216},"gameOverIndicator":{"__isSmartRef__":true,"id":16245},"markedGem":{"__isSmartRef__":true,"id":16332},"owner":{"__isSmartRef__":true,"id":0},"_Rotation":0,"_Scale":1.002003004005006,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16564},"__LivelyClassName__":"lively.morphic.Box"},"78":{"submorphs":[{"__isSmartRef__":true,"id":79}],"scripts":[],"id":"C9E09387-2550-4634-8101-DC38CA3879CB","shape":{"__isSmartRef__":true,"id":95},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":102},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":99},"lighterFill":{"__isSmartRef__":true,"id":103},"label":{"__isSmartRef__":true,"id":79},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":104},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":107},"renderContextTable":{"__isSmartRef__":true,"id":108},"eventHandler":{"__isSmartRef__":true,"id":109},"distanceToDragEvent":{"__isSmartRef__":true,"id":110},"derivationIds":[7251,"AE965E5C-19BD-4049-96CC-319842C6E018","850C5E5C-2ACF-46C2-9F4A-8AE95E60D788","89C6E9B6-7DC0-41A2-A617-9553CD5CD937","F949F623-1ADE-43DA-A261-9D8410FE74D1","000528AD-8FE3-4ED8-8ECB-A58A4B60FCF2","AC91E6E9-24CA-4BE6-9036-186D3F2DED74","33119D09-19C0-4CAC-B8EC-6BAE77D7C2B8","441BC4B9-F5C4-4CDA-88A1-EB4C1378BCBB","1C85A26E-013E-4807-B6E8-C26615F82661","4EBC54CE-FF5E-42BA-9F16-CCC220053674","7349AB16-4D7F-4CD9-992D-696EBCA8C200","4C323795-F429-48B8-95C4-9D405FF82015","2A6DE304-7F60-428B-B987-3921C9925110","5CF9E580-37A8-4154-8C0E-C5618AED1AD1","7277B9F8-6215-4D9B-AB79-77A19DBA6C23","480EC654-0A87-4F70-9C9F-ADC3A3C6DE4D","F3BBDE56-58A7-4CC9-BDF9-1985982BAA5F","0ED1D81F-AA18-4E20-9799-4F8F528B071E","2902415F-C3F0-4716-A986-FD5D059EB76A","5A781BCC-F8CE-40A0-88AC-31F802EDD303","E3AF112D-28FF-4F80-AA74-BF2EDEB09DAA","C73C05EB-552E-4169-A969-2306838EBC92","774AA60F-A37F-48F2-80EA-2C008720A868","B8FBDA5D-4DCE-4DF7-AE28-12C7CCCDBF12","2B513A93-FDE2-4421-BDDC-6CFA73533CB7","45699A84-BBE7-458C-BFAD-DE633D3A9544"],"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":77},"prevScroll":[0,0],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":111},"__LivelyClassName__":"lively.morphic.Button"},"79":{"submorphs":[],"scripts":[],"id":"94842730-8EE7-44B8-97BF-58A6E6CF01D9","shape":{"__isSmartRef__":true,"id":80},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Comic Sans MS","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":86},"_MaxTextWidth":110,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":87},"_Padding":{"__isSmartRef__":true,"id":88},"owner":{"__isSmartRef__":true,"id":78},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":89},"textChunks":[{"__isSmartRef__":true,"id":90}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":92},"eventHandler":{"__isSmartRef__":true,"id":93},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"5136A758-BF53-43D4-B39B-DF7EFA37E738","4B2048BC-5868-48E2-AAA6-7F23E2BB8663","7641B212-AD63-46C0-A195-DA606FC40C83","C74C0176-DE19-4633-A07F-2DBD97DDE064","2A18C7DF-DE02-4BC2-99A6-1ED5B78C5B01","FFEE7EBB-C460-4389-8901-85F8EC0C9445","43B62061-468C-4775-912A-49537F91C5AB","887B858B-4E69-4B73-85F8-B2B989C740D0","6B9176CD-A683-4EEF-9D69-AB2C7FDB7591","B089982B-5953-4033-AB01-25DA3A7BF020","2B3EE1A2-F2F9-4990-AED8-2D21CA8FB2D8","D17CFA24-F832-48ED-A2F2-11B90B084505","AF9F3B68-C7AC-416D-BC12-D09AEB802DF7","79CC5EE8-6C98-4421-8D48-31B8FF02CF68","45560795-EA83-4D3E-BA0D-1DB660B74D5E","324F1678-9A25-4A9A-A462-F9CCF4203B2C","CBBA34C8-3660-4146-A324-BBC7A00D85A8","D577490C-F57F-40D4-B45C-DF7E7EBD5277","76AA1F3B-DA6B-45A3-8C68-9B63DA515D44","48ED390B-9D5E-4D8E-89FF-D2B4217E1DC3","D86F4870-10CF-4EE9-812F-AB4F64E06A0D","69DD0543-4853-47BD-AEC7-40C319E0A10E","5B012C9C-B962-4930-83AB-F7080E85EC3C","42EAC08A-EA7C-4C2A-9097-AC9F5B8E4614","B1786F0F-DEEF-40AE-BACD-06C0F7E56FAE","876E5503-F81E-42E4-BFFC-003F92DD30D5"],"_MinTextWidth":110,"_MinTextHeight":null,"_FontSize":10,"_TextColor":{"__isSmartRef__":true,"id":94},"__LivelyClassName__":"lively.morphic.Text"},"80":{"position":{"__isSmartRef__":true,"id":81},"_Extent":{"__isSmartRef__":true,"id":82},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":83},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":84},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":85},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"81":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"82":{"x":110,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"83":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"84":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"85":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"86":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"87":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"88":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"89":{"x":110,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"90":{"style":{"__isSmartRef__":true,"id":91},"chunkOwner":{"__isSmartRef__":true,"id":79},"storedString":"New Game","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"91":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"92":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"93":{"morph":{"__isSmartRef__":true,"id":79},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"94":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"95":{"position":{"__isSmartRef__":true,"id":96},"_Extent":{"__isSmartRef__":true,"id":97},"_BorderWidth":2.516,"_BorderColor":{"__isSmartRef__":true,"id":98},"_Fill":{"__isSmartRef__":true,"id":99},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":100},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":101},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"96":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"97":{"x":110,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"98":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"99":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"100":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"101":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"102":{"x":668.7126440000002,"y":459.0804600000001,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"103":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"104":{"partsSpaceName":"PartsBin/SketchyInputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":105}],"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"105":{"date":{"__isSmartRef__":true,"id":106},"author":"lauritz","message":"","id":"959919F0-D51D-45E6-9205-4D7A114D8C7E"},"106":{"isSerializedDate":true,"string":"Tue Jan 24 2012 21:35:57 GMT+0100 (CET)"},"107":{"x":110,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"108":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"109":{"morph":{"__isSmartRef__":true,"id":78},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"110":{"x":81,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"111":{"onMouseDown":{"__isSmartRef__":true,"id":112}},"112":{"varMapping":{"__isSmartRef__":true,"id":113},"source":"function onMouseDown() {\n this.owner.newGame();\n}","funcProperties":{"__isSmartRef__":true,"id":118},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"113":{"this":{"__isSmartRef__":true,"id":78},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":114}},"114":{"$super":{"__isSmartRef__":true,"id":115}},"115":{"varMapping":{"__isSmartRef__":true,"id":116},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":117},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"116":{"obj":{"__isSmartRef__":true,"id":78},"name":"onMouseDown"},"117":{},"118":{"timestamp":{"__isSmartRef__":true,"id":119},"user":"soergel","tags":[]},"119":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:32:15 GMT+0200 (CEST)"},"120":{"submorphs":[],"scripts":[],"id":"0D12B851-9E9F-4F9C-95C9-B6E2F71333D8","shape":{"__isSmartRef__":true,"id":121},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":128},"showsHalos":false,"name":"GemFrame","partsBinMetaInfo":{"__isSmartRef__":true,"id":129},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":138},"eventHandler":{"__isSmartRef__":true,"id":139},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","B80E9499-8C15-4B95-BB1B-3265BD20CAFA","8E9C4002-76E2-43BF-BF34-89E6742A17D9","99BF18CA-CBBC-42D2-A542-A220E7C42FF8","53C18EB4-36D1-490A-A635-A52E83987D2D","32E76B4A-80F9-4145-8A1E-242E34B2D674","81973243-4CC6-4CEC-AE83-44BFD188AE49","C0952D32-673E-43A5-BA75-8ABA389273A0","EE34E0AE-3287-4B3C-99DF-8F105F161749","E5397B07-6E12-4CC4-A1B9-746E73CF61BD","7D8A00A5-BD7B-41F2-BC71-4BD2C2D9F431","EFCA25FC-0327-4274-84DF-474192071F1D","01CF1F06-AE63-4EDC-A646-B06809777575","4FE443D9-8C0E-4051-A86E-DD29B2B560B9","2D4C4CAC-21A3-479B-9354-6FBD302F2732","2225D0F3-31A3-4373-8CE6-A483D8CD044C","3AE493C4-9F5E-428A-BCD3-74B098095A1A","0C9FF759-E254-4D01-A90B-1FD49862F8F4","87263EE8-2289-4C31-BC05-5FD6EE0FD4AA","8258A090-6401-436C-852A-8FE615D68BED","CB5A1A59-48A9-45BE-8E4F-88F520E1EA71","47C0589F-3CC8-4BB9-8B46-08588330F139","2D82789E-9DE9-4442-B289-5D3FBE6EF806","B25BA0EB-84EA-4A5B-8196-D4E37D955245","8BA5194E-4612-4769-85A8-10BB7899274A"],"partTests":{"__isSmartRef__":true,"id":140},"_ClipMode":"visible","moved":true,"owner":{"__isSmartRef__":true,"id":77},"isBeingDragged":false,"priorExtent":{"__isSmartRef__":true,"id":145},"isGemFrame":true,"prevScroll":[0,0],"markedGem":null,"fieldHead":{"__isSmartRef__":true,"id":146},"iteratorPos":null,"primaryIterDirection":2,"secondaryIterDirection":3,"score":0,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15753},"__LivelyClassName__":"lively.morphic.Box"},"121":{"position":{"__isSmartRef__":true,"id":122},"_Extent":{"__isSmartRef__":true,"id":123},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":124},"_Fill":{"__isSmartRef__":true,"id":125},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":126},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":127},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"122":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"123":{"x":396,"y":411,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"124":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"125":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"126":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"127":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"128":{"x":13.972014000000058,"y":12.974013,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"129":{"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":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":130},{"__isSmartRef__":true,"id":132},{"__isSmartRef__":true,"id":134},{"__isSmartRef__":true,"id":136}],"revisionOnLoad":150682,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"130":{"date":{"__isSmartRef__":true,"id":131},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"131":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"132":{"date":{"__isSmartRef__":true,"id":133},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"133":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"134":{"date":{"__isSmartRef__":true,"id":135},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"135":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"136":{"date":{"__isSmartRef__":true,"id":137},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"137":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"138":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"139":{"morph":{"__isSmartRef__":true,"id":120},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"140":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":141}},"141":{"test01IsMorph":{"__isSmartRef__":true,"id":142}},"142":{"varMapping":{"__isSmartRef__":true,"id":143},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":144},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"143":{"this":{"__isSmartRef__":true,"id":140}},"144":{},"145":{"x":395,"y":411,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"146":{"submorphs":[{"__isSmartRef__":true,"id":147}],"scripts":[],"id":"5C0BACFE-6BD4-424A-9331-8B0BB5230026","shape":{"__isSmartRef__":true,"id":193},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":199},"showsHalos":false,"name":"BasicGem1","partsBinMetaInfo":{"__isSmartRef__":true,"id":200},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":239},"eventHandler":{"__isSmartRef__":true,"id":240},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":241},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":246},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":247},"neighbours":[null,null,{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":1897}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15624},"__LivelyClassName__":"lively.morphic.Box"},"147":{"submorphs":[{"__isSmartRef__":true,"id":148},{"__isSmartRef__":true,"id":159},{"__isSmartRef__":true,"id":169}],"scripts":[],"shape":{"__isSmartRef__":true,"id":179},"derivationIds":[null],"id":"4F08A5C7-FE6E-437E-827A-40451A23EE0C","renderContextTable":{"__isSmartRef__":true,"id":190},"eventHandler":{"__isSmartRef__":true,"id":191},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":146},"_Position":{"__isSmartRef__":true,"id":192},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"148":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":149},"derivationIds":[null],"id":"A5957B03-619E-42A9-BB4F-B47A6ADEC132","renderContextTable":{"__isSmartRef__":true,"id":157},"eventHandler":{"__isSmartRef__":true,"id":158},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":147},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"149":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":150},{"__isSmartRef__":true,"id":151}],"renderContextTable":{"__isSmartRef__":true,"id":152},"_Position":{"__isSmartRef__":true,"id":153},"_Extent":{"__isSmartRef__":true,"id":154},"_Padding":{"__isSmartRef__":true,"id":155},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"150":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"151":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"152":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"153":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"154":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"155":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"156":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"158":{"morph":{"__isSmartRef__":true,"id":148},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"159":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":160},"derivationIds":[null],"id":"467039D1-73E2-40B7-A8C5-284A8F96E1A2","renderContextTable":{"__isSmartRef__":true,"id":167},"eventHandler":{"__isSmartRef__":true,"id":168},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":147},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"160":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":161},{"__isSmartRef__":true,"id":162}],"renderContextTable":{"__isSmartRef__":true,"id":163},"_Position":{"__isSmartRef__":true,"id":164},"_Extent":{"__isSmartRef__":true,"id":165},"_Padding":{"__isSmartRef__":true,"id":166},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"161":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"162":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"163":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"164":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"165":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"166":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"167":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"168":{"morph":{"__isSmartRef__":true,"id":159},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"169":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":170},"derivationIds":[null],"id":"ACDCDA10-77E2-48CF-B20B-CECD5E517378","renderContextTable":{"__isSmartRef__":true,"id":177},"eventHandler":{"__isSmartRef__":true,"id":178},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":147},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"170":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":171},{"__isSmartRef__":true,"id":172}],"renderContextTable":{"__isSmartRef__":true,"id":173},"_Position":{"__isSmartRef__":true,"id":174},"_Extent":{"__isSmartRef__":true,"id":175},"_Padding":{"__isSmartRef__":true,"id":176},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"171":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"172":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"173":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"174":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"175":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"176":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"177":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"178":{"morph":{"__isSmartRef__":true,"id":169},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"179":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":180},{"__isSmartRef__":true,"id":181},{"__isSmartRef__":true,"id":182},{"__isSmartRef__":true,"id":183},{"__isSmartRef__":true,"id":184}],"renderContextTable":{"__isSmartRef__":true,"id":185},"_Position":{"__isSmartRef__":true,"id":186},"_Extent":{"__isSmartRef__":true,"id":187},"_Padding":{"__isSmartRef__":true,"id":188},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":189},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"180":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"181":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"182":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"183":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"184":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"185":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"186":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"187":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"188":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"189":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"190":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"191":{"morph":{"__isSmartRef__":true,"id":147},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"192":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"193":{"position":{"__isSmartRef__":true,"id":194},"_Extent":{"__isSmartRef__":true,"id":195},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":196},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":197},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":198},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"194":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"195":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"196":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"198":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"199":{"x":1,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"200":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":201},{"__isSmartRef__":true,"id":203},{"__isSmartRef__":true,"id":205},{"__isSmartRef__":true,"id":207},{"__isSmartRef__":true,"id":209},{"__isSmartRef__":true,"id":211},{"__isSmartRef__":true,"id":213},{"__isSmartRef__":true,"id":215},{"__isSmartRef__":true,"id":217},{"__isSmartRef__":true,"id":219},{"__isSmartRef__":true,"id":221},{"__isSmartRef__":true,"id":223},{"__isSmartRef__":true,"id":225},{"__isSmartRef__":true,"id":227},{"__isSmartRef__":true,"id":229},{"__isSmartRef__":true,"id":231},{"__isSmartRef__":true,"id":233},{"__isSmartRef__":true,"id":235},{"__isSmartRef__":true,"id":237}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"201":{"date":{"__isSmartRef__":true,"id":202},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"202":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"203":{"date":{"__isSmartRef__":true,"id":204},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"204":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"205":{"date":{"__isSmartRef__":true,"id":206},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"206":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"207":{"date":{"__isSmartRef__":true,"id":208},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"208":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"209":{"date":{"__isSmartRef__":true,"id":210},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"210":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"211":{"date":{"__isSmartRef__":true,"id":212},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"212":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"213":{"date":{"__isSmartRef__":true,"id":214},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"214":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"215":{"date":{"__isSmartRef__":true,"id":216},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"216":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"217":{"date":{"__isSmartRef__":true,"id":218},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"218":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"219":{"date":{"__isSmartRef__":true,"id":220},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"220":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"221":{"date":{"__isSmartRef__":true,"id":222},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"222":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"223":{"date":{"__isSmartRef__":true,"id":224},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"224":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"225":{"date":{"__isSmartRef__":true,"id":226},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"226":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"227":{"date":{"__isSmartRef__":true,"id":228},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"228":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"229":{"date":{"__isSmartRef__":true,"id":230},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"230":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"231":{"date":{"__isSmartRef__":true,"id":232},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"232":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"233":{"date":{"__isSmartRef__":true,"id":234},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"234":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"235":{"date":{"__isSmartRef__":true,"id":236},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"236":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"237":{"date":{"__isSmartRef__":true,"id":238},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"238":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"239":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"240":{"morph":{"__isSmartRef__":true,"id":146},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"241":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":242}},"242":{"test01IsMorph":{"__isSmartRef__":true,"id":243}},"243":{"varMapping":{"__isSmartRef__":true,"id":244},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":245},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"244":{"this":{"__isSmartRef__":true,"id":241}},"245":{},"246":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"247":{"left":0,"up":1,"right":2,"down":3},"248":{"submorphs":[{"__isSmartRef__":true,"id":249}],"scripts":[],"id":"4BAFC5A1-B318-48DE-AD40-A6C5CC313272","shape":{"__isSmartRef__":true,"id":311},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":317},"showsHalos":false,"name":"BasicGem2","partsBinMetaInfo":{"__isSmartRef__":true,"id":318},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":357},"eventHandler":{"__isSmartRef__":true,"id":358},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":359},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":364},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":365},"neighbours":[{"__isSmartRef__":true,"id":146},null,{"__isSmartRef__":true,"id":366},{"__isSmartRef__":true,"id":1765}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"amethyst","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15495},"__LivelyClassName__":"lively.morphic.Box"},"249":{"submorphs":[{"__isSmartRef__":true,"id":250},{"__isSmartRef__":true,"id":261},{"__isSmartRef__":true,"id":272},{"__isSmartRef__":true,"id":283}],"scripts":[],"shape":{"__isSmartRef__":true,"id":294},"derivationIds":[null],"id":"E9BE31E1-8CBD-4493-B9B4-ECCAF4A79769","renderContextTable":{"__isSmartRef__":true,"id":308},"eventHandler":{"__isSmartRef__":true,"id":309},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":248},"_Position":{"__isSmartRef__":true,"id":310},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"250":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":251},"derivationIds":[null],"id":"38CE041F-2A4A-48AD-962A-7F49FBA64D03","renderContextTable":{"__isSmartRef__":true,"id":259},"eventHandler":{"__isSmartRef__":true,"id":260},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":249},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"251":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":252},{"__isSmartRef__":true,"id":253}],"renderContextTable":{"__isSmartRef__":true,"id":254},"_Position":{"__isSmartRef__":true,"id":255},"_Extent":{"__isSmartRef__":true,"id":256},"_Padding":{"__isSmartRef__":true,"id":257},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":258},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"252":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"253":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"254":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"255":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"256":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"257":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"258":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"259":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"260":{"morph":{"__isSmartRef__":true,"id":250},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"261":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":262},"derivationIds":[null],"id":"54AEA4AD-0B73-4179-889F-B7BF873F83EB","renderContextTable":{"__isSmartRef__":true,"id":270},"eventHandler":{"__isSmartRef__":true,"id":271},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":249},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"262":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":263},{"__isSmartRef__":true,"id":264}],"renderContextTable":{"__isSmartRef__":true,"id":265},"_Position":{"__isSmartRef__":true,"id":266},"_Extent":{"__isSmartRef__":true,"id":267},"_Padding":{"__isSmartRef__":true,"id":268},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":269},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"263":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"264":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"265":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"266":{"x":15,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"267":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"268":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"269":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"270":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"271":{"morph":{"__isSmartRef__":true,"id":261},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"272":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":273},"derivationIds":[null],"id":"557B03EA-566A-4CE3-8442-14B7B9099B46","renderContextTable":{"__isSmartRef__":true,"id":281},"eventHandler":{"__isSmartRef__":true,"id":282},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":249},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"273":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":274},{"__isSmartRef__":true,"id":275}],"renderContextTable":{"__isSmartRef__":true,"id":276},"_Position":{"__isSmartRef__":true,"id":277},"_Extent":{"__isSmartRef__":true,"id":278},"_Padding":{"__isSmartRef__":true,"id":279},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":280},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"274":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"275":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"276":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"277":{"x":31,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"278":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"279":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"280":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"281":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"282":{"morph":{"__isSmartRef__":true,"id":272},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"283":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":284},"derivationIds":[null],"id":"62016A4A-753D-4205-A565-BCF58E4CFC12","renderContextTable":{"__isSmartRef__":true,"id":292},"eventHandler":{"__isSmartRef__":true,"id":293},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":249},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"284":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":285},{"__isSmartRef__":true,"id":286}],"renderContextTable":{"__isSmartRef__":true,"id":287},"_Position":{"__isSmartRef__":true,"id":288},"_Extent":{"__isSmartRef__":true,"id":289},"_Padding":{"__isSmartRef__":true,"id":290},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":291},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"285":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"286":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"287":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"288":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"289":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"290":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"291":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"292":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"293":{"morph":{"__isSmartRef__":true,"id":283},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"294":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":295},{"__isSmartRef__":true,"id":296},{"__isSmartRef__":true,"id":297},{"__isSmartRef__":true,"id":298},{"__isSmartRef__":true,"id":299},{"__isSmartRef__":true,"id":300},{"__isSmartRef__":true,"id":301},{"__isSmartRef__":true,"id":302}],"renderContextTable":{"__isSmartRef__":true,"id":303},"_Position":{"__isSmartRef__":true,"id":304},"_Extent":{"__isSmartRef__":true,"id":305},"_Padding":{"__isSmartRef__":true,"id":306},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":307},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"295":{"isAbsolute":true,"x":14,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"296":{"isAbsolute":true,"x":36,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"297":{"isAbsolute":true,"x":41,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"298":{"isAbsolute":true,"x":41,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"299":{"isAbsolute":true,"x":36,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"300":{"isAbsolute":true,"x":14,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"301":{"isAbsolute":true,"x":9,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"302":{"isAbsolute":true,"x":9,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"303":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"304":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"305":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"306":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"307":{"r":0.5411764705882353,"g":0.1568627450980392,"b":0.5607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"308":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"309":{"morph":{"__isSmartRef__":true,"id":249},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"310":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"311":{"position":{"__isSmartRef__":true,"id":312},"_Extent":{"__isSmartRef__":true,"id":313},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":314},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":315},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":316},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"312":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"313":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"314":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"315":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"316":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"317":{"x":50.20369420394888,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"318":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":319},{"__isSmartRef__":true,"id":321},{"__isSmartRef__":true,"id":323},{"__isSmartRef__":true,"id":325},{"__isSmartRef__":true,"id":327},{"__isSmartRef__":true,"id":329},{"__isSmartRef__":true,"id":331},{"__isSmartRef__":true,"id":333},{"__isSmartRef__":true,"id":335},{"__isSmartRef__":true,"id":337},{"__isSmartRef__":true,"id":339},{"__isSmartRef__":true,"id":341},{"__isSmartRef__":true,"id":343},{"__isSmartRef__":true,"id":345},{"__isSmartRef__":true,"id":347},{"__isSmartRef__":true,"id":349},{"__isSmartRef__":true,"id":351},{"__isSmartRef__":true,"id":353},{"__isSmartRef__":true,"id":355}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"319":{"date":{"__isSmartRef__":true,"id":320},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"320":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"321":{"date":{"__isSmartRef__":true,"id":322},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"322":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"323":{"date":{"__isSmartRef__":true,"id":324},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"324":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"325":{"date":{"__isSmartRef__":true,"id":326},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"326":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"327":{"date":{"__isSmartRef__":true,"id":328},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"328":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"329":{"date":{"__isSmartRef__":true,"id":330},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"330":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"331":{"date":{"__isSmartRef__":true,"id":332},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"332":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"333":{"date":{"__isSmartRef__":true,"id":334},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"334":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"335":{"date":{"__isSmartRef__":true,"id":336},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"336":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"337":{"date":{"__isSmartRef__":true,"id":338},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"338":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"339":{"date":{"__isSmartRef__":true,"id":340},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"340":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"341":{"date":{"__isSmartRef__":true,"id":342},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"342":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"343":{"date":{"__isSmartRef__":true,"id":344},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"344":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"345":{"date":{"__isSmartRef__":true,"id":346},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"346":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"347":{"date":{"__isSmartRef__":true,"id":348},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"348":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"349":{"date":{"__isSmartRef__":true,"id":350},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"350":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"351":{"date":{"__isSmartRef__":true,"id":352},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"352":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"353":{"date":{"__isSmartRef__":true,"id":354},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"354":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"355":{"date":{"__isSmartRef__":true,"id":356},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"356":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"357":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"358":{"morph":{"__isSmartRef__":true,"id":248},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"359":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":360}},"360":{"test01IsMorph":{"__isSmartRef__":true,"id":361}},"361":{"varMapping":{"__isSmartRef__":true,"id":362},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":363},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"362":{"this":{"__isSmartRef__":true,"id":359}},"363":{},"364":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"365":{"left":0,"up":1,"right":2,"down":3},"366":{"submorphs":[{"__isSmartRef__":true,"id":367}],"scripts":[],"id":"1D96D39A-DD86-43E4-91D3-F022B040AC12","shape":{"__isSmartRef__":true,"id":443},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":449},"showsHalos":false,"name":"BasicGem3","partsBinMetaInfo":{"__isSmartRef__":true,"id":450},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":489},"eventHandler":{"__isSmartRef__":true,"id":490},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":491},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":496},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":497},"neighbours":[{"__isSmartRef__":true,"id":248},null,{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":1673}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15366},"__LivelyClassName__":"lively.morphic.Box"},"367":{"submorphs":[{"__isSmartRef__":true,"id":368},{"__isSmartRef__":true,"id":378},{"__isSmartRef__":true,"id":388},{"__isSmartRef__":true,"id":398},{"__isSmartRef__":true,"id":408},{"__isSmartRef__":true,"id":418}],"scripts":[],"shape":{"__isSmartRef__":true,"id":428},"derivationIds":[null],"id":"5848C9BD-AF9A-4597-B394-DE6B395DDAFC","renderContextTable":{"__isSmartRef__":true,"id":440},"eventHandler":{"__isSmartRef__":true,"id":441},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":366},"_Position":{"__isSmartRef__":true,"id":442},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"368":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":369},"derivationIds":[null],"id":"ECBF1FE2-FDE5-403E-97BD-4718CEA7F4C7","renderContextTable":{"__isSmartRef__":true,"id":376},"eventHandler":{"__isSmartRef__":true,"id":377},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":367},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"369":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":370},{"__isSmartRef__":true,"id":371}],"renderContextTable":{"__isSmartRef__":true,"id":372},"_Position":{"__isSmartRef__":true,"id":373},"_Extent":{"__isSmartRef__":true,"id":374},"_Padding":{"__isSmartRef__":true,"id":375},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"370":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"371":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"372":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"373":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"374":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"375":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"376":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"377":{"morph":{"__isSmartRef__":true,"id":368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"378":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":379},"derivationIds":[null],"id":"1429E7E8-BD3D-480D-82CE-F478A62D0C89","renderContextTable":{"__isSmartRef__":true,"id":386},"eventHandler":{"__isSmartRef__":true,"id":387},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":367},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"379":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":380},{"__isSmartRef__":true,"id":381}],"renderContextTable":{"__isSmartRef__":true,"id":382},"_Position":{"__isSmartRef__":true,"id":383},"_Extent":{"__isSmartRef__":true,"id":384},"_Padding":{"__isSmartRef__":true,"id":385},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"380":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"381":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"382":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"383":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"384":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"385":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"386":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"387":{"morph":{"__isSmartRef__":true,"id":378},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"388":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":389},"derivationIds":[null],"id":"9C0201BC-507D-458E-843C-02D86936317F","renderContextTable":{"__isSmartRef__":true,"id":396},"eventHandler":{"__isSmartRef__":true,"id":397},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":367},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"389":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":390},{"__isSmartRef__":true,"id":391}],"renderContextTable":{"__isSmartRef__":true,"id":392},"_Position":{"__isSmartRef__":true,"id":393},"_Extent":{"__isSmartRef__":true,"id":394},"_Padding":{"__isSmartRef__":true,"id":395},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"390":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"391":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"392":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"393":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"394":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"395":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"396":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"397":{"morph":{"__isSmartRef__":true,"id":388},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"398":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":399},"derivationIds":[null],"id":"6C4EDAA0-52D0-4BCE-BBBD-DF1D5336AEE4","renderContextTable":{"__isSmartRef__":true,"id":406},"eventHandler":{"__isSmartRef__":true,"id":407},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":367},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"399":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":400},{"__isSmartRef__":true,"id":401}],"renderContextTable":{"__isSmartRef__":true,"id":402},"_Position":{"__isSmartRef__":true,"id":403},"_Extent":{"__isSmartRef__":true,"id":404},"_Padding":{"__isSmartRef__":true,"id":405},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"400":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"401":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"402":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"403":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"404":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"405":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"406":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"407":{"morph":{"__isSmartRef__":true,"id":398},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"408":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":409},"derivationIds":[null],"id":"3220FAC2-9DC4-43AE-AFDF-067618392481","renderContextTable":{"__isSmartRef__":true,"id":416},"eventHandler":{"__isSmartRef__":true,"id":417},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":367},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"409":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":410},{"__isSmartRef__":true,"id":411}],"renderContextTable":{"__isSmartRef__":true,"id":412},"_Position":{"__isSmartRef__":true,"id":413},"_Extent":{"__isSmartRef__":true,"id":414},"_Padding":{"__isSmartRef__":true,"id":415},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"410":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"411":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"412":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"413":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"414":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"415":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"416":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"417":{"morph":{"__isSmartRef__":true,"id":408},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"418":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":419},"derivationIds":[null],"id":"E84A6564-880F-4872-8BFD-E50AB3593BA0","renderContextTable":{"__isSmartRef__":true,"id":426},"eventHandler":{"__isSmartRef__":true,"id":427},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":367},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"419":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":420},{"__isSmartRef__":true,"id":421}],"renderContextTable":{"__isSmartRef__":true,"id":422},"_Position":{"__isSmartRef__":true,"id":423},"_Extent":{"__isSmartRef__":true,"id":424},"_Padding":{"__isSmartRef__":true,"id":425},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"420":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"421":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"422":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"423":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"424":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"425":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"426":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"427":{"morph":{"__isSmartRef__":true,"id":418},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"428":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":429},{"__isSmartRef__":true,"id":430},{"__isSmartRef__":true,"id":431},{"__isSmartRef__":true,"id":432},{"__isSmartRef__":true,"id":433},{"__isSmartRef__":true,"id":434}],"renderContextTable":{"__isSmartRef__":true,"id":435},"_Position":{"__isSmartRef__":true,"id":436},"_Extent":{"__isSmartRef__":true,"id":437},"_Padding":{"__isSmartRef__":true,"id":438},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":439},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"429":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"430":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"431":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"432":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"433":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"434":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"435":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"436":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"437":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"438":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"439":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"440":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"441":{"morph":{"__isSmartRef__":true,"id":367},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"442":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"443":{"position":{"__isSmartRef__":true,"id":444},"_Extent":{"__isSmartRef__":true,"id":445},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":446},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":447},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":448},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"444":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"445":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"446":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"447":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"448":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"449":{"x":99.40738840789776,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"450":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":451},{"__isSmartRef__":true,"id":453},{"__isSmartRef__":true,"id":455},{"__isSmartRef__":true,"id":457},{"__isSmartRef__":true,"id":459},{"__isSmartRef__":true,"id":461},{"__isSmartRef__":true,"id":463},{"__isSmartRef__":true,"id":465},{"__isSmartRef__":true,"id":467},{"__isSmartRef__":true,"id":469},{"__isSmartRef__":true,"id":471},{"__isSmartRef__":true,"id":473},{"__isSmartRef__":true,"id":475},{"__isSmartRef__":true,"id":477},{"__isSmartRef__":true,"id":479},{"__isSmartRef__":true,"id":481},{"__isSmartRef__":true,"id":483},{"__isSmartRef__":true,"id":485},{"__isSmartRef__":true,"id":487}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"451":{"date":{"__isSmartRef__":true,"id":452},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"452":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"453":{"date":{"__isSmartRef__":true,"id":454},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"454":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"455":{"date":{"__isSmartRef__":true,"id":456},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"456":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"457":{"date":{"__isSmartRef__":true,"id":458},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"458":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"459":{"date":{"__isSmartRef__":true,"id":460},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"460":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"461":{"date":{"__isSmartRef__":true,"id":462},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"462":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"463":{"date":{"__isSmartRef__":true,"id":464},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"464":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"465":{"date":{"__isSmartRef__":true,"id":466},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"466":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"467":{"date":{"__isSmartRef__":true,"id":468},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"468":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"469":{"date":{"__isSmartRef__":true,"id":470},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"470":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"471":{"date":{"__isSmartRef__":true,"id":472},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"472":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"473":{"date":{"__isSmartRef__":true,"id":474},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"474":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"475":{"date":{"__isSmartRef__":true,"id":476},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"476":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"477":{"date":{"__isSmartRef__":true,"id":478},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"478":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"479":{"date":{"__isSmartRef__":true,"id":480},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"480":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"481":{"date":{"__isSmartRef__":true,"id":482},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"482":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"483":{"date":{"__isSmartRef__":true,"id":484},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"484":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"485":{"date":{"__isSmartRef__":true,"id":486},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"486":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"487":{"date":{"__isSmartRef__":true,"id":488},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"488":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"489":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"490":{"morph":{"__isSmartRef__":true,"id":366},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"491":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":492}},"492":{"test01IsMorph":{"__isSmartRef__":true,"id":493}},"493":{"varMapping":{"__isSmartRef__":true,"id":494},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":495},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"494":{"this":{"__isSmartRef__":true,"id":491}},"495":{},"496":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"497":{"left":0,"up":1,"right":2,"down":3},"498":{"submorphs":[{"__isSmartRef__":true,"id":499}],"scripts":[],"id":"E56D1D0C-EE55-42B5-A0D9-21C21405D553","shape":{"__isSmartRef__":true,"id":575},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":581},"showsHalos":false,"name":"BasicGem4","partsBinMetaInfo":{"__isSmartRef__":true,"id":582},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":621},"eventHandler":{"__isSmartRef__":true,"id":622},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":623},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":628},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":629},"neighbours":[{"__isSmartRef__":true,"id":366},null,{"__isSmartRef__":true,"id":630},{"__isSmartRef__":true,"id":1581}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"zircon","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15237},"__LivelyClassName__":"lively.morphic.Box"},"499":{"submorphs":[{"__isSmartRef__":true,"id":500},{"__isSmartRef__":true,"id":510},{"__isSmartRef__":true,"id":520},{"__isSmartRef__":true,"id":530},{"__isSmartRef__":true,"id":540},{"__isSmartRef__":true,"id":550}],"scripts":[],"shape":{"__isSmartRef__":true,"id":560},"derivationIds":[null],"id":"A9620301-CBD4-4B5A-8F76-7D2F7E9D7B9C","renderContextTable":{"__isSmartRef__":true,"id":572},"eventHandler":{"__isSmartRef__":true,"id":573},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":498},"_Position":{"__isSmartRef__":true,"id":574},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"500":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":501},"derivationIds":[null],"id":"42BB8A63-39D8-4B23-975B-BA41FC1D9DAF","renderContextTable":{"__isSmartRef__":true,"id":508},"eventHandler":{"__isSmartRef__":true,"id":509},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"501":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":502},{"__isSmartRef__":true,"id":503}],"renderContextTable":{"__isSmartRef__":true,"id":504},"_Position":{"__isSmartRef__":true,"id":505},"_Extent":{"__isSmartRef__":true,"id":506},"_Padding":{"__isSmartRef__":true,"id":507},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"502":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"503":{"isAbsolute":true,"x":25,"y":27,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"504":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"505":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"506":{"x":3,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"507":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"508":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"509":{"morph":{"__isSmartRef__":true,"id":500},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"510":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":511},"derivationIds":[null],"id":"9F7C49A7-DFC8-499D-874C-9AA2577A8A37","renderContextTable":{"__isSmartRef__":true,"id":518},"eventHandler":{"__isSmartRef__":true,"id":519},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"511":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":512},{"__isSmartRef__":true,"id":513}],"renderContextTable":{"__isSmartRef__":true,"id":514},"_Position":{"__isSmartRef__":true,"id":515},"_Extent":{"__isSmartRef__":true,"id":516},"_Padding":{"__isSmartRef__":true,"id":517},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"512":{"isAbsolute":true,"x":9,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"513":{"isAbsolute":true,"x":25,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"514":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"515":{"x":7,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"516":{"x":19,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"517":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"518":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"519":{"morph":{"__isSmartRef__":true,"id":510},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"520":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":521},"derivationIds":[null],"id":"0E780CC2-668A-4B91-9C59-E88A70B42E32","renderContextTable":{"__isSmartRef__":true,"id":528},"eventHandler":{"__isSmartRef__":true,"id":529},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"521":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":522},{"__isSmartRef__":true,"id":523}],"renderContextTable":{"__isSmartRef__":true,"id":524},"_Position":{"__isSmartRef__":true,"id":525},"_Extent":{"__isSmartRef__":true,"id":526},"_Padding":{"__isSmartRef__":true,"id":527},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"522":{"isAbsolute":true,"x":42,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"523":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"524":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"525":{"x":22,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"526":{"x":21,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"527":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"528":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"529":{"morph":{"__isSmartRef__":true,"id":520},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"530":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":531},"derivationIds":[null],"id":"6D0B9106-47D7-4011-98DF-3CA85E6B48D5","renderContextTable":{"__isSmartRef__":true,"id":538},"eventHandler":{"__isSmartRef__":true,"id":539},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"531":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":532},{"__isSmartRef__":true,"id":533}],"renderContextTable":{"__isSmartRef__":true,"id":534},"_Position":{"__isSmartRef__":true,"id":535},"_Extent":{"__isSmartRef__":true,"id":536},"_Padding":{"__isSmartRef__":true,"id":537},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"532":{"isAbsolute":true,"x":41,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"533":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"534":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"535":{"x":23,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"536":{"x":18,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"537":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"538":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"539":{"morph":{"__isSmartRef__":true,"id":530},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"540":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":541},"derivationIds":[null],"id":"604CC972-2DB8-422F-BDEE-391B794A4513","renderContextTable":{"__isSmartRef__":true,"id":548},"eventHandler":{"__isSmartRef__":true,"id":549},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"541":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":542},{"__isSmartRef__":true,"id":543}],"renderContextTable":{"__isSmartRef__":true,"id":544},"_Position":{"__isSmartRef__":true,"id":545},"_Extent":{"__isSmartRef__":true,"id":546},"_Padding":{"__isSmartRef__":true,"id":547},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"542":{"isAbsolute":true,"x":9,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"543":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"544":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"545":{"x":8,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"546":{"x":16,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"547":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"548":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"549":{"morph":{"__isSmartRef__":true,"id":540},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"550":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":551},"derivationIds":[null],"id":"72CB3543-991A-448F-811B-DEFD2E8B168D","renderContextTable":{"__isSmartRef__":true,"id":558},"eventHandler":{"__isSmartRef__":true,"id":559},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":499},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"551":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":552},{"__isSmartRef__":true,"id":553}],"renderContextTable":{"__isSmartRef__":true,"id":554},"_Position":{"__isSmartRef__":true,"id":555},"_Extent":{"__isSmartRef__":true,"id":556},"_Padding":{"__isSmartRef__":true,"id":557},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"552":{"isAbsolute":true,"x":25,"y":43,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"553":{"isAbsolute":true,"x":25,"y":24,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"554":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"555":{"x":23,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"556":{"x":3,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"557":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"558":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"559":{"morph":{"__isSmartRef__":true,"id":550},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"560":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":561},{"__isSmartRef__":true,"id":562},{"__isSmartRef__":true,"id":563},{"__isSmartRef__":true,"id":564},{"__isSmartRef__":true,"id":565},{"__isSmartRef__":true,"id":566}],"renderContextTable":{"__isSmartRef__":true,"id":567},"_Position":{"__isSmartRef__":true,"id":568},"_Extent":{"__isSmartRef__":true,"id":569},"_Padding":{"__isSmartRef__":true,"id":570},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":571},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"561":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"562":{"isAbsolute":true,"x":41,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"563":{"isAbsolute":true,"x":41,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"564":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"565":{"isAbsolute":true,"x":9,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"566":{"isAbsolute":true,"x":9,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"567":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"568":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"569":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"570":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"571":{"r":1,"g":0.788235294117647,"b":0.14901960784313725,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"572":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"573":{"morph":{"__isSmartRef__":true,"id":499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"574":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"575":{"position":{"__isSmartRef__":true,"id":576},"_Extent":{"__isSmartRef__":true,"id":577},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":578},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":579},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":580},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"576":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"577":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"578":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"579":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"580":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"581":{"x":148.61108261184663,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"582":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":583},{"__isSmartRef__":true,"id":585},{"__isSmartRef__":true,"id":587},{"__isSmartRef__":true,"id":589},{"__isSmartRef__":true,"id":591},{"__isSmartRef__":true,"id":593},{"__isSmartRef__":true,"id":595},{"__isSmartRef__":true,"id":597},{"__isSmartRef__":true,"id":599},{"__isSmartRef__":true,"id":601},{"__isSmartRef__":true,"id":603},{"__isSmartRef__":true,"id":605},{"__isSmartRef__":true,"id":607},{"__isSmartRef__":true,"id":609},{"__isSmartRef__":true,"id":611},{"__isSmartRef__":true,"id":613},{"__isSmartRef__":true,"id":615},{"__isSmartRef__":true,"id":617},{"__isSmartRef__":true,"id":619}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"583":{"date":{"__isSmartRef__":true,"id":584},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"584":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"585":{"date":{"__isSmartRef__":true,"id":586},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"586":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"587":{"date":{"__isSmartRef__":true,"id":588},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"588":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"589":{"date":{"__isSmartRef__":true,"id":590},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"590":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"591":{"date":{"__isSmartRef__":true,"id":592},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"592":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"593":{"date":{"__isSmartRef__":true,"id":594},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"594":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"595":{"date":{"__isSmartRef__":true,"id":596},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"596":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"597":{"date":{"__isSmartRef__":true,"id":598},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"598":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"599":{"date":{"__isSmartRef__":true,"id":600},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"600":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"601":{"date":{"__isSmartRef__":true,"id":602},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"602":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"603":{"date":{"__isSmartRef__":true,"id":604},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"604":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"605":{"date":{"__isSmartRef__":true,"id":606},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"606":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"607":{"date":{"__isSmartRef__":true,"id":608},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"608":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"609":{"date":{"__isSmartRef__":true,"id":610},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"610":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"611":{"date":{"__isSmartRef__":true,"id":612},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"612":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"613":{"date":{"__isSmartRef__":true,"id":614},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"614":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"615":{"date":{"__isSmartRef__":true,"id":616},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"616":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"617":{"date":{"__isSmartRef__":true,"id":618},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"618":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"619":{"date":{"__isSmartRef__":true,"id":620},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"620":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"621":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"622":{"morph":{"__isSmartRef__":true,"id":498},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"623":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":624}},"624":{"test01IsMorph":{"__isSmartRef__":true,"id":625}},"625":{"varMapping":{"__isSmartRef__":true,"id":626},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":627},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"626":{"this":{"__isSmartRef__":true,"id":623}},"627":{},"628":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"629":{"left":0,"up":1,"right":2,"down":3},"630":{"submorphs":[{"__isSmartRef__":true,"id":631}],"scripts":[],"id":"0D33ECD2-041E-4865-97E7-7C18A612AB00","shape":{"__isSmartRef__":true,"id":702},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":708},"showsHalos":false,"name":"BasicGem5","partsBinMetaInfo":{"__isSmartRef__":true,"id":709},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":748},"eventHandler":{"__isSmartRef__":true,"id":749},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":750},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":755},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":756},"neighbours":[{"__isSmartRef__":true,"id":498},null,{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":1449}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15108},"__LivelyClassName__":"lively.morphic.Box"},"631":{"submorphs":[{"__isSmartRef__":true,"id":632},{"__isSmartRef__":true,"id":643},{"__isSmartRef__":true,"id":654},{"__isSmartRef__":true,"id":665},{"__isSmartRef__":true,"id":676}],"scripts":[],"shape":{"__isSmartRef__":true,"id":687},"derivationIds":[null],"id":"A9F0E24F-18C6-42D6-91C1-A5B03294FC02","renderContextTable":{"__isSmartRef__":true,"id":699},"eventHandler":{"__isSmartRef__":true,"id":700},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":630},"_Position":{"__isSmartRef__":true,"id":701},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"632":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":633},"derivationIds":[null],"id":"D12FE13C-4482-40A6-A529-F15D75707F75","renderContextTable":{"__isSmartRef__":true,"id":641},"eventHandler":{"__isSmartRef__":true,"id":642},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":631},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"633":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":634},{"__isSmartRef__":true,"id":635}],"renderContextTable":{"__isSmartRef__":true,"id":636},"_Position":{"__isSmartRef__":true,"id":637},"_Extent":{"__isSmartRef__":true,"id":638},"_Padding":{"__isSmartRef__":true,"id":639},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":640},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"634":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"635":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"636":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"637":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"638":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"639":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"640":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"641":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"642":{"morph":{"__isSmartRef__":true,"id":632},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"643":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":644},"derivationIds":[null],"id":"6FA5A466-4D73-4FBA-B601-FCC6ED00D887","renderContextTable":{"__isSmartRef__":true,"id":652},"eventHandler":{"__isSmartRef__":true,"id":653},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":631},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"644":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":645},{"__isSmartRef__":true,"id":646}],"renderContextTable":{"__isSmartRef__":true,"id":647},"_Position":{"__isSmartRef__":true,"id":648},"_Extent":{"__isSmartRef__":true,"id":649},"_Padding":{"__isSmartRef__":true,"id":650},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":651},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"645":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"646":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"647":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"648":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"649":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"650":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"651":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"652":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"653":{"morph":{"__isSmartRef__":true,"id":643},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"654":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":655},"derivationIds":[null],"id":"E6115BED-E373-4234-BB7D-138740C9A721","renderContextTable":{"__isSmartRef__":true,"id":663},"eventHandler":{"__isSmartRef__":true,"id":664},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":631},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"655":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":656},{"__isSmartRef__":true,"id":657}],"renderContextTable":{"__isSmartRef__":true,"id":658},"_Position":{"__isSmartRef__":true,"id":659},"_Extent":{"__isSmartRef__":true,"id":660},"_Padding":{"__isSmartRef__":true,"id":661},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":662},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"656":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"657":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"658":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"659":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"660":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"661":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"662":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"663":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"664":{"morph":{"__isSmartRef__":true,"id":654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"665":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":666},"derivationIds":[null],"id":"066EAF53-222F-48CF-B2FD-AC1A0A779A73","renderContextTable":{"__isSmartRef__":true,"id":674},"eventHandler":{"__isSmartRef__":true,"id":675},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":631},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"666":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":667},{"__isSmartRef__":true,"id":668}],"renderContextTable":{"__isSmartRef__":true,"id":669},"_Position":{"__isSmartRef__":true,"id":670},"_Extent":{"__isSmartRef__":true,"id":671},"_Padding":{"__isSmartRef__":true,"id":672},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":673},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"667":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"668":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"669":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"670":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"671":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"672":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"673":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"674":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"675":{"morph":{"__isSmartRef__":true,"id":665},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"676":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":677},"derivationIds":[null],"id":"750185A5-DDC1-4B22-B30D-31CD95B1FE67","renderContextTable":{"__isSmartRef__":true,"id":685},"eventHandler":{"__isSmartRef__":true,"id":686},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":631},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"677":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":678},{"__isSmartRef__":true,"id":679}],"renderContextTable":{"__isSmartRef__":true,"id":680},"_Position":{"__isSmartRef__":true,"id":681},"_Extent":{"__isSmartRef__":true,"id":682},"_Padding":{"__isSmartRef__":true,"id":683},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":684},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"678":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"679":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"680":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"681":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"682":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"683":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"684":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"685":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"686":{"morph":{"__isSmartRef__":true,"id":676},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"687":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":688},{"__isSmartRef__":true,"id":689},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":691},{"__isSmartRef__":true,"id":692},{"__isSmartRef__":true,"id":693}],"renderContextTable":{"__isSmartRef__":true,"id":694},"_Position":{"__isSmartRef__":true,"id":695},"_Extent":{"__isSmartRef__":true,"id":696},"_Padding":{"__isSmartRef__":true,"id":697},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":698},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"688":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"689":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"690":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"691":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"692":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"693":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"694":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"695":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"696":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"697":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"698":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"699":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"700":{"morph":{"__isSmartRef__":true,"id":631},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"701":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"702":{"position":{"__isSmartRef__":true,"id":703},"_Extent":{"__isSmartRef__":true,"id":704},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":705},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":706},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":707},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"703":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"704":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"705":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"706":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"707":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"708":{"x":197.8147768157955,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"709":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":710},{"__isSmartRef__":true,"id":712},{"__isSmartRef__":true,"id":714},{"__isSmartRef__":true,"id":716},{"__isSmartRef__":true,"id":718},{"__isSmartRef__":true,"id":720},{"__isSmartRef__":true,"id":722},{"__isSmartRef__":true,"id":724},{"__isSmartRef__":true,"id":726},{"__isSmartRef__":true,"id":728},{"__isSmartRef__":true,"id":730},{"__isSmartRef__":true,"id":732},{"__isSmartRef__":true,"id":734},{"__isSmartRef__":true,"id":736},{"__isSmartRef__":true,"id":738},{"__isSmartRef__":true,"id":740},{"__isSmartRef__":true,"id":742},{"__isSmartRef__":true,"id":744},{"__isSmartRef__":true,"id":746}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"710":{"date":{"__isSmartRef__":true,"id":711},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"711":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"712":{"date":{"__isSmartRef__":true,"id":713},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"713":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"714":{"date":{"__isSmartRef__":true,"id":715},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"715":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"716":{"date":{"__isSmartRef__":true,"id":717},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"717":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"718":{"date":{"__isSmartRef__":true,"id":719},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"719":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"720":{"date":{"__isSmartRef__":true,"id":721},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"721":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"722":{"date":{"__isSmartRef__":true,"id":723},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"723":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"724":{"date":{"__isSmartRef__":true,"id":725},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"725":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"726":{"date":{"__isSmartRef__":true,"id":727},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"727":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"728":{"date":{"__isSmartRef__":true,"id":729},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"729":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"730":{"date":{"__isSmartRef__":true,"id":731},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"731":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"732":{"date":{"__isSmartRef__":true,"id":733},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"733":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"734":{"date":{"__isSmartRef__":true,"id":735},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"735":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"736":{"date":{"__isSmartRef__":true,"id":737},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"737":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"738":{"date":{"__isSmartRef__":true,"id":739},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"739":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"740":{"date":{"__isSmartRef__":true,"id":741},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"741":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"742":{"date":{"__isSmartRef__":true,"id":743},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"743":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"744":{"date":{"__isSmartRef__":true,"id":745},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"745":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"746":{"date":{"__isSmartRef__":true,"id":747},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"747":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"748":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"749":{"morph":{"__isSmartRef__":true,"id":630},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"750":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":751}},"751":{"test01IsMorph":{"__isSmartRef__":true,"id":752}},"752":{"varMapping":{"__isSmartRef__":true,"id":753},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":754},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"753":{"this":{"__isSmartRef__":true,"id":750}},"754":{},"755":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"756":{"left":0,"up":1,"right":2,"down":3},"757":{"submorphs":[{"__isSmartRef__":true,"id":758}],"scripts":[],"id":"C9F8DA3E-055A-4DAE-9ADA-26A28DFBB0D3","shape":{"__isSmartRef__":true,"id":794},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":800},"showsHalos":false,"name":"BasicGem6","partsBinMetaInfo":{"__isSmartRef__":true,"id":801},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":840},"eventHandler":{"__isSmartRef__":true,"id":841},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":842},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":847},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":848},"neighbours":[{"__isSmartRef__":true,"id":630},null,{"__isSmartRef__":true,"id":849},{"__isSmartRef__":true,"id":1322}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14979},"__LivelyClassName__":"lively.morphic.Box"},"758":{"submorphs":[{"__isSmartRef__":true,"id":759},{"__isSmartRef__":true,"id":770}],"scripts":[],"shape":{"__isSmartRef__":true,"id":781},"derivationIds":[null],"id":"69B8A044-338F-4ADD-A1FE-B8C21B7FCD83","renderContextTable":{"__isSmartRef__":true,"id":791},"eventHandler":{"__isSmartRef__":true,"id":792},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":757},"_Position":{"__isSmartRef__":true,"id":793},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"759":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":760},"derivationIds":[null],"id":"6F4294C3-45A2-4F76-9728-6A6504015D80","renderContextTable":{"__isSmartRef__":true,"id":768},"eventHandler":{"__isSmartRef__":true,"id":769},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":758},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"760":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":761},{"__isSmartRef__":true,"id":762}],"renderContextTable":{"__isSmartRef__":true,"id":763},"_Position":{"__isSmartRef__":true,"id":764},"_Extent":{"__isSmartRef__":true,"id":765},"_Padding":{"__isSmartRef__":true,"id":766},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":767},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"761":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"762":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"763":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"764":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"765":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"766":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"767":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"768":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"769":{"morph":{"__isSmartRef__":true,"id":759},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"770":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":771},"derivationIds":[null],"id":"326EADE4-0FE8-459B-9DD5-9CE3931F5731","renderContextTable":{"__isSmartRef__":true,"id":779},"eventHandler":{"__isSmartRef__":true,"id":780},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":758},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"771":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":772},{"__isSmartRef__":true,"id":773}],"renderContextTable":{"__isSmartRef__":true,"id":774},"_Position":{"__isSmartRef__":true,"id":775},"_Extent":{"__isSmartRef__":true,"id":776},"_Padding":{"__isSmartRef__":true,"id":777},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":778},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"772":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"773":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"774":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"775":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"776":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"777":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"778":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"779":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"780":{"morph":{"__isSmartRef__":true,"id":770},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"781":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":782},{"__isSmartRef__":true,"id":783},{"__isSmartRef__":true,"id":784},{"__isSmartRef__":true,"id":785}],"renderContextTable":{"__isSmartRef__":true,"id":786},"_Position":{"__isSmartRef__":true,"id":787},"_Extent":{"__isSmartRef__":true,"id":788},"_Padding":{"__isSmartRef__":true,"id":789},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":790},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"782":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"783":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"784":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"785":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"786":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"787":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"788":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"789":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"790":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"791":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"792":{"morph":{"__isSmartRef__":true,"id":758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"793":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"794":{"position":{"__isSmartRef__":true,"id":795},"_Extent":{"__isSmartRef__":true,"id":796},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":797},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":798},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":799},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"795":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"796":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"797":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"798":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"799":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"800":{"x":247.0184710197444,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"801":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":802},{"__isSmartRef__":true,"id":804},{"__isSmartRef__":true,"id":806},{"__isSmartRef__":true,"id":808},{"__isSmartRef__":true,"id":810},{"__isSmartRef__":true,"id":812},{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":816},{"__isSmartRef__":true,"id":818},{"__isSmartRef__":true,"id":820},{"__isSmartRef__":true,"id":822},{"__isSmartRef__":true,"id":824},{"__isSmartRef__":true,"id":826},{"__isSmartRef__":true,"id":828},{"__isSmartRef__":true,"id":830},{"__isSmartRef__":true,"id":832},{"__isSmartRef__":true,"id":834},{"__isSmartRef__":true,"id":836},{"__isSmartRef__":true,"id":838}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"802":{"date":{"__isSmartRef__":true,"id":803},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"803":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"804":{"date":{"__isSmartRef__":true,"id":805},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"805":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"806":{"date":{"__isSmartRef__":true,"id":807},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"807":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"808":{"date":{"__isSmartRef__":true,"id":809},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"809":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"810":{"date":{"__isSmartRef__":true,"id":811},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"811":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"812":{"date":{"__isSmartRef__":true,"id":813},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"813":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"814":{"date":{"__isSmartRef__":true,"id":815},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"815":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"816":{"date":{"__isSmartRef__":true,"id":817},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"817":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"818":{"date":{"__isSmartRef__":true,"id":819},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"819":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"820":{"date":{"__isSmartRef__":true,"id":821},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"821":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"822":{"date":{"__isSmartRef__":true,"id":823},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"823":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"824":{"date":{"__isSmartRef__":true,"id":825},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"825":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"826":{"date":{"__isSmartRef__":true,"id":827},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"827":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"828":{"date":{"__isSmartRef__":true,"id":829},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"829":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"830":{"date":{"__isSmartRef__":true,"id":831},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"831":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"832":{"date":{"__isSmartRef__":true,"id":833},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"833":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"834":{"date":{"__isSmartRef__":true,"id":835},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"835":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"836":{"date":{"__isSmartRef__":true,"id":837},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"837":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"838":{"date":{"__isSmartRef__":true,"id":839},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"839":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"840":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"841":{"morph":{"__isSmartRef__":true,"id":757},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"842":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":843}},"843":{"test01IsMorph":{"__isSmartRef__":true,"id":844}},"844":{"varMapping":{"__isSmartRef__":true,"id":845},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":846},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"845":{"this":{"__isSmartRef__":true,"id":842}},"846":{},"847":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"848":{"left":0,"up":1,"right":2,"down":3},"849":{"submorphs":[{"__isSmartRef__":true,"id":850}],"scripts":[],"id":"540C1583-F0A7-4EAA-989F-8CBB5DA26207","shape":{"__isSmartRef__":true,"id":921},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":927},"showsHalos":false,"name":"BasicGem7","partsBinMetaInfo":{"__isSmartRef__":true,"id":928},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":967},"eventHandler":{"__isSmartRef__":true,"id":968},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":969},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":974},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":975},"neighbours":[{"__isSmartRef__":true,"id":757},null,{"__isSmartRef__":true,"id":976},{"__isSmartRef__":true,"id":1195}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14850},"__LivelyClassName__":"lively.morphic.Box"},"850":{"submorphs":[{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":862},{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":884},{"__isSmartRef__":true,"id":895}],"scripts":[],"shape":{"__isSmartRef__":true,"id":906},"derivationIds":[null],"id":"BEDCB677-FE58-480D-B2F2-1DAA5DBC6A3D","renderContextTable":{"__isSmartRef__":true,"id":918},"eventHandler":{"__isSmartRef__":true,"id":919},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":849},"_Position":{"__isSmartRef__":true,"id":920},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"851":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":852},"derivationIds":[null],"id":"2E8D0EDA-A3B3-4520-9863-821F79B09502","renderContextTable":{"__isSmartRef__":true,"id":860},"eventHandler":{"__isSmartRef__":true,"id":861},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":850},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"852":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":853},{"__isSmartRef__":true,"id":854}],"renderContextTable":{"__isSmartRef__":true,"id":855},"_Position":{"__isSmartRef__":true,"id":856},"_Extent":{"__isSmartRef__":true,"id":857},"_Padding":{"__isSmartRef__":true,"id":858},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":859},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"853":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"854":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"855":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"856":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"857":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"858":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"859":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"860":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"861":{"morph":{"__isSmartRef__":true,"id":851},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"862":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":863},"derivationIds":[null],"id":"52FF2814-5F34-4093-AADC-A3C069C4E615","renderContextTable":{"__isSmartRef__":true,"id":871},"eventHandler":{"__isSmartRef__":true,"id":872},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":850},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"863":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":864},{"__isSmartRef__":true,"id":865}],"renderContextTable":{"__isSmartRef__":true,"id":866},"_Position":{"__isSmartRef__":true,"id":867},"_Extent":{"__isSmartRef__":true,"id":868},"_Padding":{"__isSmartRef__":true,"id":869},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":870},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"864":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"865":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"866":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"867":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"868":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"869":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"870":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"871":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"872":{"morph":{"__isSmartRef__":true,"id":862},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"873":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":874},"derivationIds":[null],"id":"C2F809EC-7A69-411D-B0BF-6658883FC47E","renderContextTable":{"__isSmartRef__":true,"id":882},"eventHandler":{"__isSmartRef__":true,"id":883},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":850},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"874":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":875},{"__isSmartRef__":true,"id":876}],"renderContextTable":{"__isSmartRef__":true,"id":877},"_Position":{"__isSmartRef__":true,"id":878},"_Extent":{"__isSmartRef__":true,"id":879},"_Padding":{"__isSmartRef__":true,"id":880},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":881},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"875":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"876":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"877":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"878":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"879":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"880":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"881":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"882":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"883":{"morph":{"__isSmartRef__":true,"id":873},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"884":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":885},"derivationIds":[null],"id":"8DB96501-51C3-4F81-BBB3-92B58EF84E5B","renderContextTable":{"__isSmartRef__":true,"id":893},"eventHandler":{"__isSmartRef__":true,"id":894},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":850},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"885":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":886},{"__isSmartRef__":true,"id":887}],"renderContextTable":{"__isSmartRef__":true,"id":888},"_Position":{"__isSmartRef__":true,"id":889},"_Extent":{"__isSmartRef__":true,"id":890},"_Padding":{"__isSmartRef__":true,"id":891},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":892},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"886":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"887":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"888":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"889":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"890":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"891":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"892":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"893":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"894":{"morph":{"__isSmartRef__":true,"id":884},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"895":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":896},"derivationIds":[null],"id":"747D7A00-0962-451F-8B07-8A5C4D082C51","renderContextTable":{"__isSmartRef__":true,"id":904},"eventHandler":{"__isSmartRef__":true,"id":905},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":850},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"896":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":897},{"__isSmartRef__":true,"id":898}],"renderContextTable":{"__isSmartRef__":true,"id":899},"_Position":{"__isSmartRef__":true,"id":900},"_Extent":{"__isSmartRef__":true,"id":901},"_Padding":{"__isSmartRef__":true,"id":902},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":903},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"897":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"898":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"899":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"900":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"901":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"902":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"903":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"904":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"905":{"morph":{"__isSmartRef__":true,"id":895},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"906":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":907},{"__isSmartRef__":true,"id":908},{"__isSmartRef__":true,"id":909},{"__isSmartRef__":true,"id":910},{"__isSmartRef__":true,"id":911},{"__isSmartRef__":true,"id":912}],"renderContextTable":{"__isSmartRef__":true,"id":913},"_Position":{"__isSmartRef__":true,"id":914},"_Extent":{"__isSmartRef__":true,"id":915},"_Padding":{"__isSmartRef__":true,"id":916},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":917},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"907":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"908":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"909":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"910":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"911":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"912":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"913":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"914":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"915":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"916":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"917":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"918":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"919":{"morph":{"__isSmartRef__":true,"id":850},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"920":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"921":{"position":{"__isSmartRef__":true,"id":922},"_Extent":{"__isSmartRef__":true,"id":923},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":924},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":925},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":926},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"922":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"923":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"924":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"925":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"926":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"927":{"x":296.22216522369325,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"928":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":929},{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":933},{"__isSmartRef__":true,"id":935},{"__isSmartRef__":true,"id":937},{"__isSmartRef__":true,"id":939},{"__isSmartRef__":true,"id":941},{"__isSmartRef__":true,"id":943},{"__isSmartRef__":true,"id":945},{"__isSmartRef__":true,"id":947},{"__isSmartRef__":true,"id":949},{"__isSmartRef__":true,"id":951},{"__isSmartRef__":true,"id":953},{"__isSmartRef__":true,"id":955},{"__isSmartRef__":true,"id":957},{"__isSmartRef__":true,"id":959},{"__isSmartRef__":true,"id":961},{"__isSmartRef__":true,"id":963},{"__isSmartRef__":true,"id":965}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"929":{"date":{"__isSmartRef__":true,"id":930},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"930":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"931":{"date":{"__isSmartRef__":true,"id":932},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"932":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"933":{"date":{"__isSmartRef__":true,"id":934},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"934":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"935":{"date":{"__isSmartRef__":true,"id":936},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"936":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"937":{"date":{"__isSmartRef__":true,"id":938},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"938":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"939":{"date":{"__isSmartRef__":true,"id":940},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"940":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"941":{"date":{"__isSmartRef__":true,"id":942},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"942":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"943":{"date":{"__isSmartRef__":true,"id":944},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"944":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"945":{"date":{"__isSmartRef__":true,"id":946},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"946":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"947":{"date":{"__isSmartRef__":true,"id":948},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"948":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"949":{"date":{"__isSmartRef__":true,"id":950},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"950":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"951":{"date":{"__isSmartRef__":true,"id":952},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"952":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"953":{"date":{"__isSmartRef__":true,"id":954},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"954":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"955":{"date":{"__isSmartRef__":true,"id":956},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"956":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"957":{"date":{"__isSmartRef__":true,"id":958},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"958":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"959":{"date":{"__isSmartRef__":true,"id":960},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"960":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"961":{"date":{"__isSmartRef__":true,"id":962},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"962":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"963":{"date":{"__isSmartRef__":true,"id":964},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"964":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"965":{"date":{"__isSmartRef__":true,"id":966},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"966":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"967":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"968":{"morph":{"__isSmartRef__":true,"id":849},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"969":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":970}},"970":{"test01IsMorph":{"__isSmartRef__":true,"id":971}},"971":{"varMapping":{"__isSmartRef__":true,"id":972},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":973},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"972":{"this":{"__isSmartRef__":true,"id":969}},"973":{},"974":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"975":{"left":0,"up":1,"right":2,"down":3},"976":{"submorphs":[{"__isSmartRef__":true,"id":977}],"scripts":[],"id":"3BBAA3EE-B390-47AF-B724-350D60E2C2DF","shape":{"__isSmartRef__":true,"id":1039},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1045},"showsHalos":false,"name":"BasicGem8","partsBinMetaInfo":{"__isSmartRef__":true,"id":1046},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1085},"eventHandler":{"__isSmartRef__":true,"id":1086},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1087},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1092},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1093},"neighbours":[{"__isSmartRef__":true,"id":849},null,null,{"__isSmartRef__":true,"id":1094}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14721},"__LivelyClassName__":"lively.morphic.Box"},"977":{"submorphs":[{"__isSmartRef__":true,"id":978},{"__isSmartRef__":true,"id":989},{"__isSmartRef__":true,"id":1000},{"__isSmartRef__":true,"id":1011}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1022},"derivationIds":[null],"id":"032EF680-7313-4ACF-80BC-D0E4804C2CDD","renderContextTable":{"__isSmartRef__":true,"id":1036},"eventHandler":{"__isSmartRef__":true,"id":1037},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":976},"_Position":{"__isSmartRef__":true,"id":1038},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"978":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":979},"derivationIds":[null],"id":"AC37F423-F7A3-4F91-83C6-2B39F25B975D","renderContextTable":{"__isSmartRef__":true,"id":987},"eventHandler":{"__isSmartRef__":true,"id":988},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":977},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"979":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":980},{"__isSmartRef__":true,"id":981}],"renderContextTable":{"__isSmartRef__":true,"id":982},"_Position":{"__isSmartRef__":true,"id":983},"_Extent":{"__isSmartRef__":true,"id":984},"_Padding":{"__isSmartRef__":true,"id":985},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":986},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"980":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"981":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"982":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"983":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"984":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"985":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"986":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"987":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"988":{"morph":{"__isSmartRef__":true,"id":978},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"989":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":990},"derivationIds":[null],"id":"EF4EC2FC-FA15-452E-B043-093CF0A2BDD7","renderContextTable":{"__isSmartRef__":true,"id":998},"eventHandler":{"__isSmartRef__":true,"id":999},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":977},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"990":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":991},{"__isSmartRef__":true,"id":992}],"renderContextTable":{"__isSmartRef__":true,"id":993},"_Position":{"__isSmartRef__":true,"id":994},"_Extent":{"__isSmartRef__":true,"id":995},"_Padding":{"__isSmartRef__":true,"id":996},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":997},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"991":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"992":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"993":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"994":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"995":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"996":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"997":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"998":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"999":{"morph":{"__isSmartRef__":true,"id":989},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1000":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1001},"derivationIds":[null],"id":"6406B60D-6347-4AA4-BC2A-AD35D004DA86","renderContextTable":{"__isSmartRef__":true,"id":1009},"eventHandler":{"__isSmartRef__":true,"id":1010},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":977},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1001":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1002},{"__isSmartRef__":true,"id":1003}],"renderContextTable":{"__isSmartRef__":true,"id":1004},"_Position":{"__isSmartRef__":true,"id":1005},"_Extent":{"__isSmartRef__":true,"id":1006},"_Padding":{"__isSmartRef__":true,"id":1007},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1008},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1002":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1003":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1004":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1005":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1006":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1007":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1008":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1009":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1010":{"morph":{"__isSmartRef__":true,"id":1000},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1011":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1012},"derivationIds":[null],"id":"60C7CA66-228B-4871-87DB-EF38DA82893B","renderContextTable":{"__isSmartRef__":true,"id":1020},"eventHandler":{"__isSmartRef__":true,"id":1021},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":977},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1012":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1013},{"__isSmartRef__":true,"id":1014}],"renderContextTable":{"__isSmartRef__":true,"id":1015},"_Position":{"__isSmartRef__":true,"id":1016},"_Extent":{"__isSmartRef__":true,"id":1017},"_Padding":{"__isSmartRef__":true,"id":1018},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":1019},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1013":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1014":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1015":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1016":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1017":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1018":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1019":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1020":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1021":{"morph":{"__isSmartRef__":true,"id":1011},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1022":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1023},{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1025},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1027},{"__isSmartRef__":true,"id":1028},{"__isSmartRef__":true,"id":1029},{"__isSmartRef__":true,"id":1030}],"renderContextTable":{"__isSmartRef__":true,"id":1031},"_Position":{"__isSmartRef__":true,"id":1032},"_Extent":{"__isSmartRef__":true,"id":1033},"_Padding":{"__isSmartRef__":true,"id":1034},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1035},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1023":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1024":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1025":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1026":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1027":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1028":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1029":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1030":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1031":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1032":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1033":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1034":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1035":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1036":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1037":{"morph":{"__isSmartRef__":true,"id":977},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1038":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1039":{"position":{"__isSmartRef__":true,"id":1040},"_Extent":{"__isSmartRef__":true,"id":1041},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1042},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1043},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1044},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1040":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1041":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1042":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1043":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1044":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1045":{"x":345.42585942764214,"y":1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1046":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1047},{"__isSmartRef__":true,"id":1049},{"__isSmartRef__":true,"id":1051},{"__isSmartRef__":true,"id":1053},{"__isSmartRef__":true,"id":1055},{"__isSmartRef__":true,"id":1057},{"__isSmartRef__":true,"id":1059},{"__isSmartRef__":true,"id":1061},{"__isSmartRef__":true,"id":1063},{"__isSmartRef__":true,"id":1065},{"__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}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1047":{"date":{"__isSmartRef__":true,"id":1048},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1048":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1049":{"date":{"__isSmartRef__":true,"id":1050},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1050":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1051":{"date":{"__isSmartRef__":true,"id":1052},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1052":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1053":{"date":{"__isSmartRef__":true,"id":1054},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1054":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1055":{"date":{"__isSmartRef__":true,"id":1056},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1056":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1057":{"date":{"__isSmartRef__":true,"id":1058},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1058":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1059":{"date":{"__isSmartRef__":true,"id":1060},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1060":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1061":{"date":{"__isSmartRef__":true,"id":1062},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1062":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1063":{"date":{"__isSmartRef__":true,"id":1064},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1064":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1065":{"date":{"__isSmartRef__":true,"id":1066},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1066":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1067":{"date":{"__isSmartRef__":true,"id":1068},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1068":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1069":{"date":{"__isSmartRef__":true,"id":1070},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1070":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1071":{"date":{"__isSmartRef__":true,"id":1072},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1072":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1073":{"date":{"__isSmartRef__":true,"id":1074},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1074":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1075":{"date":{"__isSmartRef__":true,"id":1076},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1076":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1077":{"date":{"__isSmartRef__":true,"id":1078},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1078":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1079":{"date":{"__isSmartRef__":true,"id":1080},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1080":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1081":{"date":{"__isSmartRef__":true,"id":1082},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1082":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1083":{"date":{"__isSmartRef__":true,"id":1084},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1084":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1085":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1086":{"morph":{"__isSmartRef__":true,"id":976},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1087":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1088}},"1088":{"test01IsMorph":{"__isSmartRef__":true,"id":1089}},"1089":{"varMapping":{"__isSmartRef__":true,"id":1090},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1091},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1090":{"this":{"__isSmartRef__":true,"id":1087}},"1091":{},"1092":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1093":{"left":0,"up":1,"right":2,"down":3},"1094":{"submorphs":[{"__isSmartRef__":true,"id":1095}],"scripts":[],"id":"43DA50EC-5C57-43D5-8989-C92C10C8426D","shape":{"__isSmartRef__":true,"id":1140},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1146},"showsHalos":false,"name":"BasicGem16","partsBinMetaInfo":{"__isSmartRef__":true,"id":1147},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1186},"eventHandler":{"__isSmartRef__":true,"id":1187},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1188},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1193},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1194},"neighbours":[{"__isSmartRef__":true,"id":1195},{"__isSmartRef__":true,"id":976},null,{"__isSmartRef__":true,"id":2821}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14592},"__LivelyClassName__":"lively.morphic.Box"},"1095":{"submorphs":[{"__isSmartRef__":true,"id":1096},{"__isSmartRef__":true,"id":1106},{"__isSmartRef__":true,"id":1116}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1126},"derivationIds":[null],"id":"8F040AB6-A042-44DF-A35F-E968806E0411","renderContextTable":{"__isSmartRef__":true,"id":1137},"eventHandler":{"__isSmartRef__":true,"id":1138},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1094},"_Position":{"__isSmartRef__":true,"id":1139},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1096":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1097},"derivationIds":[null],"id":"4C01F9D3-0E85-4F39-8D5C-2EC29B5A72C6","renderContextTable":{"__isSmartRef__":true,"id":1104},"eventHandler":{"__isSmartRef__":true,"id":1105},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1095},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1097":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1098},{"__isSmartRef__":true,"id":1099}],"renderContextTable":{"__isSmartRef__":true,"id":1100},"_Position":{"__isSmartRef__":true,"id":1101},"_Extent":{"__isSmartRef__":true,"id":1102},"_Padding":{"__isSmartRef__":true,"id":1103},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1098":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1099":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1100":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1101":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1102":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1103":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1104":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1105":{"morph":{"__isSmartRef__":true,"id":1096},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1106":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1107},"derivationIds":[null],"id":"1C78BFE7-ECEB-485B-AB65-367D9C75708B","renderContextTable":{"__isSmartRef__":true,"id":1114},"eventHandler":{"__isSmartRef__":true,"id":1115},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1095},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1107":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1108},{"__isSmartRef__":true,"id":1109}],"renderContextTable":{"__isSmartRef__":true,"id":1110},"_Position":{"__isSmartRef__":true,"id":1111},"_Extent":{"__isSmartRef__":true,"id":1112},"_Padding":{"__isSmartRef__":true,"id":1113},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1108":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1109":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1110":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1111":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1112":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1113":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1114":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1115":{"morph":{"__isSmartRef__":true,"id":1106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1116":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1117},"derivationIds":[null],"id":"E7D8979C-BD69-4D34-A613-24444BE044D2","renderContextTable":{"__isSmartRef__":true,"id":1124},"eventHandler":{"__isSmartRef__":true,"id":1125},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1095},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1117":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1118},{"__isSmartRef__":true,"id":1119}],"renderContextTable":{"__isSmartRef__":true,"id":1120},"_Position":{"__isSmartRef__":true,"id":1121},"_Extent":{"__isSmartRef__":true,"id":1122},"_Padding":{"__isSmartRef__":true,"id":1123},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1118":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1119":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1120":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1121":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1122":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1123":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1124":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1125":{"morph":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1126":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1127},{"__isSmartRef__":true,"id":1128},{"__isSmartRef__":true,"id":1129},{"__isSmartRef__":true,"id":1130},{"__isSmartRef__":true,"id":1131}],"renderContextTable":{"__isSmartRef__":true,"id":1132},"_Position":{"__isSmartRef__":true,"id":1133},"_Extent":{"__isSmartRef__":true,"id":1134},"_Padding":{"__isSmartRef__":true,"id":1135},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1136},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1127":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1128":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1129":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1130":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1131":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1132":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1133":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1134":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1135":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1136":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1138":{"morph":{"__isSmartRef__":true,"id":1095},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1139":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1140":{"position":{"__isSmartRef__":true,"id":1141},"_Extent":{"__isSmartRef__":true,"id":1142},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1143},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1144},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1145},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1141":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1142":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1143":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1144":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1145":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1146":{"x":345.42585942764214,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1147":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1148},{"__isSmartRef__":true,"id":1150},{"__isSmartRef__":true,"id":1152},{"__isSmartRef__":true,"id":1154},{"__isSmartRef__":true,"id":1156},{"__isSmartRef__":true,"id":1158},{"__isSmartRef__":true,"id":1160},{"__isSmartRef__":true,"id":1162},{"__isSmartRef__":true,"id":1164},{"__isSmartRef__":true,"id":1166},{"__isSmartRef__":true,"id":1168},{"__isSmartRef__":true,"id":1170},{"__isSmartRef__":true,"id":1172},{"__isSmartRef__":true,"id":1174},{"__isSmartRef__":true,"id":1176},{"__isSmartRef__":true,"id":1178},{"__isSmartRef__":true,"id":1180},{"__isSmartRef__":true,"id":1182},{"__isSmartRef__":true,"id":1184}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1148":{"date":{"__isSmartRef__":true,"id":1149},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1149":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1150":{"date":{"__isSmartRef__":true,"id":1151},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1151":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1152":{"date":{"__isSmartRef__":true,"id":1153},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1153":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1154":{"date":{"__isSmartRef__":true,"id":1155},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1155":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1156":{"date":{"__isSmartRef__":true,"id":1157},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1157":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1158":{"date":{"__isSmartRef__":true,"id":1159},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1159":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1160":{"date":{"__isSmartRef__":true,"id":1161},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1161":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1162":{"date":{"__isSmartRef__":true,"id":1163},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1163":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1164":{"date":{"__isSmartRef__":true,"id":1165},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1165":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1166":{"date":{"__isSmartRef__":true,"id":1167},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1167":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1168":{"date":{"__isSmartRef__":true,"id":1169},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1169":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1170":{"date":{"__isSmartRef__":true,"id":1171},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1171":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1172":{"date":{"__isSmartRef__":true,"id":1173},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1173":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1174":{"date":{"__isSmartRef__":true,"id":1175},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1175":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1176":{"date":{"__isSmartRef__":true,"id":1177},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1177":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1178":{"date":{"__isSmartRef__":true,"id":1179},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1179":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1180":{"date":{"__isSmartRef__":true,"id":1181},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1181":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1182":{"date":{"__isSmartRef__":true,"id":1183},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1183":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1184":{"date":{"__isSmartRef__":true,"id":1185},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1185":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1187":{"morph":{"__isSmartRef__":true,"id":1094},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1188":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1189}},"1189":{"test01IsMorph":{"__isSmartRef__":true,"id":1190}},"1190":{"varMapping":{"__isSmartRef__":true,"id":1191},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1192},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1191":{"this":{"__isSmartRef__":true,"id":1188}},"1192":{},"1193":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1194":{"left":0,"up":1,"right":2,"down":3},"1195":{"submorphs":[{"__isSmartRef__":true,"id":1196}],"scripts":[],"id":"53884986-5965-4425-ADC8-12F72D039649","shape":{"__isSmartRef__":true,"id":1267},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1273},"showsHalos":false,"name":"BasicGem15","partsBinMetaInfo":{"__isSmartRef__":true,"id":1274},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1313},"eventHandler":{"__isSmartRef__":true,"id":1314},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1315},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1320},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1321},"neighbours":[{"__isSmartRef__":true,"id":1322},{"__isSmartRef__":true,"id":849},{"__isSmartRef__":true,"id":1094},{"__isSmartRef__":true,"id":2703}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":14462},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14463},"__LivelyClassName__":"lively.morphic.Box"},"1196":{"submorphs":[{"__isSmartRef__":true,"id":1197},{"__isSmartRef__":true,"id":1208},{"__isSmartRef__":true,"id":1219},{"__isSmartRef__":true,"id":1230},{"__isSmartRef__":true,"id":1241}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1252},"derivationIds":[null],"id":"710A3954-77BD-4103-AA42-86087084DFAD","renderContextTable":{"__isSmartRef__":true,"id":1264},"eventHandler":{"__isSmartRef__":true,"id":1265},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1195},"_Position":{"__isSmartRef__":true,"id":1266},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1197":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1198},"derivationIds":[null],"id":"6E6143BE-7189-48B0-BD88-103E6DC456B5","renderContextTable":{"__isSmartRef__":true,"id":1206},"eventHandler":{"__isSmartRef__":true,"id":1207},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1196},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1198":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1199},{"__isSmartRef__":true,"id":1200}],"renderContextTable":{"__isSmartRef__":true,"id":1201},"_Position":{"__isSmartRef__":true,"id":1202},"_Extent":{"__isSmartRef__":true,"id":1203},"_Padding":{"__isSmartRef__":true,"id":1204},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1205},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1199":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1200":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1201":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1202":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1203":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1204":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1205":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1206":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1207":{"morph":{"__isSmartRef__":true,"id":1197},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1208":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1209},"derivationIds":[null],"id":"F00E066E-F9B9-456D-A57B-5B3560F2E52C","renderContextTable":{"__isSmartRef__":true,"id":1217},"eventHandler":{"__isSmartRef__":true,"id":1218},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1196},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1209":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1210},{"__isSmartRef__":true,"id":1211}],"renderContextTable":{"__isSmartRef__":true,"id":1212},"_Position":{"__isSmartRef__":true,"id":1213},"_Extent":{"__isSmartRef__":true,"id":1214},"_Padding":{"__isSmartRef__":true,"id":1215},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1216},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1210":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1211":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1212":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1213":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1214":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1215":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1216":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1217":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1218":{"morph":{"__isSmartRef__":true,"id":1208},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1219":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1220},"derivationIds":[null],"id":"C7562189-F6CF-42C2-B26A-8BACA43E53EF","renderContextTable":{"__isSmartRef__":true,"id":1228},"eventHandler":{"__isSmartRef__":true,"id":1229},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1196},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1220":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1221},{"__isSmartRef__":true,"id":1222}],"renderContextTable":{"__isSmartRef__":true,"id":1223},"_Position":{"__isSmartRef__":true,"id":1224},"_Extent":{"__isSmartRef__":true,"id":1225},"_Padding":{"__isSmartRef__":true,"id":1226},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1227},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1221":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1222":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1223":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1224":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1225":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1226":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1227":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1228":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1229":{"morph":{"__isSmartRef__":true,"id":1219},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1230":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1231},"derivationIds":[null],"id":"2C20B910-446E-4B91-BE01-0A01CDBEBF66","renderContextTable":{"__isSmartRef__":true,"id":1239},"eventHandler":{"__isSmartRef__":true,"id":1240},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1196},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1231":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1232},{"__isSmartRef__":true,"id":1233}],"renderContextTable":{"__isSmartRef__":true,"id":1234},"_Position":{"__isSmartRef__":true,"id":1235},"_Extent":{"__isSmartRef__":true,"id":1236},"_Padding":{"__isSmartRef__":true,"id":1237},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1238},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1232":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1233":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1235":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1236":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1237":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1238":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1239":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1240":{"morph":{"__isSmartRef__":true,"id":1230},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1241":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1242},"derivationIds":[null],"id":"847F6131-87C6-411C-9DFB-05E179C455D3","renderContextTable":{"__isSmartRef__":true,"id":1250},"eventHandler":{"__isSmartRef__":true,"id":1251},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1196},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1242":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1243},{"__isSmartRef__":true,"id":1244}],"renderContextTable":{"__isSmartRef__":true,"id":1245},"_Position":{"__isSmartRef__":true,"id":1246},"_Extent":{"__isSmartRef__":true,"id":1247},"_Padding":{"__isSmartRef__":true,"id":1248},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1249},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1243":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1244":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1245":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1246":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1247":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1248":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1249":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1250":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1251":{"morph":{"__isSmartRef__":true,"id":1241},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1252":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1253},{"__isSmartRef__":true,"id":1254},{"__isSmartRef__":true,"id":1255},{"__isSmartRef__":true,"id":1256},{"__isSmartRef__":true,"id":1257},{"__isSmartRef__":true,"id":1258}],"renderContextTable":{"__isSmartRef__":true,"id":1259},"_Position":{"__isSmartRef__":true,"id":1260},"_Extent":{"__isSmartRef__":true,"id":1261},"_Padding":{"__isSmartRef__":true,"id":1262},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1263},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1253":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1254":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1255":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1256":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1257":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1258":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1259":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1260":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1261":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1262":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1263":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1264":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1265":{"morph":{"__isSmartRef__":true,"id":1196},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1266":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1267":{"position":{"__isSmartRef__":true,"id":1268},"_Extent":{"__isSmartRef__":true,"id":1269},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1270},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1271},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1272},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1268":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1269":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1270":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1271":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1272":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1273":{"x":296.22216522369325,"y":106.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1274":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1275},{"__isSmartRef__":true,"id":1277},{"__isSmartRef__":true,"id":1279},{"__isSmartRef__":true,"id":1281},{"__isSmartRef__":true,"id":1283},{"__isSmartRef__":true,"id":1285},{"__isSmartRef__":true,"id":1287},{"__isSmartRef__":true,"id":1289},{"__isSmartRef__":true,"id":1291},{"__isSmartRef__":true,"id":1293},{"__isSmartRef__":true,"id":1295},{"__isSmartRef__":true,"id":1297},{"__isSmartRef__":true,"id":1299},{"__isSmartRef__":true,"id":1301},{"__isSmartRef__":true,"id":1303},{"__isSmartRef__":true,"id":1305},{"__isSmartRef__":true,"id":1307},{"__isSmartRef__":true,"id":1309},{"__isSmartRef__":true,"id":1311}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1275":{"date":{"__isSmartRef__":true,"id":1276},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1276":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1277":{"date":{"__isSmartRef__":true,"id":1278},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1278":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1279":{"date":{"__isSmartRef__":true,"id":1280},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1280":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1281":{"date":{"__isSmartRef__":true,"id":1282},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1282":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1283":{"date":{"__isSmartRef__":true,"id":1284},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1284":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1285":{"date":{"__isSmartRef__":true,"id":1286},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1286":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1287":{"date":{"__isSmartRef__":true,"id":1288},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1288":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1289":{"date":{"__isSmartRef__":true,"id":1290},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1290":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1291":{"date":{"__isSmartRef__":true,"id":1292},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1292":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1293":{"date":{"__isSmartRef__":true,"id":1294},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1294":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1295":{"date":{"__isSmartRef__":true,"id":1296},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1296":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1297":{"date":{"__isSmartRef__":true,"id":1298},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1298":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1299":{"date":{"__isSmartRef__":true,"id":1300},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1300":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1301":{"date":{"__isSmartRef__":true,"id":1302},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1302":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1303":{"date":{"__isSmartRef__":true,"id":1304},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1304":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1305":{"date":{"__isSmartRef__":true,"id":1306},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1306":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1307":{"date":{"__isSmartRef__":true,"id":1308},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1308":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1309":{"date":{"__isSmartRef__":true,"id":1310},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1310":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1311":{"date":{"__isSmartRef__":true,"id":1312},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1312":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1313":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1314":{"morph":{"__isSmartRef__":true,"id":1195},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1315":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1316}},"1316":{"test01IsMorph":{"__isSmartRef__":true,"id":1317}},"1317":{"varMapping":{"__isSmartRef__":true,"id":1318},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1319},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1318":{"this":{"__isSmartRef__":true,"id":1315}},"1319":{},"1320":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1321":{"left":0,"up":1,"right":2,"down":3},"1322":{"submorphs":[{"__isSmartRef__":true,"id":1323}],"scripts":[],"id":"D3E68234-06A8-46CB-BDD4-DAD1108190CB","shape":{"__isSmartRef__":true,"id":1394},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1400},"showsHalos":false,"name":"BasicGem14","partsBinMetaInfo":{"__isSmartRef__":true,"id":1401},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1440},"eventHandler":{"__isSmartRef__":true,"id":1441},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1442},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1447},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1448},"neighbours":[{"__isSmartRef__":true,"id":1449},{"__isSmartRef__":true,"id":757},{"__isSmartRef__":true,"id":1195},{"__isSmartRef__":true,"id":2576}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":14332},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14333},"__LivelyClassName__":"lively.morphic.Box"},"1323":{"submorphs":[{"__isSmartRef__":true,"id":1324},{"__isSmartRef__":true,"id":1335},{"__isSmartRef__":true,"id":1346},{"__isSmartRef__":true,"id":1357},{"__isSmartRef__":true,"id":1368}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1379},"derivationIds":[null],"id":"1CFBC14C-2303-4228-ACEC-518AC5CC4F48","renderContextTable":{"__isSmartRef__":true,"id":1391},"eventHandler":{"__isSmartRef__":true,"id":1392},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1322},"_Position":{"__isSmartRef__":true,"id":1393},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1324":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1325},"derivationIds":[null],"id":"8FA2529E-AB4B-4F80-AAA7-4D591E418E0A","renderContextTable":{"__isSmartRef__":true,"id":1333},"eventHandler":{"__isSmartRef__":true,"id":1334},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1323},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1325":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1326},{"__isSmartRef__":true,"id":1327}],"renderContextTable":{"__isSmartRef__":true,"id":1328},"_Position":{"__isSmartRef__":true,"id":1329},"_Extent":{"__isSmartRef__":true,"id":1330},"_Padding":{"__isSmartRef__":true,"id":1331},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1332},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1326":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1327":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1328":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1329":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1330":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1331":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1332":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1333":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1334":{"morph":{"__isSmartRef__":true,"id":1324},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1335":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1336},"derivationIds":[null],"id":"A94BA24C-9929-4725-BC4F-DCE5D6C9B9B4","renderContextTable":{"__isSmartRef__":true,"id":1344},"eventHandler":{"__isSmartRef__":true,"id":1345},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1323},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1336":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1337},{"__isSmartRef__":true,"id":1338}],"renderContextTable":{"__isSmartRef__":true,"id":1339},"_Position":{"__isSmartRef__":true,"id":1340},"_Extent":{"__isSmartRef__":true,"id":1341},"_Padding":{"__isSmartRef__":true,"id":1342},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1343},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1337":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1338":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1339":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1340":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1341":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1342":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1343":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1344":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1345":{"morph":{"__isSmartRef__":true,"id":1335},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1346":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1347},"derivationIds":[null],"id":"4AB441A3-E71D-45C7-B5DA-8CFBDD6BC34A","renderContextTable":{"__isSmartRef__":true,"id":1355},"eventHandler":{"__isSmartRef__":true,"id":1356},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1323},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1347":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1348},{"__isSmartRef__":true,"id":1349}],"renderContextTable":{"__isSmartRef__":true,"id":1350},"_Position":{"__isSmartRef__":true,"id":1351},"_Extent":{"__isSmartRef__":true,"id":1352},"_Padding":{"__isSmartRef__":true,"id":1353},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1354},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1348":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1349":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1350":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1351":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1352":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1353":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1354":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1355":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1356":{"morph":{"__isSmartRef__":true,"id":1346},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1357":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1358},"derivationIds":[null],"id":"078B72C9-DD0C-468E-AB36-9B364A5FCE3D","renderContextTable":{"__isSmartRef__":true,"id":1366},"eventHandler":{"__isSmartRef__":true,"id":1367},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1323},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1358":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1359},{"__isSmartRef__":true,"id":1360}],"renderContextTable":{"__isSmartRef__":true,"id":1361},"_Position":{"__isSmartRef__":true,"id":1362},"_Extent":{"__isSmartRef__":true,"id":1363},"_Padding":{"__isSmartRef__":true,"id":1364},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1365},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1359":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1360":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1361":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1362":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1363":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1364":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1365":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1366":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1367":{"morph":{"__isSmartRef__":true,"id":1357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1368":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1369},"derivationIds":[null],"id":"F20F5A5A-B71C-4366-B7A7-0D0516E11B6A","renderContextTable":{"__isSmartRef__":true,"id":1377},"eventHandler":{"__isSmartRef__":true,"id":1378},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1323},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1369":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1370},{"__isSmartRef__":true,"id":1371}],"renderContextTable":{"__isSmartRef__":true,"id":1372},"_Position":{"__isSmartRef__":true,"id":1373},"_Extent":{"__isSmartRef__":true,"id":1374},"_Padding":{"__isSmartRef__":true,"id":1375},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1376},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1370":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1371":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1372":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1373":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1374":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1375":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1376":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1377":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1378":{"morph":{"__isSmartRef__":true,"id":1368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1379":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1380},{"__isSmartRef__":true,"id":1381},{"__isSmartRef__":true,"id":1382},{"__isSmartRef__":true,"id":1383},{"__isSmartRef__":true,"id":1384},{"__isSmartRef__":true,"id":1385}],"renderContextTable":{"__isSmartRef__":true,"id":1386},"_Position":{"__isSmartRef__":true,"id":1387},"_Extent":{"__isSmartRef__":true,"id":1388},"_Padding":{"__isSmartRef__":true,"id":1389},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1390},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1380":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1381":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1382":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1383":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1384":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1385":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1386":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1387":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1388":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1389":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1390":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1391":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1392":{"morph":{"__isSmartRef__":true,"id":1323},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1393":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1394":{"position":{"__isSmartRef__":true,"id":1395},"_Extent":{"__isSmartRef__":true,"id":1396},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1397},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1398},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1399},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1395":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1396":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1397":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1398":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1399":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1400":{"x":247.0184710197444,"y":106.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1401":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1402},{"__isSmartRef__":true,"id":1404},{"__isSmartRef__":true,"id":1406},{"__isSmartRef__":true,"id":1408},{"__isSmartRef__":true,"id":1410},{"__isSmartRef__":true,"id":1412},{"__isSmartRef__":true,"id":1414},{"__isSmartRef__":true,"id":1416},{"__isSmartRef__":true,"id":1418},{"__isSmartRef__":true,"id":1420},{"__isSmartRef__":true,"id":1422},{"__isSmartRef__":true,"id":1424},{"__isSmartRef__":true,"id":1426},{"__isSmartRef__":true,"id":1428},{"__isSmartRef__":true,"id":1430},{"__isSmartRef__":true,"id":1432},{"__isSmartRef__":true,"id":1434},{"__isSmartRef__":true,"id":1436},{"__isSmartRef__":true,"id":1438}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1402":{"date":{"__isSmartRef__":true,"id":1403},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1403":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1404":{"date":{"__isSmartRef__":true,"id":1405},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1405":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1406":{"date":{"__isSmartRef__":true,"id":1407},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1407":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1408":{"date":{"__isSmartRef__":true,"id":1409},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1409":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1410":{"date":{"__isSmartRef__":true,"id":1411},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1411":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1412":{"date":{"__isSmartRef__":true,"id":1413},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1413":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1414":{"date":{"__isSmartRef__":true,"id":1415},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1415":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1416":{"date":{"__isSmartRef__":true,"id":1417},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1417":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1418":{"date":{"__isSmartRef__":true,"id":1419},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1419":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1420":{"date":{"__isSmartRef__":true,"id":1421},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1421":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1422":{"date":{"__isSmartRef__":true,"id":1423},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1423":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1424":{"date":{"__isSmartRef__":true,"id":1425},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1425":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1426":{"date":{"__isSmartRef__":true,"id":1427},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1427":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1428":{"date":{"__isSmartRef__":true,"id":1429},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1429":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1430":{"date":{"__isSmartRef__":true,"id":1431},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1431":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1432":{"date":{"__isSmartRef__":true,"id":1433},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1433":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1434":{"date":{"__isSmartRef__":true,"id":1435},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1435":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1436":{"date":{"__isSmartRef__":true,"id":1437},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1437":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1438":{"date":{"__isSmartRef__":true,"id":1439},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1439":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1440":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1441":{"morph":{"__isSmartRef__":true,"id":1322},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1442":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1443}},"1443":{"test01IsMorph":{"__isSmartRef__":true,"id":1444}},"1444":{"varMapping":{"__isSmartRef__":true,"id":1445},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1445":{"this":{"__isSmartRef__":true,"id":1442}},"1446":{},"1447":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1448":{"left":0,"up":1,"right":2,"down":3},"1449":{"submorphs":[{"__isSmartRef__":true,"id":1450}],"scripts":[],"id":"ADF1CAFF-B91D-43ED-BDFE-E9BF5E81FC5A","shape":{"__isSmartRef__":true,"id":1526},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1532},"showsHalos":false,"name":"BasicGem13","partsBinMetaInfo":{"__isSmartRef__":true,"id":1533},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1572},"eventHandler":{"__isSmartRef__":true,"id":1573},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1574},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1579},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1580},"neighbours":[{"__isSmartRef__":true,"id":1581},{"__isSmartRef__":true,"id":630},{"__isSmartRef__":true,"id":1322},{"__isSmartRef__":true,"id":2484}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":14202},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14203},"__LivelyClassName__":"lively.morphic.Box"},"1450":{"submorphs":[{"__isSmartRef__":true,"id":1451},{"__isSmartRef__":true,"id":1461},{"__isSmartRef__":true,"id":1471},{"__isSmartRef__":true,"id":1481},{"__isSmartRef__":true,"id":1491},{"__isSmartRef__":true,"id":1501}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1511},"derivationIds":[null],"id":"7618BFBF-0C72-40C9-94B3-58D945D90EF2","renderContextTable":{"__isSmartRef__":true,"id":1523},"eventHandler":{"__isSmartRef__":true,"id":1524},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1449},"_Position":{"__isSmartRef__":true,"id":1525},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1451":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1452},"derivationIds":[null],"id":"AB60E8A6-7524-47BC-96FA-CDF780649129","renderContextTable":{"__isSmartRef__":true,"id":1459},"eventHandler":{"__isSmartRef__":true,"id":1460},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1450},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1452":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1453},{"__isSmartRef__":true,"id":1454}],"renderContextTable":{"__isSmartRef__":true,"id":1455},"_Position":{"__isSmartRef__":true,"id":1456},"_Extent":{"__isSmartRef__":true,"id":1457},"_Padding":{"__isSmartRef__":true,"id":1458},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1453":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1454":{"isAbsolute":true,"x":25,"y":27,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1455":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1456":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1457":{"x":3,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1458":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1459":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1460":{"morph":{"__isSmartRef__":true,"id":1451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1462},"derivationIds":[null],"id":"E604B2F3-D56E-4716-B652-4CEC1555B213","renderContextTable":{"__isSmartRef__":true,"id":1469},"eventHandler":{"__isSmartRef__":true,"id":1470},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1450},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1462":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1463},{"__isSmartRef__":true,"id":1464}],"renderContextTable":{"__isSmartRef__":true,"id":1465},"_Position":{"__isSmartRef__":true,"id":1466},"_Extent":{"__isSmartRef__":true,"id":1467},"_Padding":{"__isSmartRef__":true,"id":1468},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1463":{"isAbsolute":true,"x":9,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1464":{"isAbsolute":true,"x":25,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1465":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1466":{"x":7,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1467":{"x":19,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1468":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1469":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1470":{"morph":{"__isSmartRef__":true,"id":1461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1471":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1472},"derivationIds":[null],"id":"0B6E53F8-46DE-4569-8451-3E3B9F7029FB","renderContextTable":{"__isSmartRef__":true,"id":1479},"eventHandler":{"__isSmartRef__":true,"id":1480},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1450},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1472":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1473},{"__isSmartRef__":true,"id":1474}],"renderContextTable":{"__isSmartRef__":true,"id":1475},"_Position":{"__isSmartRef__":true,"id":1476},"_Extent":{"__isSmartRef__":true,"id":1477},"_Padding":{"__isSmartRef__":true,"id":1478},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1473":{"isAbsolute":true,"x":42,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1474":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1475":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1476":{"x":22,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1477":{"x":21,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1478":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1479":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1480":{"morph":{"__isSmartRef__":true,"id":1471},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1481":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1482},"derivationIds":[null],"id":"37F3E87D-BFC7-4541-A145-75153BF0BA9D","renderContextTable":{"__isSmartRef__":true,"id":1489},"eventHandler":{"__isSmartRef__":true,"id":1490},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1450},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1482":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1483},{"__isSmartRef__":true,"id":1484}],"renderContextTable":{"__isSmartRef__":true,"id":1485},"_Position":{"__isSmartRef__":true,"id":1486},"_Extent":{"__isSmartRef__":true,"id":1487},"_Padding":{"__isSmartRef__":true,"id":1488},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1483":{"isAbsolute":true,"x":41,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1484":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1485":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1486":{"x":23,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1487":{"x":18,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1488":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1489":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1490":{"morph":{"__isSmartRef__":true,"id":1481},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1491":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1492},"derivationIds":[null],"id":"308581D7-1984-4E14-9509-B75AF4445473","renderContextTable":{"__isSmartRef__":true,"id":1499},"eventHandler":{"__isSmartRef__":true,"id":1500},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1450},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1492":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1493},{"__isSmartRef__":true,"id":1494}],"renderContextTable":{"__isSmartRef__":true,"id":1495},"_Position":{"__isSmartRef__":true,"id":1496},"_Extent":{"__isSmartRef__":true,"id":1497},"_Padding":{"__isSmartRef__":true,"id":1498},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1493":{"isAbsolute":true,"x":9,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1494":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1495":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1496":{"x":8,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1497":{"x":16,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1498":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1499":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1500":{"morph":{"__isSmartRef__":true,"id":1491},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1501":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1502},"derivationIds":[null],"id":"DD411145-15B6-444A-BCCF-D8E498E4CD60","renderContextTable":{"__isSmartRef__":true,"id":1509},"eventHandler":{"__isSmartRef__":true,"id":1510},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1450},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1502":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1503},{"__isSmartRef__":true,"id":1504}],"renderContextTable":{"__isSmartRef__":true,"id":1505},"_Position":{"__isSmartRef__":true,"id":1506},"_Extent":{"__isSmartRef__":true,"id":1507},"_Padding":{"__isSmartRef__":true,"id":1508},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1503":{"isAbsolute":true,"x":25,"y":43,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1504":{"isAbsolute":true,"x":25,"y":24,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1505":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1506":{"x":23,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1507":{"x":3,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1508":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1509":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1510":{"morph":{"__isSmartRef__":true,"id":1501},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1511":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1512},{"__isSmartRef__":true,"id":1513},{"__isSmartRef__":true,"id":1514},{"__isSmartRef__":true,"id":1515},{"__isSmartRef__":true,"id":1516},{"__isSmartRef__":true,"id":1517}],"renderContextTable":{"__isSmartRef__":true,"id":1518},"_Position":{"__isSmartRef__":true,"id":1519},"_Extent":{"__isSmartRef__":true,"id":1520},"_Padding":{"__isSmartRef__":true,"id":1521},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1522},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1512":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1513":{"isAbsolute":true,"x":41,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1514":{"isAbsolute":true,"x":41,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1515":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1516":{"isAbsolute":true,"x":9,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1517":{"isAbsolute":true,"x":9,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1518":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1519":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1520":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1521":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1522":{"r":1,"g":0.788235294117647,"b":0.14901960784313725,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1523":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1524":{"morph":{"__isSmartRef__":true,"id":1450},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1525":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1526":{"position":{"__isSmartRef__":true,"id":1527},"_Extent":{"__isSmartRef__":true,"id":1528},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1529},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1530},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1531},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1527":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1528":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1529":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1530":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1531":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1532":{"x":197.8147768157955,"y":106.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1533":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1534},{"__isSmartRef__":true,"id":1536},{"__isSmartRef__":true,"id":1538},{"__isSmartRef__":true,"id":1540},{"__isSmartRef__":true,"id":1542},{"__isSmartRef__":true,"id":1544},{"__isSmartRef__":true,"id":1546},{"__isSmartRef__":true,"id":1548},{"__isSmartRef__":true,"id":1550},{"__isSmartRef__":true,"id":1552},{"__isSmartRef__":true,"id":1554},{"__isSmartRef__":true,"id":1556},{"__isSmartRef__":true,"id":1558},{"__isSmartRef__":true,"id":1560},{"__isSmartRef__":true,"id":1562},{"__isSmartRef__":true,"id":1564},{"__isSmartRef__":true,"id":1566},{"__isSmartRef__":true,"id":1568},{"__isSmartRef__":true,"id":1570}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1534":{"date":{"__isSmartRef__":true,"id":1535},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1535":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1536":{"date":{"__isSmartRef__":true,"id":1537},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1537":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1538":{"date":{"__isSmartRef__":true,"id":1539},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1539":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1540":{"date":{"__isSmartRef__":true,"id":1541},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1541":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1542":{"date":{"__isSmartRef__":true,"id":1543},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1543":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1544":{"date":{"__isSmartRef__":true,"id":1545},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1545":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1546":{"date":{"__isSmartRef__":true,"id":1547},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1547":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1548":{"date":{"__isSmartRef__":true,"id":1549},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1549":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1550":{"date":{"__isSmartRef__":true,"id":1551},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1551":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1552":{"date":{"__isSmartRef__":true,"id":1553},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1553":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1554":{"date":{"__isSmartRef__":true,"id":1555},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1555":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1556":{"date":{"__isSmartRef__":true,"id":1557},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1557":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1558":{"date":{"__isSmartRef__":true,"id":1559},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1559":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1560":{"date":{"__isSmartRef__":true,"id":1561},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1561":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1562":{"date":{"__isSmartRef__":true,"id":1563},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1563":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1564":{"date":{"__isSmartRef__":true,"id":1565},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1565":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1566":{"date":{"__isSmartRef__":true,"id":1567},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1567":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1568":{"date":{"__isSmartRef__":true,"id":1569},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1569":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1570":{"date":{"__isSmartRef__":true,"id":1571},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1571":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1572":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1573":{"morph":{"__isSmartRef__":true,"id":1449},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1574":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1575}},"1575":{"test01IsMorph":{"__isSmartRef__":true,"id":1576}},"1576":{"varMapping":{"__isSmartRef__":true,"id":1577},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1578},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1577":{"this":{"__isSmartRef__":true,"id":1574}},"1578":{},"1579":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1580":{"left":0,"up":1,"right":2,"down":3},"1581":{"submorphs":[{"__isSmartRef__":true,"id":1582}],"scripts":[],"id":"9D74CAFC-2FA8-42CE-80BB-9365EC47F4DB","shape":{"__isSmartRef__":true,"id":1618},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1624},"showsHalos":false,"name":"BasicGem12","partsBinMetaInfo":{"__isSmartRef__":true,"id":1625},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1664},"eventHandler":{"__isSmartRef__":true,"id":1665},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1666},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1671},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1672},"neighbours":[{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":498},{"__isSmartRef__":true,"id":1449},{"__isSmartRef__":true,"id":2357}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"blueDiamond","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":14072},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14073},"__LivelyClassName__":"lively.morphic.Box"},"1582":{"submorphs":[{"__isSmartRef__":true,"id":1583},{"__isSmartRef__":true,"id":1594}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1605},"derivationIds":[null],"id":"E3054A8A-CD84-4A18-94DE-96E225EE1B14","renderContextTable":{"__isSmartRef__":true,"id":1615},"eventHandler":{"__isSmartRef__":true,"id":1616},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1581},"_Position":{"__isSmartRef__":true,"id":1617},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1583":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1584},"derivationIds":[null],"id":"CE27FA4B-C704-4379-87A8-33C57F48E5B1","renderContextTable":{"__isSmartRef__":true,"id":1592},"eventHandler":{"__isSmartRef__":true,"id":1593},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1582},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1584":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1585},{"__isSmartRef__":true,"id":1586}],"renderContextTable":{"__isSmartRef__":true,"id":1587},"_Position":{"__isSmartRef__":true,"id":1588},"_Extent":{"__isSmartRef__":true,"id":1589},"_Padding":{"__isSmartRef__":true,"id":1590},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1591},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1585":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1586":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1587":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1588":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1589":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1590":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1591":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1592":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1593":{"morph":{"__isSmartRef__":true,"id":1583},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1594":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1595},"derivationIds":[null],"id":"D6E93DAC-1936-4A9B-B6C6-2142DD0DB826","renderContextTable":{"__isSmartRef__":true,"id":1603},"eventHandler":{"__isSmartRef__":true,"id":1604},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1582},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1595":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1596},{"__isSmartRef__":true,"id":1597}],"renderContextTable":{"__isSmartRef__":true,"id":1598},"_Position":{"__isSmartRef__":true,"id":1599},"_Extent":{"__isSmartRef__":true,"id":1600},"_Padding":{"__isSmartRef__":true,"id":1601},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1602},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1596":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1597":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1598":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1599":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1600":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1601":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1602":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1603":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1604":{"morph":{"__isSmartRef__":true,"id":1594},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1605":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1606},{"__isSmartRef__":true,"id":1607},{"__isSmartRef__":true,"id":1608},{"__isSmartRef__":true,"id":1609}],"renderContextTable":{"__isSmartRef__":true,"id":1610},"_Position":{"__isSmartRef__":true,"id":1611},"_Extent":{"__isSmartRef__":true,"id":1612},"_Padding":{"__isSmartRef__":true,"id":1613},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1614},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1606":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1607":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1608":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1609":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1610":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1611":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1612":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1613":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1614":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1615":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1616":{"morph":{"__isSmartRef__":true,"id":1582},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1617":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1618":{"position":{"__isSmartRef__":true,"id":1619},"_Extent":{"__isSmartRef__":true,"id":1620},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1621},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1622},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1623},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1619":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1620":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1621":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1622":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1623":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1624":{"x":148.61108261184663,"y":106.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1625":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1626},{"__isSmartRef__":true,"id":1628},{"__isSmartRef__":true,"id":1630},{"__isSmartRef__":true,"id":1632},{"__isSmartRef__":true,"id":1634},{"__isSmartRef__":true,"id":1636},{"__isSmartRef__":true,"id":1638},{"__isSmartRef__":true,"id":1640},{"__isSmartRef__":true,"id":1642},{"__isSmartRef__":true,"id":1644},{"__isSmartRef__":true,"id":1646},{"__isSmartRef__":true,"id":1648},{"__isSmartRef__":true,"id":1650},{"__isSmartRef__":true,"id":1652},{"__isSmartRef__":true,"id":1654},{"__isSmartRef__":true,"id":1656},{"__isSmartRef__":true,"id":1658},{"__isSmartRef__":true,"id":1660},{"__isSmartRef__":true,"id":1662}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1626":{"date":{"__isSmartRef__":true,"id":1627},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1627":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1628":{"date":{"__isSmartRef__":true,"id":1629},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1629":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1630":{"date":{"__isSmartRef__":true,"id":1631},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1631":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1632":{"date":{"__isSmartRef__":true,"id":1633},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1633":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1634":{"date":{"__isSmartRef__":true,"id":1635},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1635":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1636":{"date":{"__isSmartRef__":true,"id":1637},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1637":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1638":{"date":{"__isSmartRef__":true,"id":1639},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1639":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1640":{"date":{"__isSmartRef__":true,"id":1641},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1641":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1642":{"date":{"__isSmartRef__":true,"id":1643},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1643":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1644":{"date":{"__isSmartRef__":true,"id":1645},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1645":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1646":{"date":{"__isSmartRef__":true,"id":1647},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1647":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1648":{"date":{"__isSmartRef__":true,"id":1649},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1649":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1650":{"date":{"__isSmartRef__":true,"id":1651},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1651":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1652":{"date":{"__isSmartRef__":true,"id":1653},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1653":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1654":{"date":{"__isSmartRef__":true,"id":1655},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1655":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1656":{"date":{"__isSmartRef__":true,"id":1657},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1657":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1658":{"date":{"__isSmartRef__":true,"id":1659},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1659":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1660":{"date":{"__isSmartRef__":true,"id":1661},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1661":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1662":{"date":{"__isSmartRef__":true,"id":1663},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1663":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1664":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1665":{"morph":{"__isSmartRef__":true,"id":1581},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1666":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1667}},"1667":{"test01IsMorph":{"__isSmartRef__":true,"id":1668}},"1668":{"varMapping":{"__isSmartRef__":true,"id":1669},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1670},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1669":{"this":{"__isSmartRef__":true,"id":1666}},"1670":{},"1671":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1672":{"left":0,"up":1,"right":2,"down":3},"1673":{"submorphs":[{"__isSmartRef__":true,"id":1674}],"scripts":[],"id":"8937B49E-9FD1-454C-BD73-6B77C066B7B5","shape":{"__isSmartRef__":true,"id":1710},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1716},"showsHalos":false,"name":"BasicGem11","partsBinMetaInfo":{"__isSmartRef__":true,"id":1717},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1756},"eventHandler":{"__isSmartRef__":true,"id":1757},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1758},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1763},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1764},"neighbours":[{"__isSmartRef__":true,"id":1765},{"__isSmartRef__":true,"id":366},{"__isSmartRef__":true,"id":1581},{"__isSmartRef__":true,"id":2239}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13943},"__LivelyClassName__":"lively.morphic.Box"},"1674":{"submorphs":[{"__isSmartRef__":true,"id":1675},{"__isSmartRef__":true,"id":1686}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1697},"derivationIds":[null],"id":"6CA300DF-CFB0-47C4-8BE3-5453FDE5FD53","renderContextTable":{"__isSmartRef__":true,"id":1707},"eventHandler":{"__isSmartRef__":true,"id":1708},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1673},"_Position":{"__isSmartRef__":true,"id":1709},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1675":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1676},"derivationIds":[null],"id":"7E98F62E-B604-44C2-8807-C3C572A86406","renderContextTable":{"__isSmartRef__":true,"id":1684},"eventHandler":{"__isSmartRef__":true,"id":1685},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1674},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1676":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1677},{"__isSmartRef__":true,"id":1678}],"renderContextTable":{"__isSmartRef__":true,"id":1679},"_Position":{"__isSmartRef__":true,"id":1680},"_Extent":{"__isSmartRef__":true,"id":1681},"_Padding":{"__isSmartRef__":true,"id":1682},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1683},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1677":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1678":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1679":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1680":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1681":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1682":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1683":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1684":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1685":{"morph":{"__isSmartRef__":true,"id":1675},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1686":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1687},"derivationIds":[null],"id":"DAB7DE67-B4AE-4F32-84A4-D71011B6D386","renderContextTable":{"__isSmartRef__":true,"id":1695},"eventHandler":{"__isSmartRef__":true,"id":1696},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1674},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1687":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1688},{"__isSmartRef__":true,"id":1689}],"renderContextTable":{"__isSmartRef__":true,"id":1690},"_Position":{"__isSmartRef__":true,"id":1691},"_Extent":{"__isSmartRef__":true,"id":1692},"_Padding":{"__isSmartRef__":true,"id":1693},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":1694},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1688":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1689":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1690":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1691":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1692":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1693":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1694":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1695":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1696":{"morph":{"__isSmartRef__":true,"id":1686},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1697":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1698},{"__isSmartRef__":true,"id":1699},{"__isSmartRef__":true,"id":1700},{"__isSmartRef__":true,"id":1701}],"renderContextTable":{"__isSmartRef__":true,"id":1702},"_Position":{"__isSmartRef__":true,"id":1703},"_Extent":{"__isSmartRef__":true,"id":1704},"_Padding":{"__isSmartRef__":true,"id":1705},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1706},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1698":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1699":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1700":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1701":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1702":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1703":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1704":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1705":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1706":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1707":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1708":{"morph":{"__isSmartRef__":true,"id":1674},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1709":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1710":{"position":{"__isSmartRef__":true,"id":1711},"_Extent":{"__isSmartRef__":true,"id":1712},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1713},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1714},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1715},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1711":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1712":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1713":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1714":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1715":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1716":{"x":99.40738840789776,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1717":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1718},{"__isSmartRef__":true,"id":1720},{"__isSmartRef__":true,"id":1722},{"__isSmartRef__":true,"id":1724},{"__isSmartRef__":true,"id":1726},{"__isSmartRef__":true,"id":1728},{"__isSmartRef__":true,"id":1730},{"__isSmartRef__":true,"id":1732},{"__isSmartRef__":true,"id":1734},{"__isSmartRef__":true,"id":1736},{"__isSmartRef__":true,"id":1738},{"__isSmartRef__":true,"id":1740},{"__isSmartRef__":true,"id":1742},{"__isSmartRef__":true,"id":1744},{"__isSmartRef__":true,"id":1746},{"__isSmartRef__":true,"id":1748},{"__isSmartRef__":true,"id":1750},{"__isSmartRef__":true,"id":1752},{"__isSmartRef__":true,"id":1754}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1718":{"date":{"__isSmartRef__":true,"id":1719},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1719":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1720":{"date":{"__isSmartRef__":true,"id":1721},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1721":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1722":{"date":{"__isSmartRef__":true,"id":1723},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1723":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1724":{"date":{"__isSmartRef__":true,"id":1725},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1725":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1726":{"date":{"__isSmartRef__":true,"id":1727},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1727":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1728":{"date":{"__isSmartRef__":true,"id":1729},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1729":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1730":{"date":{"__isSmartRef__":true,"id":1731},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1731":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1732":{"date":{"__isSmartRef__":true,"id":1733},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1733":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1734":{"date":{"__isSmartRef__":true,"id":1735},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1735":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1736":{"date":{"__isSmartRef__":true,"id":1737},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1737":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1738":{"date":{"__isSmartRef__":true,"id":1739},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1739":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1740":{"date":{"__isSmartRef__":true,"id":1741},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1741":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1742":{"date":{"__isSmartRef__":true,"id":1743},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1743":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1744":{"date":{"__isSmartRef__":true,"id":1745},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1745":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1746":{"date":{"__isSmartRef__":true,"id":1747},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1747":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1748":{"date":{"__isSmartRef__":true,"id":1749},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1749":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1750":{"date":{"__isSmartRef__":true,"id":1751},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1751":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1752":{"date":{"__isSmartRef__":true,"id":1753},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1753":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1754":{"date":{"__isSmartRef__":true,"id":1755},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1755":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1756":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1757":{"morph":{"__isSmartRef__":true,"id":1673},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1758":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1759}},"1759":{"test01IsMorph":{"__isSmartRef__":true,"id":1760}},"1760":{"varMapping":{"__isSmartRef__":true,"id":1761},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1762},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1761":{"this":{"__isSmartRef__":true,"id":1758}},"1762":{},"1763":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1764":{"left":0,"up":1,"right":2,"down":3},"1765":{"submorphs":[{"__isSmartRef__":true,"id":1766}],"scripts":[],"id":"CF1EBA51-1EC2-403A-9DE2-B6CA81146FEA","shape":{"__isSmartRef__":true,"id":1842},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1848},"showsHalos":false,"name":"BasicGem10","partsBinMetaInfo":{"__isSmartRef__":true,"id":1849},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":1888},"eventHandler":{"__isSmartRef__":true,"id":1889},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":1890},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":1895},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":1896},"neighbours":[{"__isSmartRef__":true,"id":1897},{"__isSmartRef__":true,"id":248},{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":2147}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13814},"__LivelyClassName__":"lively.morphic.Box"},"1766":{"submorphs":[{"__isSmartRef__":true,"id":1767},{"__isSmartRef__":true,"id":1777},{"__isSmartRef__":true,"id":1787},{"__isSmartRef__":true,"id":1797},{"__isSmartRef__":true,"id":1807},{"__isSmartRef__":true,"id":1817}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1827},"derivationIds":[null],"id":"F23C8D4E-AA6A-4009-9012-DFC600EA8BC1","renderContextTable":{"__isSmartRef__":true,"id":1839},"eventHandler":{"__isSmartRef__":true,"id":1840},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1765},"_Position":{"__isSmartRef__":true,"id":1841},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1767":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1768},"derivationIds":[null],"id":"4BB7B01C-49CA-4653-AB7A-3CA80D6AF961","renderContextTable":{"__isSmartRef__":true,"id":1775},"eventHandler":{"__isSmartRef__":true,"id":1776},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1766},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1768":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1769},{"__isSmartRef__":true,"id":1770}],"renderContextTable":{"__isSmartRef__":true,"id":1771},"_Position":{"__isSmartRef__":true,"id":1772},"_Extent":{"__isSmartRef__":true,"id":1773},"_Padding":{"__isSmartRef__":true,"id":1774},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1769":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1770":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1771":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1772":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1773":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1774":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1775":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1776":{"morph":{"__isSmartRef__":true,"id":1767},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1777":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1778},"derivationIds":[null],"id":"7A3A23AE-1324-43CB-9F54-6A5442D7E9AE","renderContextTable":{"__isSmartRef__":true,"id":1785},"eventHandler":{"__isSmartRef__":true,"id":1786},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1766},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1778":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1779},{"__isSmartRef__":true,"id":1780}],"renderContextTable":{"__isSmartRef__":true,"id":1781},"_Position":{"__isSmartRef__":true,"id":1782},"_Extent":{"__isSmartRef__":true,"id":1783},"_Padding":{"__isSmartRef__":true,"id":1784},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1779":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1780":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1781":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1782":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1783":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1784":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1785":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1786":{"morph":{"__isSmartRef__":true,"id":1777},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1787":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1788},"derivationIds":[null],"id":"7F34851C-59BB-4198-B092-A3F64ACF2487","renderContextTable":{"__isSmartRef__":true,"id":1795},"eventHandler":{"__isSmartRef__":true,"id":1796},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1766},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1788":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1789},{"__isSmartRef__":true,"id":1790}],"renderContextTable":{"__isSmartRef__":true,"id":1791},"_Position":{"__isSmartRef__":true,"id":1792},"_Extent":{"__isSmartRef__":true,"id":1793},"_Padding":{"__isSmartRef__":true,"id":1794},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1789":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1790":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1791":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1792":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1793":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1794":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1795":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1796":{"morph":{"__isSmartRef__":true,"id":1787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1797":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1798},"derivationIds":[null],"id":"AD03EFED-07EA-4973-9090-4F808FF319BD","renderContextTable":{"__isSmartRef__":true,"id":1805},"eventHandler":{"__isSmartRef__":true,"id":1806},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1766},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1798":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1799},{"__isSmartRef__":true,"id":1800}],"renderContextTable":{"__isSmartRef__":true,"id":1801},"_Position":{"__isSmartRef__":true,"id":1802},"_Extent":{"__isSmartRef__":true,"id":1803},"_Padding":{"__isSmartRef__":true,"id":1804},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1799":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1800":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1801":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1802":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1803":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1804":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1805":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1806":{"morph":{"__isSmartRef__":true,"id":1797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1807":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1808},"derivationIds":[null],"id":"61AD3ED4-1A9D-47A1-8FF7-8305D67DC89C","renderContextTable":{"__isSmartRef__":true,"id":1815},"eventHandler":{"__isSmartRef__":true,"id":1816},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1766},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1808":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1809},{"__isSmartRef__":true,"id":1810}],"renderContextTable":{"__isSmartRef__":true,"id":1811},"_Position":{"__isSmartRef__":true,"id":1812},"_Extent":{"__isSmartRef__":true,"id":1813},"_Padding":{"__isSmartRef__":true,"id":1814},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1809":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1810":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1811":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1812":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1813":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1814":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1815":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1816":{"morph":{"__isSmartRef__":true,"id":1807},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1817":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1818},"derivationIds":[null],"id":"9A55AEC5-CAC7-4596-8881-95F4AB790057","renderContextTable":{"__isSmartRef__":true,"id":1825},"eventHandler":{"__isSmartRef__":true,"id":1826},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1766},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1818":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1819},{"__isSmartRef__":true,"id":1820}],"renderContextTable":{"__isSmartRef__":true,"id":1821},"_Position":{"__isSmartRef__":true,"id":1822},"_Extent":{"__isSmartRef__":true,"id":1823},"_Padding":{"__isSmartRef__":true,"id":1824},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1819":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1820":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1821":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1822":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1823":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1824":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1825":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1826":{"morph":{"__isSmartRef__":true,"id":1817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1827":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1828},{"__isSmartRef__":true,"id":1829},{"__isSmartRef__":true,"id":1830},{"__isSmartRef__":true,"id":1831},{"__isSmartRef__":true,"id":1832},{"__isSmartRef__":true,"id":1833}],"renderContextTable":{"__isSmartRef__":true,"id":1834},"_Position":{"__isSmartRef__":true,"id":1835},"_Extent":{"__isSmartRef__":true,"id":1836},"_Padding":{"__isSmartRef__":true,"id":1837},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1838},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1828":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1829":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1830":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1831":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1832":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1833":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1834":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1835":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1836":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1837":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1838":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1839":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1840":{"morph":{"__isSmartRef__":true,"id":1766},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1841":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1842":{"position":{"__isSmartRef__":true,"id":1843},"_Extent":{"__isSmartRef__":true,"id":1844},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1845},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1846},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1847},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1843":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1844":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1845":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1846":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1847":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1848":{"x":50.20369420394888,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1849":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1850},{"__isSmartRef__":true,"id":1852},{"__isSmartRef__":true,"id":1854},{"__isSmartRef__":true,"id":1856},{"__isSmartRef__":true,"id":1858},{"__isSmartRef__":true,"id":1860},{"__isSmartRef__":true,"id":1862},{"__isSmartRef__":true,"id":1864},{"__isSmartRef__":true,"id":1866},{"__isSmartRef__":true,"id":1868},{"__isSmartRef__":true,"id":1870},{"__isSmartRef__":true,"id":1872},{"__isSmartRef__":true,"id":1874},{"__isSmartRef__":true,"id":1876},{"__isSmartRef__":true,"id":1878},{"__isSmartRef__":true,"id":1880},{"__isSmartRef__":true,"id":1882},{"__isSmartRef__":true,"id":1884},{"__isSmartRef__":true,"id":1886}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1850":{"date":{"__isSmartRef__":true,"id":1851},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1851":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1852":{"date":{"__isSmartRef__":true,"id":1853},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1853":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1854":{"date":{"__isSmartRef__":true,"id":1855},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1855":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1856":{"date":{"__isSmartRef__":true,"id":1857},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1857":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1858":{"date":{"__isSmartRef__":true,"id":1859},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1859":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1860":{"date":{"__isSmartRef__":true,"id":1861},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1861":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1862":{"date":{"__isSmartRef__":true,"id":1863},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1863":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1864":{"date":{"__isSmartRef__":true,"id":1865},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1865":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1866":{"date":{"__isSmartRef__":true,"id":1867},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1867":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"1868":{"date":{"__isSmartRef__":true,"id":1869},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1869":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"1870":{"date":{"__isSmartRef__":true,"id":1871},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1871":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"1872":{"date":{"__isSmartRef__":true,"id":1873},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1873":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"1874":{"date":{"__isSmartRef__":true,"id":1875},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"1875":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"1876":{"date":{"__isSmartRef__":true,"id":1877},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"1877":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"1878":{"date":{"__isSmartRef__":true,"id":1879},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"1879":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"1880":{"date":{"__isSmartRef__":true,"id":1881},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"1881":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"1882":{"date":{"__isSmartRef__":true,"id":1883},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"1883":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"1884":{"date":{"__isSmartRef__":true,"id":1885},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"1885":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"1886":{"date":{"__isSmartRef__":true,"id":1887},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"1887":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"1888":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1889":{"morph":{"__isSmartRef__":true,"id":1765},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"1890":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1891}},"1891":{"test01IsMorph":{"__isSmartRef__":true,"id":1892}},"1892":{"varMapping":{"__isSmartRef__":true,"id":1893},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1894},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"1893":{"this":{"__isSmartRef__":true,"id":1890}},"1894":{},"1895":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1896":{"left":0,"up":1,"right":2,"down":3},"1897":{"submorphs":[{"__isSmartRef__":true,"id":1898}],"scripts":[],"id":"2A232A53-CE80-4101-9CA4-1E6D8C60733F","shape":{"__isSmartRef__":true,"id":1974},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":1980},"showsHalos":false,"name":"BasicGem9","partsBinMetaInfo":{"__isSmartRef__":true,"id":1981},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2020},"eventHandler":{"__isSmartRef__":true,"id":2021},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2022},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2027},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2028},"neighbours":[null,{"__isSmartRef__":true,"id":146},{"__isSmartRef__":true,"id":1765},{"__isSmartRef__":true,"id":2029}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13685},"__LivelyClassName__":"lively.morphic.Box"},"1898":{"submorphs":[{"__isSmartRef__":true,"id":1899},{"__isSmartRef__":true,"id":1909},{"__isSmartRef__":true,"id":1919},{"__isSmartRef__":true,"id":1929},{"__isSmartRef__":true,"id":1939},{"__isSmartRef__":true,"id":1949}],"scripts":[],"shape":{"__isSmartRef__":true,"id":1959},"derivationIds":[null],"id":"CE4FB565-784D-4745-96C1-6696C611541C","renderContextTable":{"__isSmartRef__":true,"id":1971},"eventHandler":{"__isSmartRef__":true,"id":1972},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1897},"_Position":{"__isSmartRef__":true,"id":1973},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1899":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1900},"derivationIds":[null],"id":"E6DF86EE-E1FC-44BF-90EF-D7ABAF7DE8E9","renderContextTable":{"__isSmartRef__":true,"id":1907},"eventHandler":{"__isSmartRef__":true,"id":1908},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1898},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1900":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1901},{"__isSmartRef__":true,"id":1902}],"renderContextTable":{"__isSmartRef__":true,"id":1903},"_Position":{"__isSmartRef__":true,"id":1904},"_Extent":{"__isSmartRef__":true,"id":1905},"_Padding":{"__isSmartRef__":true,"id":1906},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1901":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1902":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1903":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1904":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1905":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1906":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1907":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1908":{"morph":{"__isSmartRef__":true,"id":1899},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1909":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1910},"derivationIds":[null],"id":"F296F194-8130-4079-8146-76FF58AFAE46","renderContextTable":{"__isSmartRef__":true,"id":1917},"eventHandler":{"__isSmartRef__":true,"id":1918},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1898},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1910":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1911},{"__isSmartRef__":true,"id":1912}],"renderContextTable":{"__isSmartRef__":true,"id":1913},"_Position":{"__isSmartRef__":true,"id":1914},"_Extent":{"__isSmartRef__":true,"id":1915},"_Padding":{"__isSmartRef__":true,"id":1916},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1911":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1912":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1913":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1914":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1915":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1916":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1917":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1918":{"morph":{"__isSmartRef__":true,"id":1909},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1919":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1920},"derivationIds":[null],"id":"7302E23E-E95C-4F1C-B806-0566B45626BB","renderContextTable":{"__isSmartRef__":true,"id":1927},"eventHandler":{"__isSmartRef__":true,"id":1928},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1898},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1920":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1921},{"__isSmartRef__":true,"id":1922}],"renderContextTable":{"__isSmartRef__":true,"id":1923},"_Position":{"__isSmartRef__":true,"id":1924},"_Extent":{"__isSmartRef__":true,"id":1925},"_Padding":{"__isSmartRef__":true,"id":1926},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1921":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1922":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1923":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1924":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1925":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1926":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1927":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1928":{"morph":{"__isSmartRef__":true,"id":1919},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1929":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1930},"derivationIds":[null],"id":"15C273E9-6FB5-4330-A103-9733AA3C4B43","renderContextTable":{"__isSmartRef__":true,"id":1937},"eventHandler":{"__isSmartRef__":true,"id":1938},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1898},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1930":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1931},{"__isSmartRef__":true,"id":1932}],"renderContextTable":{"__isSmartRef__":true,"id":1933},"_Position":{"__isSmartRef__":true,"id":1934},"_Extent":{"__isSmartRef__":true,"id":1935},"_Padding":{"__isSmartRef__":true,"id":1936},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1931":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1932":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1933":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1934":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1935":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1937":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1938":{"morph":{"__isSmartRef__":true,"id":1929},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1939":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1940},"derivationIds":[null],"id":"8D96A55E-7F2E-4EC7-A65D-323B6BF2B24B","renderContextTable":{"__isSmartRef__":true,"id":1947},"eventHandler":{"__isSmartRef__":true,"id":1948},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1898},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1940":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1941},{"__isSmartRef__":true,"id":1942}],"renderContextTable":{"__isSmartRef__":true,"id":1943},"_Position":{"__isSmartRef__":true,"id":1944},"_Extent":{"__isSmartRef__":true,"id":1945},"_Padding":{"__isSmartRef__":true,"id":1946},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1941":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1942":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1943":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1944":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1945":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1946":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1947":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1948":{"morph":{"__isSmartRef__":true,"id":1939},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1949":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1950},"derivationIds":[null],"id":"B8E517BA-D191-4690-B7D8-B5904744BC58","renderContextTable":{"__isSmartRef__":true,"id":1957},"eventHandler":{"__isSmartRef__":true,"id":1958},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1898},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"1950":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1951},{"__isSmartRef__":true,"id":1952}],"renderContextTable":{"__isSmartRef__":true,"id":1953},"_Position":{"__isSmartRef__":true,"id":1954},"_Extent":{"__isSmartRef__":true,"id":1955},"_Padding":{"__isSmartRef__":true,"id":1956},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1951":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1952":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1953":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1954":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1955":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1956":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1957":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1958":{"morph":{"__isSmartRef__":true,"id":1949},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1959":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":1960},{"__isSmartRef__":true,"id":1961},{"__isSmartRef__":true,"id":1962},{"__isSmartRef__":true,"id":1963},{"__isSmartRef__":true,"id":1964},{"__isSmartRef__":true,"id":1965}],"renderContextTable":{"__isSmartRef__":true,"id":1966},"_Position":{"__isSmartRef__":true,"id":1967},"_Extent":{"__isSmartRef__":true,"id":1968},"_Padding":{"__isSmartRef__":true,"id":1969},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":1970},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1960":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1961":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1962":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1963":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1964":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1965":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"1966":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"1967":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1968":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1969":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1970":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1971":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"1972":{"morph":{"__isSmartRef__":true,"id":1898},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1973":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1974":{"position":{"__isSmartRef__":true,"id":1975},"_Extent":{"__isSmartRef__":true,"id":1976},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":1977},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":1978},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":1979},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"1975":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1976":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"1977":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"1978":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"1979":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"1980":{"x":1,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"1981":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":1982},{"__isSmartRef__":true,"id":1984},{"__isSmartRef__":true,"id":1986},{"__isSmartRef__":true,"id":1988},{"__isSmartRef__":true,"id":1990},{"__isSmartRef__":true,"id":1992},{"__isSmartRef__":true,"id":1994},{"__isSmartRef__":true,"id":1996},{"__isSmartRef__":true,"id":1998},{"__isSmartRef__":true,"id":2000},{"__isSmartRef__":true,"id":2002},{"__isSmartRef__":true,"id":2004},{"__isSmartRef__":true,"id":2006},{"__isSmartRef__":true,"id":2008},{"__isSmartRef__":true,"id":2010},{"__isSmartRef__":true,"id":2012},{"__isSmartRef__":true,"id":2014},{"__isSmartRef__":true,"id":2016},{"__isSmartRef__":true,"id":2018}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"1982":{"date":{"__isSmartRef__":true,"id":1983},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"1983":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"1984":{"date":{"__isSmartRef__":true,"id":1985},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"1985":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"1986":{"date":{"__isSmartRef__":true,"id":1987},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"1987":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"1988":{"date":{"__isSmartRef__":true,"id":1989},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"1989":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"1990":{"date":{"__isSmartRef__":true,"id":1991},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"1991":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"1992":{"date":{"__isSmartRef__":true,"id":1993},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"1993":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"1994":{"date":{"__isSmartRef__":true,"id":1995},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"1995":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"1996":{"date":{"__isSmartRef__":true,"id":1997},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"1997":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"1998":{"date":{"__isSmartRef__":true,"id":1999},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1999":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2000":{"date":{"__isSmartRef__":true,"id":2001},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2001":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2002":{"date":{"__isSmartRef__":true,"id":2003},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2003":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2004":{"date":{"__isSmartRef__":true,"id":2005},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2005":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2006":{"date":{"__isSmartRef__":true,"id":2007},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2007":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2008":{"date":{"__isSmartRef__":true,"id":2009},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2009":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2010":{"date":{"__isSmartRef__":true,"id":2011},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2011":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2012":{"date":{"__isSmartRef__":true,"id":2013},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2013":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2014":{"date":{"__isSmartRef__":true,"id":2015},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2015":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2016":{"date":{"__isSmartRef__":true,"id":2017},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2017":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2018":{"date":{"__isSmartRef__":true,"id":2019},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2019":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2020":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2021":{"morph":{"__isSmartRef__":true,"id":1897},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2022":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2023}},"2023":{"test01IsMorph":{"__isSmartRef__":true,"id":2024}},"2024":{"varMapping":{"__isSmartRef__":true,"id":2025},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2026},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2025":{"this":{"__isSmartRef__":true,"id":2022}},"2026":{},"2027":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2028":{"left":0,"up":1,"right":2,"down":3},"2029":{"submorphs":[{"__isSmartRef__":true,"id":2030}],"scripts":[],"id":"1F678E63-AC26-45BE-AE3D-B70ADAE3205A","shape":{"__isSmartRef__":true,"id":2092},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2098},"showsHalos":false,"name":"BasicGem17","partsBinMetaInfo":{"__isSmartRef__":true,"id":2099},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2138},"eventHandler":{"__isSmartRef__":true,"id":2139},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2140},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2145},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2146},"neighbours":[null,{"__isSmartRef__":true,"id":1897},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":3754}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"amethyst","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13556},"__LivelyClassName__":"lively.morphic.Box"},"2030":{"submorphs":[{"__isSmartRef__":true,"id":2031},{"__isSmartRef__":true,"id":2042},{"__isSmartRef__":true,"id":2053},{"__isSmartRef__":true,"id":2064}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2075},"derivationIds":[null],"id":"8137A2EC-61B5-4F6C-ACD3-EC2743E02E3D","renderContextTable":{"__isSmartRef__":true,"id":2089},"eventHandler":{"__isSmartRef__":true,"id":2090},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2029},"_Position":{"__isSmartRef__":true,"id":2091},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2031":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2032},"derivationIds":[null],"id":"B67C0AFB-312D-41CC-BB81-85F3D0DE0BAC","renderContextTable":{"__isSmartRef__":true,"id":2040},"eventHandler":{"__isSmartRef__":true,"id":2041},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2030},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2032":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2033},{"__isSmartRef__":true,"id":2034}],"renderContextTable":{"__isSmartRef__":true,"id":2035},"_Position":{"__isSmartRef__":true,"id":2036},"_Extent":{"__isSmartRef__":true,"id":2037},"_Padding":{"__isSmartRef__":true,"id":2038},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2039},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2033":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2034":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2036":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2037":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2038":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2039":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2040":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2041":{"morph":{"__isSmartRef__":true,"id":2031},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2042":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2043},"derivationIds":[null],"id":"DCD3DAB7-58AE-40CD-8E2A-EFE47C6B8E7B","renderContextTable":{"__isSmartRef__":true,"id":2051},"eventHandler":{"__isSmartRef__":true,"id":2052},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2030},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2043":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2044},{"__isSmartRef__":true,"id":2045}],"renderContextTable":{"__isSmartRef__":true,"id":2046},"_Position":{"__isSmartRef__":true,"id":2047},"_Extent":{"__isSmartRef__":true,"id":2048},"_Padding":{"__isSmartRef__":true,"id":2049},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2050},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2044":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2045":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2046":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2047":{"x":15,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2048":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2049":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2050":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2051":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2052":{"morph":{"__isSmartRef__":true,"id":2042},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2054},"derivationIds":[null],"id":"197784E6-A98B-4BE0-B28D-E080CFF79314","renderContextTable":{"__isSmartRef__":true,"id":2062},"eventHandler":{"__isSmartRef__":true,"id":2063},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2030},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2054":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2055},{"__isSmartRef__":true,"id":2056}],"renderContextTable":{"__isSmartRef__":true,"id":2057},"_Position":{"__isSmartRef__":true,"id":2058},"_Extent":{"__isSmartRef__":true,"id":2059},"_Padding":{"__isSmartRef__":true,"id":2060},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2061},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2055":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2056":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2058":{"x":31,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2059":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2060":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2061":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2062":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2063":{"morph":{"__isSmartRef__":true,"id":2053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2064":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2065},"derivationIds":[null],"id":"705E5F86-6952-4539-80F3-5BD701219ABD","renderContextTable":{"__isSmartRef__":true,"id":2073},"eventHandler":{"__isSmartRef__":true,"id":2074},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2030},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2065":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2066},{"__isSmartRef__":true,"id":2067}],"renderContextTable":{"__isSmartRef__":true,"id":2068},"_Position":{"__isSmartRef__":true,"id":2069},"_Extent":{"__isSmartRef__":true,"id":2070},"_Padding":{"__isSmartRef__":true,"id":2071},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2072},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2066":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2067":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2068":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2069":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2070":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2071":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2072":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2073":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2074":{"morph":{"__isSmartRef__":true,"id":2064},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2075":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2076},{"__isSmartRef__":true,"id":2077},{"__isSmartRef__":true,"id":2078},{"__isSmartRef__":true,"id":2079},{"__isSmartRef__":true,"id":2080},{"__isSmartRef__":true,"id":2081},{"__isSmartRef__":true,"id":2082},{"__isSmartRef__":true,"id":2083}],"renderContextTable":{"__isSmartRef__":true,"id":2084},"_Position":{"__isSmartRef__":true,"id":2085},"_Extent":{"__isSmartRef__":true,"id":2086},"_Padding":{"__isSmartRef__":true,"id":2087},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2088},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2076":{"isAbsolute":true,"x":14,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2077":{"isAbsolute":true,"x":36,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2078":{"isAbsolute":true,"x":41,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2079":{"isAbsolute":true,"x":41,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2080":{"isAbsolute":true,"x":36,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2081":{"isAbsolute":true,"x":14,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2082":{"isAbsolute":true,"x":9,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2083":{"isAbsolute":true,"x":9,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2084":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2085":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2086":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2087":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2088":{"r":0.5411764705882353,"g":0.1568627450980392,"b":0.5607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2089":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2090":{"morph":{"__isSmartRef__":true,"id":2030},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2091":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2092":{"position":{"__isSmartRef__":true,"id":2093},"_Extent":{"__isSmartRef__":true,"id":2094},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2095},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2096},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2097},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2093":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2094":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2095":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2096":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2097":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2098":{"x":1,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2099":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2100},{"__isSmartRef__":true,"id":2102},{"__isSmartRef__":true,"id":2104},{"__isSmartRef__":true,"id":2106},{"__isSmartRef__":true,"id":2108},{"__isSmartRef__":true,"id":2110},{"__isSmartRef__":true,"id":2112},{"__isSmartRef__":true,"id":2114},{"__isSmartRef__":true,"id":2116},{"__isSmartRef__":true,"id":2118},{"__isSmartRef__":true,"id":2120},{"__isSmartRef__":true,"id":2122},{"__isSmartRef__":true,"id":2124},{"__isSmartRef__":true,"id":2126},{"__isSmartRef__":true,"id":2128},{"__isSmartRef__":true,"id":2130},{"__isSmartRef__":true,"id":2132},{"__isSmartRef__":true,"id":2134},{"__isSmartRef__":true,"id":2136}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2100":{"date":{"__isSmartRef__":true,"id":2101},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2101":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2102":{"date":{"__isSmartRef__":true,"id":2103},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2103":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2104":{"date":{"__isSmartRef__":true,"id":2105},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2105":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2106":{"date":{"__isSmartRef__":true,"id":2107},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2107":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2108":{"date":{"__isSmartRef__":true,"id":2109},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2109":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2110":{"date":{"__isSmartRef__":true,"id":2111},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2111":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2112":{"date":{"__isSmartRef__":true,"id":2113},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2113":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2114":{"date":{"__isSmartRef__":true,"id":2115},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2115":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2116":{"date":{"__isSmartRef__":true,"id":2117},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2117":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2118":{"date":{"__isSmartRef__":true,"id":2119},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2119":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2120":{"date":{"__isSmartRef__":true,"id":2121},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2121":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2122":{"date":{"__isSmartRef__":true,"id":2123},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2123":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2124":{"date":{"__isSmartRef__":true,"id":2125},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2125":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2126":{"date":{"__isSmartRef__":true,"id":2127},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2127":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2128":{"date":{"__isSmartRef__":true,"id":2129},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2129":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2130":{"date":{"__isSmartRef__":true,"id":2131},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2131":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2132":{"date":{"__isSmartRef__":true,"id":2133},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2133":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2134":{"date":{"__isSmartRef__":true,"id":2135},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2135":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2136":{"date":{"__isSmartRef__":true,"id":2137},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2137":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2138":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2139":{"morph":{"__isSmartRef__":true,"id":2029},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2140":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2141}},"2141":{"test01IsMorph":{"__isSmartRef__":true,"id":2142}},"2142":{"varMapping":{"__isSmartRef__":true,"id":2143},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2144},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2143":{"this":{"__isSmartRef__":true,"id":2140}},"2144":{},"2145":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2146":{"left":0,"up":1,"right":2,"down":3},"2147":{"submorphs":[{"__isSmartRef__":true,"id":2148}],"scripts":[],"id":"6FEC620F-96D5-46D9-AD39-E1DC5F54AF63","shape":{"__isSmartRef__":true,"id":2184},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2190},"showsHalos":false,"name":"BasicGem18","partsBinMetaInfo":{"__isSmartRef__":true,"id":2191},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2230},"eventHandler":{"__isSmartRef__":true,"id":2231},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2232},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2237},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2238},"neighbours":[{"__isSmartRef__":true,"id":2029},{"__isSmartRef__":true,"id":1765},{"__isSmartRef__":true,"id":2239},{"__isSmartRef__":true,"id":3619}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13427},"__LivelyClassName__":"lively.morphic.Box"},"2148":{"submorphs":[{"__isSmartRef__":true,"id":2149},{"__isSmartRef__":true,"id":2160}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2171},"derivationIds":[null],"id":"8667F8C3-C5A0-4AEA-B513-60C9D6DF0736","renderContextTable":{"__isSmartRef__":true,"id":2181},"eventHandler":{"__isSmartRef__":true,"id":2182},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2147},"_Position":{"__isSmartRef__":true,"id":2183},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2149":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2150},"derivationIds":[null],"id":"E9ADDF3F-38AF-49E1-B9CD-BBB25DFBC137","renderContextTable":{"__isSmartRef__":true,"id":2158},"eventHandler":{"__isSmartRef__":true,"id":2159},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2148},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2150":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2151},{"__isSmartRef__":true,"id":2152}],"renderContextTable":{"__isSmartRef__":true,"id":2153},"_Position":{"__isSmartRef__":true,"id":2154},"_Extent":{"__isSmartRef__":true,"id":2155},"_Padding":{"__isSmartRef__":true,"id":2156},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2157},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2151":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2152":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2153":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2154":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2155":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2156":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2157":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2158":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2159":{"morph":{"__isSmartRef__":true,"id":2149},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2160":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2161},"derivationIds":[null],"id":"9E68D960-00C1-4B7A-A680-62F9E4BA96F3","renderContextTable":{"__isSmartRef__":true,"id":2169},"eventHandler":{"__isSmartRef__":true,"id":2170},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2148},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2161":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2162},{"__isSmartRef__":true,"id":2163}],"renderContextTable":{"__isSmartRef__":true,"id":2164},"_Position":{"__isSmartRef__":true,"id":2165},"_Extent":{"__isSmartRef__":true,"id":2166},"_Padding":{"__isSmartRef__":true,"id":2167},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2168},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2162":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2163":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2164":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2165":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2166":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2167":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2168":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2169":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2170":{"morph":{"__isSmartRef__":true,"id":2160},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2171":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2172},{"__isSmartRef__":true,"id":2173},{"__isSmartRef__":true,"id":2174},{"__isSmartRef__":true,"id":2175}],"renderContextTable":{"__isSmartRef__":true,"id":2176},"_Position":{"__isSmartRef__":true,"id":2177},"_Extent":{"__isSmartRef__":true,"id":2178},"_Padding":{"__isSmartRef__":true,"id":2179},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2180},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2172":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2173":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2174":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2175":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2176":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2177":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2178":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2179":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2180":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2181":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2182":{"morph":{"__isSmartRef__":true,"id":2148},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2183":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2184":{"position":{"__isSmartRef__":true,"id":2185},"_Extent":{"__isSmartRef__":true,"id":2186},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2187},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2188},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2189},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2185":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2186":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2187":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2188":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2189":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2190":{"x":50.20369420394888,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2191":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2192},{"__isSmartRef__":true,"id":2194},{"__isSmartRef__":true,"id":2196},{"__isSmartRef__":true,"id":2198},{"__isSmartRef__":true,"id":2200},{"__isSmartRef__":true,"id":2202},{"__isSmartRef__":true,"id":2204},{"__isSmartRef__":true,"id":2206},{"__isSmartRef__":true,"id":2208},{"__isSmartRef__":true,"id":2210},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2214},{"__isSmartRef__":true,"id":2216},{"__isSmartRef__":true,"id":2218},{"__isSmartRef__":true,"id":2220},{"__isSmartRef__":true,"id":2222},{"__isSmartRef__":true,"id":2224},{"__isSmartRef__":true,"id":2226},{"__isSmartRef__":true,"id":2228}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2192":{"date":{"__isSmartRef__":true,"id":2193},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2193":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2194":{"date":{"__isSmartRef__":true,"id":2195},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2195":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2196":{"date":{"__isSmartRef__":true,"id":2197},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2197":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2198":{"date":{"__isSmartRef__":true,"id":2199},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2199":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2200":{"date":{"__isSmartRef__":true,"id":2201},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2201":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2202":{"date":{"__isSmartRef__":true,"id":2203},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2203":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2204":{"date":{"__isSmartRef__":true,"id":2205},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2205":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2206":{"date":{"__isSmartRef__":true,"id":2207},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2207":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2208":{"date":{"__isSmartRef__":true,"id":2209},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2209":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2210":{"date":{"__isSmartRef__":true,"id":2211},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2211":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2212":{"date":{"__isSmartRef__":true,"id":2213},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2213":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2214":{"date":{"__isSmartRef__":true,"id":2215},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2215":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2216":{"date":{"__isSmartRef__":true,"id":2217},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2217":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2218":{"date":{"__isSmartRef__":true,"id":2219},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2219":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2220":{"date":{"__isSmartRef__":true,"id":2221},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2221":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2222":{"date":{"__isSmartRef__":true,"id":2223},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2223":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2224":{"date":{"__isSmartRef__":true,"id":2225},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2225":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2226":{"date":{"__isSmartRef__":true,"id":2227},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2227":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2228":{"date":{"__isSmartRef__":true,"id":2229},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2229":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2230":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2231":{"morph":{"__isSmartRef__":true,"id":2147},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2232":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2233}},"2233":{"test01IsMorph":{"__isSmartRef__":true,"id":2234}},"2234":{"varMapping":{"__isSmartRef__":true,"id":2235},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2236},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2235":{"this":{"__isSmartRef__":true,"id":2232}},"2236":{},"2237":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2238":{"left":0,"up":1,"right":2,"down":3},"2239":{"submorphs":[{"__isSmartRef__":true,"id":2240}],"scripts":[],"id":"44FB27CB-8773-4BD3-9460-C4546C86C894","shape":{"__isSmartRef__":true,"id":2302},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2308},"showsHalos":false,"name":"BasicGem19","partsBinMetaInfo":{"__isSmartRef__":true,"id":2309},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2348},"eventHandler":{"__isSmartRef__":true,"id":2349},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2350},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2355},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2356},"neighbours":[{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":1673},{"__isSmartRef__":true,"id":2357},{"__isSmartRef__":true,"id":3487}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13298},"__LivelyClassName__":"lively.morphic.Box"},"2240":{"submorphs":[{"__isSmartRef__":true,"id":2241},{"__isSmartRef__":true,"id":2252},{"__isSmartRef__":true,"id":2263},{"__isSmartRef__":true,"id":2274}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2285},"derivationIds":[null],"id":"402C3BB2-BCEE-4EA1-BFF4-CEF113D46852","renderContextTable":{"__isSmartRef__":true,"id":2299},"eventHandler":{"__isSmartRef__":true,"id":2300},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2239},"_Position":{"__isSmartRef__":true,"id":2301},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2241":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2242},"derivationIds":[null],"id":"3EDCDF82-4E26-4EE7-86F9-AD7F5BA254F8","renderContextTable":{"__isSmartRef__":true,"id":2250},"eventHandler":{"__isSmartRef__":true,"id":2251},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2240},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2242":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2243},{"__isSmartRef__":true,"id":2244}],"renderContextTable":{"__isSmartRef__":true,"id":2245},"_Position":{"__isSmartRef__":true,"id":2246},"_Extent":{"__isSmartRef__":true,"id":2247},"_Padding":{"__isSmartRef__":true,"id":2248},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2249},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2243":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2244":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2245":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2246":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2247":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2248":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2249":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2250":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2251":{"morph":{"__isSmartRef__":true,"id":2241},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2252":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2253},"derivationIds":[null],"id":"A9645809-F17C-46D8-8B52-773FC0CD9F77","renderContextTable":{"__isSmartRef__":true,"id":2261},"eventHandler":{"__isSmartRef__":true,"id":2262},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2240},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2253":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2254},{"__isSmartRef__":true,"id":2255}],"renderContextTable":{"__isSmartRef__":true,"id":2256},"_Position":{"__isSmartRef__":true,"id":2257},"_Extent":{"__isSmartRef__":true,"id":2258},"_Padding":{"__isSmartRef__":true,"id":2259},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2260},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2254":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2255":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2257":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2258":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2259":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2260":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2261":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2262":{"morph":{"__isSmartRef__":true,"id":2252},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2263":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2264},"derivationIds":[null],"id":"DF3CFED4-7AC2-4BBA-8309-5198F83D0959","renderContextTable":{"__isSmartRef__":true,"id":2272},"eventHandler":{"__isSmartRef__":true,"id":2273},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2240},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2264":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2265},{"__isSmartRef__":true,"id":2266}],"renderContextTable":{"__isSmartRef__":true,"id":2267},"_Position":{"__isSmartRef__":true,"id":2268},"_Extent":{"__isSmartRef__":true,"id":2269},"_Padding":{"__isSmartRef__":true,"id":2270},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2271},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2265":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2266":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2267":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2268":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2269":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2270":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2271":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2272":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2273":{"morph":{"__isSmartRef__":true,"id":2263},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2274":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2275},"derivationIds":[null],"id":"A562B574-E7A7-466C-A60B-43D54FF2626B","renderContextTable":{"__isSmartRef__":true,"id":2283},"eventHandler":{"__isSmartRef__":true,"id":2284},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2240},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2275":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2276},{"__isSmartRef__":true,"id":2277}],"renderContextTable":{"__isSmartRef__":true,"id":2278},"_Position":{"__isSmartRef__":true,"id":2279},"_Extent":{"__isSmartRef__":true,"id":2280},"_Padding":{"__isSmartRef__":true,"id":2281},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":2282},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2276":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2277":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2278":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2279":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2280":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2281":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2282":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2283":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2284":{"morph":{"__isSmartRef__":true,"id":2274},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2285":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2286},{"__isSmartRef__":true,"id":2287},{"__isSmartRef__":true,"id":2288},{"__isSmartRef__":true,"id":2289},{"__isSmartRef__":true,"id":2290},{"__isSmartRef__":true,"id":2291},{"__isSmartRef__":true,"id":2292},{"__isSmartRef__":true,"id":2293}],"renderContextTable":{"__isSmartRef__":true,"id":2294},"_Position":{"__isSmartRef__":true,"id":2295},"_Extent":{"__isSmartRef__":true,"id":2296},"_Padding":{"__isSmartRef__":true,"id":2297},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2298},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2286":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2287":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2288":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2289":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2290":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2291":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2292":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2293":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2294":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2295":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2296":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2297":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2298":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2300":{"morph":{"__isSmartRef__":true,"id":2240},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2301":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2302":{"position":{"__isSmartRef__":true,"id":2303},"_Extent":{"__isSmartRef__":true,"id":2304},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2305},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2306},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2307},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2303":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2304":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2305":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2306":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2307":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2308":{"x":99.40738840789776,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2309":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2310},{"__isSmartRef__":true,"id":2312},{"__isSmartRef__":true,"id":2314},{"__isSmartRef__":true,"id":2316},{"__isSmartRef__":true,"id":2318},{"__isSmartRef__":true,"id":2320},{"__isSmartRef__":true,"id":2322},{"__isSmartRef__":true,"id":2324},{"__isSmartRef__":true,"id":2326},{"__isSmartRef__":true,"id":2328},{"__isSmartRef__":true,"id":2330},{"__isSmartRef__":true,"id":2332},{"__isSmartRef__":true,"id":2334},{"__isSmartRef__":true,"id":2336},{"__isSmartRef__":true,"id":2338},{"__isSmartRef__":true,"id":2340},{"__isSmartRef__":true,"id":2342},{"__isSmartRef__":true,"id":2344},{"__isSmartRef__":true,"id":2346}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2310":{"date":{"__isSmartRef__":true,"id":2311},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2311":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2312":{"date":{"__isSmartRef__":true,"id":2313},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2313":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2314":{"date":{"__isSmartRef__":true,"id":2315},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2315":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2316":{"date":{"__isSmartRef__":true,"id":2317},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2317":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2318":{"date":{"__isSmartRef__":true,"id":2319},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2319":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2320":{"date":{"__isSmartRef__":true,"id":2321},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2321":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2322":{"date":{"__isSmartRef__":true,"id":2323},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2323":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2324":{"date":{"__isSmartRef__":true,"id":2325},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2325":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2326":{"date":{"__isSmartRef__":true,"id":2327},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2327":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2328":{"date":{"__isSmartRef__":true,"id":2329},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2329":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2330":{"date":{"__isSmartRef__":true,"id":2331},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2331":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2332":{"date":{"__isSmartRef__":true,"id":2333},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2333":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2334":{"date":{"__isSmartRef__":true,"id":2335},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2335":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2336":{"date":{"__isSmartRef__":true,"id":2337},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2337":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2338":{"date":{"__isSmartRef__":true,"id":2339},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2339":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2340":{"date":{"__isSmartRef__":true,"id":2341},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2341":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2342":{"date":{"__isSmartRef__":true,"id":2343},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2343":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2344":{"date":{"__isSmartRef__":true,"id":2345},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2345":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2346":{"date":{"__isSmartRef__":true,"id":2347},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2347":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2348":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2349":{"morph":{"__isSmartRef__":true,"id":2239},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2350":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2351}},"2351":{"test01IsMorph":{"__isSmartRef__":true,"id":2352}},"2352":{"varMapping":{"__isSmartRef__":true,"id":2353},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2354},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2353":{"this":{"__isSmartRef__":true,"id":2350}},"2354":{},"2355":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2356":{"left":0,"up":1,"right":2,"down":3},"2357":{"submorphs":[{"__isSmartRef__":true,"id":2358}],"scripts":[],"id":"54DF9F1F-F272-4E0F-AAB5-7B5128C7AB88","shape":{"__isSmartRef__":true,"id":2429},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2435},"showsHalos":false,"name":"BasicGem20","partsBinMetaInfo":{"__isSmartRef__":true,"id":2436},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2475},"eventHandler":{"__isSmartRef__":true,"id":2476},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2477},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2482},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2483},"neighbours":[{"__isSmartRef__":true,"id":2239},{"__isSmartRef__":true,"id":1581},{"__isSmartRef__":true,"id":2484},{"__isSmartRef__":true,"id":3360}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":13168},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13169},"__LivelyClassName__":"lively.morphic.Box"},"2358":{"submorphs":[{"__isSmartRef__":true,"id":2359},{"__isSmartRef__":true,"id":2370},{"__isSmartRef__":true,"id":2381},{"__isSmartRef__":true,"id":2392},{"__isSmartRef__":true,"id":2403}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2414},"derivationIds":[null],"id":"1B5CFBF3-1688-4664-A088-DE1784CE75CE","renderContextTable":{"__isSmartRef__":true,"id":2426},"eventHandler":{"__isSmartRef__":true,"id":2427},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2357},"_Position":{"__isSmartRef__":true,"id":2428},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2359":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2360},"derivationIds":[null],"id":"E7AE0E97-A7FE-473B-B55D-0331E9F6DA01","renderContextTable":{"__isSmartRef__":true,"id":2368},"eventHandler":{"__isSmartRef__":true,"id":2369},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2358},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2360":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2361},{"__isSmartRef__":true,"id":2362}],"renderContextTable":{"__isSmartRef__":true,"id":2363},"_Position":{"__isSmartRef__":true,"id":2364},"_Extent":{"__isSmartRef__":true,"id":2365},"_Padding":{"__isSmartRef__":true,"id":2366},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2367},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2361":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2362":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2363":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2364":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2365":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2366":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2367":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2368":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2369":{"morph":{"__isSmartRef__":true,"id":2359},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2370":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2371},"derivationIds":[null],"id":"917ADEE9-4C03-415C-8679-18306ECC0040","renderContextTable":{"__isSmartRef__":true,"id":2379},"eventHandler":{"__isSmartRef__":true,"id":2380},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2358},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2371":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2372},{"__isSmartRef__":true,"id":2373}],"renderContextTable":{"__isSmartRef__":true,"id":2374},"_Position":{"__isSmartRef__":true,"id":2375},"_Extent":{"__isSmartRef__":true,"id":2376},"_Padding":{"__isSmartRef__":true,"id":2377},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2378},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2372":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2373":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2374":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2375":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2376":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2377":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2378":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2379":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2380":{"morph":{"__isSmartRef__":true,"id":2370},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2381":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2382},"derivationIds":[null],"id":"885DB9B8-A6CE-4CCA-BB4F-29A9443F157C","renderContextTable":{"__isSmartRef__":true,"id":2390},"eventHandler":{"__isSmartRef__":true,"id":2391},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2358},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2382":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2383},{"__isSmartRef__":true,"id":2384}],"renderContextTable":{"__isSmartRef__":true,"id":2385},"_Position":{"__isSmartRef__":true,"id":2386},"_Extent":{"__isSmartRef__":true,"id":2387},"_Padding":{"__isSmartRef__":true,"id":2388},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2389},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2383":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2384":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2385":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2386":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2387":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2388":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2389":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2390":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2391":{"morph":{"__isSmartRef__":true,"id":2381},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2392":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2393},"derivationIds":[null],"id":"D5E44992-8015-4905-B60B-DB44E584D27D","renderContextTable":{"__isSmartRef__":true,"id":2401},"eventHandler":{"__isSmartRef__":true,"id":2402},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2358},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2393":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2394},{"__isSmartRef__":true,"id":2395}],"renderContextTable":{"__isSmartRef__":true,"id":2396},"_Position":{"__isSmartRef__":true,"id":2397},"_Extent":{"__isSmartRef__":true,"id":2398},"_Padding":{"__isSmartRef__":true,"id":2399},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2400},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2394":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2395":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2396":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2397":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2398":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2399":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2400":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2401":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2402":{"morph":{"__isSmartRef__":true,"id":2392},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2403":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2404},"derivationIds":[null],"id":"7B431627-1FF2-4532-8994-87B9775467B4","renderContextTable":{"__isSmartRef__":true,"id":2412},"eventHandler":{"__isSmartRef__":true,"id":2413},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2358},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2404":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2405},{"__isSmartRef__":true,"id":2406}],"renderContextTable":{"__isSmartRef__":true,"id":2407},"_Position":{"__isSmartRef__":true,"id":2408},"_Extent":{"__isSmartRef__":true,"id":2409},"_Padding":{"__isSmartRef__":true,"id":2410},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2411},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2405":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2406":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2407":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2408":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2409":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2410":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2411":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2412":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2413":{"morph":{"__isSmartRef__":true,"id":2403},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2414":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2415},{"__isSmartRef__":true,"id":2416},{"__isSmartRef__":true,"id":2417},{"__isSmartRef__":true,"id":2418},{"__isSmartRef__":true,"id":2419},{"__isSmartRef__":true,"id":2420}],"renderContextTable":{"__isSmartRef__":true,"id":2421},"_Position":{"__isSmartRef__":true,"id":2422},"_Extent":{"__isSmartRef__":true,"id":2423},"_Padding":{"__isSmartRef__":true,"id":2424},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2425},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2415":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2416":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2417":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2418":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2419":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2420":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2421":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2422":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2423":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2424":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2425":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2426":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2427":{"morph":{"__isSmartRef__":true,"id":2358},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2428":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2429":{"position":{"__isSmartRef__":true,"id":2430},"_Extent":{"__isSmartRef__":true,"id":2431},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2432},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2433},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2434},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2430":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2431":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2432":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2433":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2434":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2435":{"x":148.61108261184663,"y":157.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2436":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2437},{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2441},{"__isSmartRef__":true,"id":2443},{"__isSmartRef__":true,"id":2445},{"__isSmartRef__":true,"id":2447},{"__isSmartRef__":true,"id":2449},{"__isSmartRef__":true,"id":2451},{"__isSmartRef__":true,"id":2453},{"__isSmartRef__":true,"id":2455},{"__isSmartRef__":true,"id":2457},{"__isSmartRef__":true,"id":2459},{"__isSmartRef__":true,"id":2461},{"__isSmartRef__":true,"id":2463},{"__isSmartRef__":true,"id":2465},{"__isSmartRef__":true,"id":2467},{"__isSmartRef__":true,"id":2469},{"__isSmartRef__":true,"id":2471},{"__isSmartRef__":true,"id":2473}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2437":{"date":{"__isSmartRef__":true,"id":2438},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2438":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2439":{"date":{"__isSmartRef__":true,"id":2440},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2440":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2441":{"date":{"__isSmartRef__":true,"id":2442},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2442":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2443":{"date":{"__isSmartRef__":true,"id":2444},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2444":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2445":{"date":{"__isSmartRef__":true,"id":2446},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2446":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2447":{"date":{"__isSmartRef__":true,"id":2448},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2448":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2449":{"date":{"__isSmartRef__":true,"id":2450},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2450":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2451":{"date":{"__isSmartRef__":true,"id":2452},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2452":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2453":{"date":{"__isSmartRef__":true,"id":2454},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2454":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2455":{"date":{"__isSmartRef__":true,"id":2456},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2456":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2457":{"date":{"__isSmartRef__":true,"id":2458},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2458":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2459":{"date":{"__isSmartRef__":true,"id":2460},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2460":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2461":{"date":{"__isSmartRef__":true,"id":2462},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2462":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2463":{"date":{"__isSmartRef__":true,"id":2464},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2464":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2465":{"date":{"__isSmartRef__":true,"id":2466},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2466":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2467":{"date":{"__isSmartRef__":true,"id":2468},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2468":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2469":{"date":{"__isSmartRef__":true,"id":2470},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2470":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2471":{"date":{"__isSmartRef__":true,"id":2472},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2472":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2473":{"date":{"__isSmartRef__":true,"id":2474},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2474":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2475":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2476":{"morph":{"__isSmartRef__":true,"id":2357},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2477":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2478}},"2478":{"test01IsMorph":{"__isSmartRef__":true,"id":2479}},"2479":{"varMapping":{"__isSmartRef__":true,"id":2480},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2481},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2480":{"this":{"__isSmartRef__":true,"id":2477}},"2481":{},"2482":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2483":{"left":0,"up":1,"right":2,"down":3},"2484":{"submorphs":[{"__isSmartRef__":true,"id":2485}],"scripts":[],"id":"34134A89-B714-407B-9A60-F32395A36CC1","shape":{"__isSmartRef__":true,"id":2521},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2527},"showsHalos":false,"name":"BasicGem21","partsBinMetaInfo":{"__isSmartRef__":true,"id":2528},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2567},"eventHandler":{"__isSmartRef__":true,"id":2568},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2569},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2574},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2575},"neighbours":[{"__isSmartRef__":true,"id":2357},{"__isSmartRef__":true,"id":1449},{"__isSmartRef__":true,"id":2576},{"__isSmartRef__":true,"id":3233}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":13038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13039},"__LivelyClassName__":"lively.morphic.Box"},"2485":{"submorphs":[{"__isSmartRef__":true,"id":2486},{"__isSmartRef__":true,"id":2497}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2508},"derivationIds":[null],"id":"B7479708-7B71-4CEB-8FC5-B581F59F3E69","renderContextTable":{"__isSmartRef__":true,"id":2518},"eventHandler":{"__isSmartRef__":true,"id":2519},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2484},"_Position":{"__isSmartRef__":true,"id":2520},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2486":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2487},"derivationIds":[null],"id":"D0EF08DC-C636-4525-B8C9-75BF8BDFB01B","renderContextTable":{"__isSmartRef__":true,"id":2495},"eventHandler":{"__isSmartRef__":true,"id":2496},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2485},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2487":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2488},{"__isSmartRef__":true,"id":2489}],"renderContextTable":{"__isSmartRef__":true,"id":2490},"_Position":{"__isSmartRef__":true,"id":2491},"_Extent":{"__isSmartRef__":true,"id":2492},"_Padding":{"__isSmartRef__":true,"id":2493},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2494},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2488":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2489":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2490":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2491":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2492":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2493":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2494":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2495":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2496":{"morph":{"__isSmartRef__":true,"id":2486},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2497":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2498},"derivationIds":[null],"id":"A9C1CC58-977E-4A58-AC31-9AEACCF6E276","renderContextTable":{"__isSmartRef__":true,"id":2506},"eventHandler":{"__isSmartRef__":true,"id":2507},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2485},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2498":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2499},{"__isSmartRef__":true,"id":2500}],"renderContextTable":{"__isSmartRef__":true,"id":2501},"_Position":{"__isSmartRef__":true,"id":2502},"_Extent":{"__isSmartRef__":true,"id":2503},"_Padding":{"__isSmartRef__":true,"id":2504},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2505},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2499":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2500":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2501":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2502":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2503":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2504":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2505":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2506":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2507":{"morph":{"__isSmartRef__":true,"id":2497},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2508":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2509},{"__isSmartRef__":true,"id":2510},{"__isSmartRef__":true,"id":2511},{"__isSmartRef__":true,"id":2512}],"renderContextTable":{"__isSmartRef__":true,"id":2513},"_Position":{"__isSmartRef__":true,"id":2514},"_Extent":{"__isSmartRef__":true,"id":2515},"_Padding":{"__isSmartRef__":true,"id":2516},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2517},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2509":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2510":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2511":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2512":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2513":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2514":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2515":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2516":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2517":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2518":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2519":{"morph":{"__isSmartRef__":true,"id":2485},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2520":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2521":{"position":{"__isSmartRef__":true,"id":2522},"_Extent":{"__isSmartRef__":true,"id":2523},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2524},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2525},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2526},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2522":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2523":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2524":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2525":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2526":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2527":{"x":197.8147768157955,"y":157.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2528":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2529},{"__isSmartRef__":true,"id":2531},{"__isSmartRef__":true,"id":2533},{"__isSmartRef__":true,"id":2535},{"__isSmartRef__":true,"id":2537},{"__isSmartRef__":true,"id":2539},{"__isSmartRef__":true,"id":2541},{"__isSmartRef__":true,"id":2543},{"__isSmartRef__":true,"id":2545},{"__isSmartRef__":true,"id":2547},{"__isSmartRef__":true,"id":2549},{"__isSmartRef__":true,"id":2551},{"__isSmartRef__":true,"id":2553},{"__isSmartRef__":true,"id":2555},{"__isSmartRef__":true,"id":2557},{"__isSmartRef__":true,"id":2559},{"__isSmartRef__":true,"id":2561},{"__isSmartRef__":true,"id":2563},{"__isSmartRef__":true,"id":2565}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2529":{"date":{"__isSmartRef__":true,"id":2530},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2530":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2531":{"date":{"__isSmartRef__":true,"id":2532},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2532":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2533":{"date":{"__isSmartRef__":true,"id":2534},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2534":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2535":{"date":{"__isSmartRef__":true,"id":2536},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2536":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2537":{"date":{"__isSmartRef__":true,"id":2538},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2538":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2539":{"date":{"__isSmartRef__":true,"id":2540},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2540":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2541":{"date":{"__isSmartRef__":true,"id":2542},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2542":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2543":{"date":{"__isSmartRef__":true,"id":2544},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2544":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2545":{"date":{"__isSmartRef__":true,"id":2546},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2546":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2547":{"date":{"__isSmartRef__":true,"id":2548},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2548":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2549":{"date":{"__isSmartRef__":true,"id":2550},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2550":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2551":{"date":{"__isSmartRef__":true,"id":2552},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2552":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2553":{"date":{"__isSmartRef__":true,"id":2554},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2554":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2555":{"date":{"__isSmartRef__":true,"id":2556},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2556":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2557":{"date":{"__isSmartRef__":true,"id":2558},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2558":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2559":{"date":{"__isSmartRef__":true,"id":2560},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2560":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2561":{"date":{"__isSmartRef__":true,"id":2562},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2562":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2563":{"date":{"__isSmartRef__":true,"id":2564},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2564":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2565":{"date":{"__isSmartRef__":true,"id":2566},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2566":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2567":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2568":{"morph":{"__isSmartRef__":true,"id":2484},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2569":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2570}},"2570":{"test01IsMorph":{"__isSmartRef__":true,"id":2571}},"2571":{"varMapping":{"__isSmartRef__":true,"id":2572},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2573},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2572":{"this":{"__isSmartRef__":true,"id":2569}},"2573":{},"2574":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2575":{"left":0,"up":1,"right":2,"down":3},"2576":{"submorphs":[{"__isSmartRef__":true,"id":2577}],"scripts":[],"id":"23F35868-4346-40C3-8029-9D8FF6FCBD0A","shape":{"__isSmartRef__":true,"id":2648},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2654},"showsHalos":false,"name":"BasicGem22","partsBinMetaInfo":{"__isSmartRef__":true,"id":2655},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2694},"eventHandler":{"__isSmartRef__":true,"id":2695},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2696},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2701},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2702},"neighbours":[{"__isSmartRef__":true,"id":2484},{"__isSmartRef__":true,"id":1322},{"__isSmartRef__":true,"id":2703},{"__isSmartRef__":true,"id":3132}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":12908},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12909},"__LivelyClassName__":"lively.morphic.Box"},"2577":{"submorphs":[{"__isSmartRef__":true,"id":2578},{"__isSmartRef__":true,"id":2589},{"__isSmartRef__":true,"id":2600},{"__isSmartRef__":true,"id":2611},{"__isSmartRef__":true,"id":2622}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2633},"derivationIds":[null],"id":"A03051FB-ADB2-4734-8070-66599FD6214C","renderContextTable":{"__isSmartRef__":true,"id":2645},"eventHandler":{"__isSmartRef__":true,"id":2646},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2576},"_Position":{"__isSmartRef__":true,"id":2647},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2578":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2579},"derivationIds":[null],"id":"09A10F2F-824B-4819-BE1E-5F09E7146375","renderContextTable":{"__isSmartRef__":true,"id":2587},"eventHandler":{"__isSmartRef__":true,"id":2588},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2577},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2579":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2580},{"__isSmartRef__":true,"id":2581}],"renderContextTable":{"__isSmartRef__":true,"id":2582},"_Position":{"__isSmartRef__":true,"id":2583},"_Extent":{"__isSmartRef__":true,"id":2584},"_Padding":{"__isSmartRef__":true,"id":2585},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2586},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2580":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2581":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2582":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2583":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2584":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2585":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2586":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2587":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2588":{"morph":{"__isSmartRef__":true,"id":2578},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2589":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2590},"derivationIds":[null],"id":"2DA71B80-ACF7-43B3-9A57-7155ADB5C884","renderContextTable":{"__isSmartRef__":true,"id":2598},"eventHandler":{"__isSmartRef__":true,"id":2599},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2577},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2590":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2591},{"__isSmartRef__":true,"id":2592}],"renderContextTable":{"__isSmartRef__":true,"id":2593},"_Position":{"__isSmartRef__":true,"id":2594},"_Extent":{"__isSmartRef__":true,"id":2595},"_Padding":{"__isSmartRef__":true,"id":2596},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2597},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2591":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2592":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2593":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2594":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2595":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2596":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2597":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2598":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2599":{"morph":{"__isSmartRef__":true,"id":2589},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2600":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2601},"derivationIds":[null],"id":"6A429C54-8D4F-47F8-B54A-C0A265EC3411","renderContextTable":{"__isSmartRef__":true,"id":2609},"eventHandler":{"__isSmartRef__":true,"id":2610},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2577},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2601":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2602},{"__isSmartRef__":true,"id":2603}],"renderContextTable":{"__isSmartRef__":true,"id":2604},"_Position":{"__isSmartRef__":true,"id":2605},"_Extent":{"__isSmartRef__":true,"id":2606},"_Padding":{"__isSmartRef__":true,"id":2607},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2608},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2602":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2603":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2604":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2605":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2606":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2607":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2608":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2609":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2610":{"morph":{"__isSmartRef__":true,"id":2600},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2611":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2612},"derivationIds":[null],"id":"76CEAC11-7E52-4559-BCD6-BD1451C2F9E0","renderContextTable":{"__isSmartRef__":true,"id":2620},"eventHandler":{"__isSmartRef__":true,"id":2621},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2577},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2612":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2613},{"__isSmartRef__":true,"id":2614}],"renderContextTable":{"__isSmartRef__":true,"id":2615},"_Position":{"__isSmartRef__":true,"id":2616},"_Extent":{"__isSmartRef__":true,"id":2617},"_Padding":{"__isSmartRef__":true,"id":2618},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2619},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2613":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2614":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2615":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2616":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2617":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2618":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2619":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2620":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2621":{"morph":{"__isSmartRef__":true,"id":2611},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2622":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2623},"derivationIds":[null],"id":"DC0976E9-B345-4DCA-9A22-7F39BFEC195C","renderContextTable":{"__isSmartRef__":true,"id":2631},"eventHandler":{"__isSmartRef__":true,"id":2632},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2577},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2623":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2624},{"__isSmartRef__":true,"id":2625}],"renderContextTable":{"__isSmartRef__":true,"id":2626},"_Position":{"__isSmartRef__":true,"id":2627},"_Extent":{"__isSmartRef__":true,"id":2628},"_Padding":{"__isSmartRef__":true,"id":2629},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2630},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2624":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2625":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2626":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2627":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2628":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2629":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2630":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2631":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2632":{"morph":{"__isSmartRef__":true,"id":2622},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2633":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2634},{"__isSmartRef__":true,"id":2635},{"__isSmartRef__":true,"id":2636},{"__isSmartRef__":true,"id":2637},{"__isSmartRef__":true,"id":2638},{"__isSmartRef__":true,"id":2639}],"renderContextTable":{"__isSmartRef__":true,"id":2640},"_Position":{"__isSmartRef__":true,"id":2641},"_Extent":{"__isSmartRef__":true,"id":2642},"_Padding":{"__isSmartRef__":true,"id":2643},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2644},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2634":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2635":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2636":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2637":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2638":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2639":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2640":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2641":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2642":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2643":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2644":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2645":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2646":{"morph":{"__isSmartRef__":true,"id":2577},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2647":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2648":{"position":{"__isSmartRef__":true,"id":2649},"_Extent":{"__isSmartRef__":true,"id":2650},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2651},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2652},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2653},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2649":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2650":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2651":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2652":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2653":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2654":{"x":247.0184710197444,"y":157.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2655":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2656},{"__isSmartRef__":true,"id":2658},{"__isSmartRef__":true,"id":2660},{"__isSmartRef__":true,"id":2662},{"__isSmartRef__":true,"id":2664},{"__isSmartRef__":true,"id":2666},{"__isSmartRef__":true,"id":2668},{"__isSmartRef__":true,"id":2670},{"__isSmartRef__":true,"id":2672},{"__isSmartRef__":true,"id":2674},{"__isSmartRef__":true,"id":2676},{"__isSmartRef__":true,"id":2678},{"__isSmartRef__":true,"id":2680},{"__isSmartRef__":true,"id":2682},{"__isSmartRef__":true,"id":2684},{"__isSmartRef__":true,"id":2686},{"__isSmartRef__":true,"id":2688},{"__isSmartRef__":true,"id":2690},{"__isSmartRef__":true,"id":2692}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2656":{"date":{"__isSmartRef__":true,"id":2657},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2657":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2658":{"date":{"__isSmartRef__":true,"id":2659},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2659":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2660":{"date":{"__isSmartRef__":true,"id":2661},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2661":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2662":{"date":{"__isSmartRef__":true,"id":2663},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2663":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2664":{"date":{"__isSmartRef__":true,"id":2665},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2665":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2666":{"date":{"__isSmartRef__":true,"id":2667},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2667":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2668":{"date":{"__isSmartRef__":true,"id":2669},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2669":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2670":{"date":{"__isSmartRef__":true,"id":2671},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2671":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2672":{"date":{"__isSmartRef__":true,"id":2673},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2673":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2674":{"date":{"__isSmartRef__":true,"id":2675},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2675":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2676":{"date":{"__isSmartRef__":true,"id":2677},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2677":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2678":{"date":{"__isSmartRef__":true,"id":2679},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2679":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2680":{"date":{"__isSmartRef__":true,"id":2681},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2681":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2682":{"date":{"__isSmartRef__":true,"id":2683},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2683":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2684":{"date":{"__isSmartRef__":true,"id":2685},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2685":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2686":{"date":{"__isSmartRef__":true,"id":2687},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2687":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2688":{"date":{"__isSmartRef__":true,"id":2689},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2689":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2690":{"date":{"__isSmartRef__":true,"id":2691},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2691":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2692":{"date":{"__isSmartRef__":true,"id":2693},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2693":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2694":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2695":{"morph":{"__isSmartRef__":true,"id":2576},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2696":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2697}},"2697":{"test01IsMorph":{"__isSmartRef__":true,"id":2698}},"2698":{"varMapping":{"__isSmartRef__":true,"id":2699},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2700},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2699":{"this":{"__isSmartRef__":true,"id":2696}},"2700":{},"2701":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2702":{"left":0,"up":1,"right":2,"down":3},"2703":{"submorphs":[{"__isSmartRef__":true,"id":2704}],"scripts":[],"id":"023880CF-D964-4614-9EF1-09FEAC9D8EEB","shape":{"__isSmartRef__":true,"id":2766},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2772},"showsHalos":false,"name":"BasicGem23","partsBinMetaInfo":{"__isSmartRef__":true,"id":2773},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2812},"eventHandler":{"__isSmartRef__":true,"id":2813},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2814},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2819},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2820},"neighbours":[{"__isSmartRef__":true,"id":2576},{"__isSmartRef__":true,"id":1195},{"__isSmartRef__":true,"id":2821},{"__isSmartRef__":true,"id":3031}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":12778},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12779},"__LivelyClassName__":"lively.morphic.Box"},"2704":{"submorphs":[{"__isSmartRef__":true,"id":2705},{"__isSmartRef__":true,"id":2716},{"__isSmartRef__":true,"id":2727},{"__isSmartRef__":true,"id":2738}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2749},"derivationIds":[null],"id":"9DC98872-D8D2-47E6-9BF8-4803ED134293","renderContextTable":{"__isSmartRef__":true,"id":2763},"eventHandler":{"__isSmartRef__":true,"id":2764},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2703},"_Position":{"__isSmartRef__":true,"id":2765},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2705":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2706},"derivationIds":[null],"id":"6164C80D-E608-4E5D-9579-DB90D974B8E0","renderContextTable":{"__isSmartRef__":true,"id":2714},"eventHandler":{"__isSmartRef__":true,"id":2715},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2704},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2706":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2707},{"__isSmartRef__":true,"id":2708}],"renderContextTable":{"__isSmartRef__":true,"id":2709},"_Position":{"__isSmartRef__":true,"id":2710},"_Extent":{"__isSmartRef__":true,"id":2711},"_Padding":{"__isSmartRef__":true,"id":2712},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2713},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2707":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2708":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2709":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2710":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2711":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2712":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2713":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2714":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2715":{"morph":{"__isSmartRef__":true,"id":2705},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2716":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2717},"derivationIds":[null],"id":"BEF0DDD8-08A3-461E-ACF3-1C36D68E47FC","renderContextTable":{"__isSmartRef__":true,"id":2725},"eventHandler":{"__isSmartRef__":true,"id":2726},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2704},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2717":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2718},{"__isSmartRef__":true,"id":2719}],"renderContextTable":{"__isSmartRef__":true,"id":2720},"_Position":{"__isSmartRef__":true,"id":2721},"_Extent":{"__isSmartRef__":true,"id":2722},"_Padding":{"__isSmartRef__":true,"id":2723},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2724},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2718":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2719":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2720":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2721":{"x":15,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2722":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2723":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2724":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2725":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2726":{"morph":{"__isSmartRef__":true,"id":2716},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2727":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2728},"derivationIds":[null],"id":"6A892183-B1D6-499E-AF03-E4D1D3368616","renderContextTable":{"__isSmartRef__":true,"id":2736},"eventHandler":{"__isSmartRef__":true,"id":2737},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2704},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2728":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2729},{"__isSmartRef__":true,"id":2730}],"renderContextTable":{"__isSmartRef__":true,"id":2731},"_Position":{"__isSmartRef__":true,"id":2732},"_Extent":{"__isSmartRef__":true,"id":2733},"_Padding":{"__isSmartRef__":true,"id":2734},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2735},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2729":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2730":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2731":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2732":{"x":31,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2733":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2734":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2735":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2736":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2737":{"morph":{"__isSmartRef__":true,"id":2727},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2738":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2739},"derivationIds":[null],"id":"B0C9D6E0-7BC3-40AE-9C8C-4BDEB3DF5A6C","renderContextTable":{"__isSmartRef__":true,"id":2747},"eventHandler":{"__isSmartRef__":true,"id":2748},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2704},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2739":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2740},{"__isSmartRef__":true,"id":2741}],"renderContextTable":{"__isSmartRef__":true,"id":2742},"_Position":{"__isSmartRef__":true,"id":2743},"_Extent":{"__isSmartRef__":true,"id":2744},"_Padding":{"__isSmartRef__":true,"id":2745},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2746},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2740":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2741":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2742":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2743":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2744":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2745":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2746":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2747":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2748":{"morph":{"__isSmartRef__":true,"id":2738},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2749":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2750},{"__isSmartRef__":true,"id":2751},{"__isSmartRef__":true,"id":2752},{"__isSmartRef__":true,"id":2753},{"__isSmartRef__":true,"id":2754},{"__isSmartRef__":true,"id":2755},{"__isSmartRef__":true,"id":2756},{"__isSmartRef__":true,"id":2757}],"renderContextTable":{"__isSmartRef__":true,"id":2758},"_Position":{"__isSmartRef__":true,"id":2759},"_Extent":{"__isSmartRef__":true,"id":2760},"_Padding":{"__isSmartRef__":true,"id":2761},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2762},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2750":{"isAbsolute":true,"x":14,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2751":{"isAbsolute":true,"x":36,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2752":{"isAbsolute":true,"x":41,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2753":{"isAbsolute":true,"x":41,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2754":{"isAbsolute":true,"x":36,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2755":{"isAbsolute":true,"x":14,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2756":{"isAbsolute":true,"x":9,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2757":{"isAbsolute":true,"x":9,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2758":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2759":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2760":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2761":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2762":{"r":0.5411764705882353,"g":0.1568627450980392,"b":0.5607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2763":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2764":{"morph":{"__isSmartRef__":true,"id":2704},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2765":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2766":{"position":{"__isSmartRef__":true,"id":2767},"_Extent":{"__isSmartRef__":true,"id":2768},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2769},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2770},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2771},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2767":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2768":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2769":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2770":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2771":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2772":{"x":296.22216522369325,"y":157.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2773":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2774},{"__isSmartRef__":true,"id":2776},{"__isSmartRef__":true,"id":2778},{"__isSmartRef__":true,"id":2780},{"__isSmartRef__":true,"id":2782},{"__isSmartRef__":true,"id":2784},{"__isSmartRef__":true,"id":2786},{"__isSmartRef__":true,"id":2788},{"__isSmartRef__":true,"id":2790},{"__isSmartRef__":true,"id":2792},{"__isSmartRef__":true,"id":2794},{"__isSmartRef__":true,"id":2796},{"__isSmartRef__":true,"id":2798},{"__isSmartRef__":true,"id":2800},{"__isSmartRef__":true,"id":2802},{"__isSmartRef__":true,"id":2804},{"__isSmartRef__":true,"id":2806},{"__isSmartRef__":true,"id":2808},{"__isSmartRef__":true,"id":2810}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2774":{"date":{"__isSmartRef__":true,"id":2775},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2775":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2776":{"date":{"__isSmartRef__":true,"id":2777},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2777":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2778":{"date":{"__isSmartRef__":true,"id":2779},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2779":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2780":{"date":{"__isSmartRef__":true,"id":2781},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2781":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2782":{"date":{"__isSmartRef__":true,"id":2783},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2783":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2784":{"date":{"__isSmartRef__":true,"id":2785},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2785":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2786":{"date":{"__isSmartRef__":true,"id":2787},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2787":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2788":{"date":{"__isSmartRef__":true,"id":2789},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2789":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2790":{"date":{"__isSmartRef__":true,"id":2791},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2791":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2792":{"date":{"__isSmartRef__":true,"id":2793},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2793":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2794":{"date":{"__isSmartRef__":true,"id":2795},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2795":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2796":{"date":{"__isSmartRef__":true,"id":2797},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2797":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2798":{"date":{"__isSmartRef__":true,"id":2799},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2799":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2800":{"date":{"__isSmartRef__":true,"id":2801},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2801":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2802":{"date":{"__isSmartRef__":true,"id":2803},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2803":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2804":{"date":{"__isSmartRef__":true,"id":2805},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2805":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2806":{"date":{"__isSmartRef__":true,"id":2807},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2807":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2808":{"date":{"__isSmartRef__":true,"id":2809},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2809":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2810":{"date":{"__isSmartRef__":true,"id":2811},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2811":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2812":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2813":{"morph":{"__isSmartRef__":true,"id":2703},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2814":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2815}},"2815":{"test01IsMorph":{"__isSmartRef__":true,"id":2816}},"2816":{"varMapping":{"__isSmartRef__":true,"id":2817},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2818},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2817":{"this":{"__isSmartRef__":true,"id":2814}},"2818":{},"2819":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2820":{"left":0,"up":1,"right":2,"down":3},"2821":{"submorphs":[{"__isSmartRef__":true,"id":2822}],"scripts":[],"id":"F3CFA985-7AED-49BD-92EB-1CBDEC90C03B","shape":{"__isSmartRef__":true,"id":2884},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2890},"showsHalos":false,"name":"BasicGem24","partsBinMetaInfo":{"__isSmartRef__":true,"id":2891},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":2930},"eventHandler":{"__isSmartRef__":true,"id":2931},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":2932},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":2937},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":2938},"neighbours":[{"__isSmartRef__":true,"id":2703},{"__isSmartRef__":true,"id":1094},null,{"__isSmartRef__":true,"id":2939}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"amethyst","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12649},"__LivelyClassName__":"lively.morphic.Box"},"2822":{"submorphs":[{"__isSmartRef__":true,"id":2823},{"__isSmartRef__":true,"id":2834},{"__isSmartRef__":true,"id":2845},{"__isSmartRef__":true,"id":2856}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2867},"derivationIds":[null],"id":"1B02C918-01FA-46B7-BC8F-7A32A814C5C8","renderContextTable":{"__isSmartRef__":true,"id":2881},"eventHandler":{"__isSmartRef__":true,"id":2882},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2821},"_Position":{"__isSmartRef__":true,"id":2883},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2823":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2824},"derivationIds":[null],"id":"0CD40056-9151-4BFF-AC0A-2C0758730BE1","renderContextTable":{"__isSmartRef__":true,"id":2832},"eventHandler":{"__isSmartRef__":true,"id":2833},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2822},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2824":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2825},{"__isSmartRef__":true,"id":2826}],"renderContextTable":{"__isSmartRef__":true,"id":2827},"_Position":{"__isSmartRef__":true,"id":2828},"_Extent":{"__isSmartRef__":true,"id":2829},"_Padding":{"__isSmartRef__":true,"id":2830},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2831},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2825":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2826":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2827":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2828":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2829":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2830":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2831":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2832":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2833":{"morph":{"__isSmartRef__":true,"id":2823},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2834":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2835},"derivationIds":[null],"id":"FDA18B3E-FC04-4F36-9CD9-1753D0A1130F","renderContextTable":{"__isSmartRef__":true,"id":2843},"eventHandler":{"__isSmartRef__":true,"id":2844},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2822},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2835":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2836},{"__isSmartRef__":true,"id":2837}],"renderContextTable":{"__isSmartRef__":true,"id":2838},"_Position":{"__isSmartRef__":true,"id":2839},"_Extent":{"__isSmartRef__":true,"id":2840},"_Padding":{"__isSmartRef__":true,"id":2841},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2842},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2836":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2837":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2838":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2839":{"x":15,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2840":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2841":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2842":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2843":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2844":{"morph":{"__isSmartRef__":true,"id":2834},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2845":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2846},"derivationIds":[null],"id":"E216986E-1968-4A93-8FCF-BDACFDD23BC3","renderContextTable":{"__isSmartRef__":true,"id":2854},"eventHandler":{"__isSmartRef__":true,"id":2855},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2822},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2846":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2847},{"__isSmartRef__":true,"id":2848}],"renderContextTable":{"__isSmartRef__":true,"id":2849},"_Position":{"__isSmartRef__":true,"id":2850},"_Extent":{"__isSmartRef__":true,"id":2851},"_Padding":{"__isSmartRef__":true,"id":2852},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2853},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2847":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2848":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2849":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2850":{"x":31,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2851":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2852":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2853":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2854":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2855":{"morph":{"__isSmartRef__":true,"id":2845},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2856":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2857},"derivationIds":[null],"id":"8EC13712-85F2-40B8-BD10-D949CBB3FE22","renderContextTable":{"__isSmartRef__":true,"id":2865},"eventHandler":{"__isSmartRef__":true,"id":2866},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2822},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2857":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2858},{"__isSmartRef__":true,"id":2859}],"renderContextTable":{"__isSmartRef__":true,"id":2860},"_Position":{"__isSmartRef__":true,"id":2861},"_Extent":{"__isSmartRef__":true,"id":2862},"_Padding":{"__isSmartRef__":true,"id":2863},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2864},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2858":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2859":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2860":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2861":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2862":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2863":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2864":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2865":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2866":{"morph":{"__isSmartRef__":true,"id":2856},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2867":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2868},{"__isSmartRef__":true,"id":2869},{"__isSmartRef__":true,"id":2870},{"__isSmartRef__":true,"id":2871},{"__isSmartRef__":true,"id":2872},{"__isSmartRef__":true,"id":2873},{"__isSmartRef__":true,"id":2874},{"__isSmartRef__":true,"id":2875}],"renderContextTable":{"__isSmartRef__":true,"id":2876},"_Position":{"__isSmartRef__":true,"id":2877},"_Extent":{"__isSmartRef__":true,"id":2878},"_Padding":{"__isSmartRef__":true,"id":2879},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2880},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2868":{"isAbsolute":true,"x":14,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2869":{"isAbsolute":true,"x":36,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2870":{"isAbsolute":true,"x":41,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2871":{"isAbsolute":true,"x":41,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2872":{"isAbsolute":true,"x":36,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2873":{"isAbsolute":true,"x":14,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2874":{"isAbsolute":true,"x":9,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2875":{"isAbsolute":true,"x":9,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2876":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2877":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2878":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2879":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2880":{"r":0.5411764705882353,"g":0.1568627450980392,"b":0.5607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2881":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2882":{"morph":{"__isSmartRef__":true,"id":2822},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2883":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2884":{"position":{"__isSmartRef__":true,"id":2885},"_Extent":{"__isSmartRef__":true,"id":2886},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2887},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2888},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2889},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2885":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2886":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2887":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2888":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2889":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2890":{"x":345.42585942764214,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2891":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2892},{"__isSmartRef__":true,"id":2894},{"__isSmartRef__":true,"id":2896},{"__isSmartRef__":true,"id":2898},{"__isSmartRef__":true,"id":2900},{"__isSmartRef__":true,"id":2902},{"__isSmartRef__":true,"id":2904},{"__isSmartRef__":true,"id":2906},{"__isSmartRef__":true,"id":2908},{"__isSmartRef__":true,"id":2910},{"__isSmartRef__":true,"id":2912},{"__isSmartRef__":true,"id":2914},{"__isSmartRef__":true,"id":2916},{"__isSmartRef__":true,"id":2918},{"__isSmartRef__":true,"id":2920},{"__isSmartRef__":true,"id":2922},{"__isSmartRef__":true,"id":2924},{"__isSmartRef__":true,"id":2926},{"__isSmartRef__":true,"id":2928}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2892":{"date":{"__isSmartRef__":true,"id":2893},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2893":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2894":{"date":{"__isSmartRef__":true,"id":2895},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2895":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2896":{"date":{"__isSmartRef__":true,"id":2897},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2897":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2898":{"date":{"__isSmartRef__":true,"id":2899},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2899":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2900":{"date":{"__isSmartRef__":true,"id":2901},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2901":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2902":{"date":{"__isSmartRef__":true,"id":2903},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2903":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2904":{"date":{"__isSmartRef__":true,"id":2905},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2905":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2906":{"date":{"__isSmartRef__":true,"id":2907},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2907":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"2908":{"date":{"__isSmartRef__":true,"id":2909},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2909":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"2910":{"date":{"__isSmartRef__":true,"id":2911},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2911":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"2912":{"date":{"__isSmartRef__":true,"id":2913},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2913":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"2914":{"date":{"__isSmartRef__":true,"id":2915},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2915":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"2916":{"date":{"__isSmartRef__":true,"id":2917},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"2917":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"2918":{"date":{"__isSmartRef__":true,"id":2919},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"2919":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"2920":{"date":{"__isSmartRef__":true,"id":2921},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"2921":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"2922":{"date":{"__isSmartRef__":true,"id":2923},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"2923":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"2924":{"date":{"__isSmartRef__":true,"id":2925},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"2925":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"2926":{"date":{"__isSmartRef__":true,"id":2927},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"2927":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"2928":{"date":{"__isSmartRef__":true,"id":2929},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"2929":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"2930":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2931":{"morph":{"__isSmartRef__":true,"id":2821},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"2932":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2933}},"2933":{"test01IsMorph":{"__isSmartRef__":true,"id":2934}},"2934":{"varMapping":{"__isSmartRef__":true,"id":2935},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":2936},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"2935":{"this":{"__isSmartRef__":true,"id":2932}},"2936":{},"2937":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2938":{"left":0,"up":1,"right":2,"down":3},"2939":{"submorphs":[{"__isSmartRef__":true,"id":2940}],"scripts":[],"id":"4EEA6FCB-E91E-4986-896B-E65E6C2F740D","shape":{"__isSmartRef__":true,"id":2976},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":2982},"showsHalos":false,"name":"BasicGem32","partsBinMetaInfo":{"__isSmartRef__":true,"id":2983},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3022},"eventHandler":{"__isSmartRef__":true,"id":3023},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3024},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3029},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3030},"neighbours":[{"__isSmartRef__":true,"id":3031},{"__isSmartRef__":true,"id":2821},null,{"__isSmartRef__":true,"id":4649}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12520},"__LivelyClassName__":"lively.morphic.Box"},"2940":{"submorphs":[{"__isSmartRef__":true,"id":2941},{"__isSmartRef__":true,"id":2952}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2963},"derivationIds":[null],"id":"BE297D0C-4564-4C13-B041-B387CACA52D3","renderContextTable":{"__isSmartRef__":true,"id":2973},"eventHandler":{"__isSmartRef__":true,"id":2974},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2939},"_Position":{"__isSmartRef__":true,"id":2975},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2941":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2942},"derivationIds":[null],"id":"B0801FEB-625F-46CF-A604-513BB9FE574E","renderContextTable":{"__isSmartRef__":true,"id":2950},"eventHandler":{"__isSmartRef__":true,"id":2951},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2940},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2942":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2943},{"__isSmartRef__":true,"id":2944}],"renderContextTable":{"__isSmartRef__":true,"id":2945},"_Position":{"__isSmartRef__":true,"id":2946},"_Extent":{"__isSmartRef__":true,"id":2947},"_Padding":{"__isSmartRef__":true,"id":2948},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2949},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2943":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2944":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2945":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2946":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2947":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2948":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2949":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2950":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2951":{"morph":{"__isSmartRef__":true,"id":2941},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2952":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2953},"derivationIds":[null],"id":"5B9A8C3D-B6FA-4442-8421-27CF74F9EA0A","renderContextTable":{"__isSmartRef__":true,"id":2961},"eventHandler":{"__isSmartRef__":true,"id":2962},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2940},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2953":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2954},{"__isSmartRef__":true,"id":2955}],"renderContextTable":{"__isSmartRef__":true,"id":2956},"_Position":{"__isSmartRef__":true,"id":2957},"_Extent":{"__isSmartRef__":true,"id":2958},"_Padding":{"__isSmartRef__":true,"id":2959},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":2960},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2954":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2955":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2956":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2957":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2958":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2959":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2960":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2961":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2962":{"morph":{"__isSmartRef__":true,"id":2952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2963":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2964},{"__isSmartRef__":true,"id":2965},{"__isSmartRef__":true,"id":2966},{"__isSmartRef__":true,"id":2967}],"renderContextTable":{"__isSmartRef__":true,"id":2968},"_Position":{"__isSmartRef__":true,"id":2969},"_Extent":{"__isSmartRef__":true,"id":2970},"_Padding":{"__isSmartRef__":true,"id":2971},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":2972},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2964":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2965":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2966":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2967":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2968":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"2969":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2970":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2971":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2972":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2973":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"2974":{"morph":{"__isSmartRef__":true,"id":2940},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2975":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2976":{"position":{"__isSmartRef__":true,"id":2977},"_Extent":{"__isSmartRef__":true,"id":2978},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":2979},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":2980},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":2981},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2977":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2978":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"2979":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"2980":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"2981":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"2982":{"x":345.42585942764214,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"2983":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":2984},{"__isSmartRef__":true,"id":2986},{"__isSmartRef__":true,"id":2988},{"__isSmartRef__":true,"id":2990},{"__isSmartRef__":true,"id":2992},{"__isSmartRef__":true,"id":2994},{"__isSmartRef__":true,"id":2996},{"__isSmartRef__":true,"id":2998},{"__isSmartRef__":true,"id":3000},{"__isSmartRef__":true,"id":3002},{"__isSmartRef__":true,"id":3004},{"__isSmartRef__":true,"id":3006},{"__isSmartRef__":true,"id":3008},{"__isSmartRef__":true,"id":3010},{"__isSmartRef__":true,"id":3012},{"__isSmartRef__":true,"id":3014},{"__isSmartRef__":true,"id":3016},{"__isSmartRef__":true,"id":3018},{"__isSmartRef__":true,"id":3020}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"2984":{"date":{"__isSmartRef__":true,"id":2985},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"2985":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"2986":{"date":{"__isSmartRef__":true,"id":2987},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"2987":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"2988":{"date":{"__isSmartRef__":true,"id":2989},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"2989":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"2990":{"date":{"__isSmartRef__":true,"id":2991},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"2991":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"2992":{"date":{"__isSmartRef__":true,"id":2993},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"2993":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"2994":{"date":{"__isSmartRef__":true,"id":2995},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"2995":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"2996":{"date":{"__isSmartRef__":true,"id":2997},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"2997":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"2998":{"date":{"__isSmartRef__":true,"id":2999},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"2999":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3000":{"date":{"__isSmartRef__":true,"id":3001},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3001":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3002":{"date":{"__isSmartRef__":true,"id":3003},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3003":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3004":{"date":{"__isSmartRef__":true,"id":3005},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3005":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3006":{"date":{"__isSmartRef__":true,"id":3007},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3007":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3008":{"date":{"__isSmartRef__":true,"id":3009},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3009":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3010":{"date":{"__isSmartRef__":true,"id":3011},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3011":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3012":{"date":{"__isSmartRef__":true,"id":3013},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3013":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3014":{"date":{"__isSmartRef__":true,"id":3015},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3015":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3016":{"date":{"__isSmartRef__":true,"id":3017},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3017":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3018":{"date":{"__isSmartRef__":true,"id":3019},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3019":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3020":{"date":{"__isSmartRef__":true,"id":3021},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3021":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3022":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3023":{"morph":{"__isSmartRef__":true,"id":2939},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3024":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3025}},"3025":{"test01IsMorph":{"__isSmartRef__":true,"id":3026}},"3026":{"varMapping":{"__isSmartRef__":true,"id":3027},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3028},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3027":{"this":{"__isSmartRef__":true,"id":3024}},"3028":{},"3029":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3030":{"left":0,"up":1,"right":2,"down":3},"3031":{"submorphs":[{"__isSmartRef__":true,"id":3032}],"scripts":[],"id":"75F1C06F-9FF2-4AB1-BAE4-3EE80E8F2887","shape":{"__isSmartRef__":true,"id":3077},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3083},"showsHalos":false,"name":"BasicGem31","partsBinMetaInfo":{"__isSmartRef__":true,"id":3084},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3123},"eventHandler":{"__isSmartRef__":true,"id":3124},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3125},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3130},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3131},"neighbours":[{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":2703},{"__isSmartRef__":true,"id":2939},{"__isSmartRef__":true,"id":4517}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":12390},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12391},"__LivelyClassName__":"lively.morphic.Box"},"3032":{"submorphs":[{"__isSmartRef__":true,"id":3033},{"__isSmartRef__":true,"id":3043},{"__isSmartRef__":true,"id":3053}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3063},"derivationIds":[null],"id":"2C0A047D-9F6E-4899-8833-6970DE035590","renderContextTable":{"__isSmartRef__":true,"id":3074},"eventHandler":{"__isSmartRef__":true,"id":3075},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3031},"_Position":{"__isSmartRef__":true,"id":3076},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3033":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3034},"derivationIds":[null],"id":"22B3182F-47FC-403E-B1B2-6B06F8EED766","renderContextTable":{"__isSmartRef__":true,"id":3041},"eventHandler":{"__isSmartRef__":true,"id":3042},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3032},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3034":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3035},{"__isSmartRef__":true,"id":3036}],"renderContextTable":{"__isSmartRef__":true,"id":3037},"_Position":{"__isSmartRef__":true,"id":3038},"_Extent":{"__isSmartRef__":true,"id":3039},"_Padding":{"__isSmartRef__":true,"id":3040},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3035":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3036":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3037":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3038":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3039":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3040":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3041":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3042":{"morph":{"__isSmartRef__":true,"id":3033},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3043":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3044},"derivationIds":[null],"id":"3B52E9AF-5A4A-43D3-B9AC-75A7C16056C7","renderContextTable":{"__isSmartRef__":true,"id":3051},"eventHandler":{"__isSmartRef__":true,"id":3052},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3032},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3044":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3045},{"__isSmartRef__":true,"id":3046}],"renderContextTable":{"__isSmartRef__":true,"id":3047},"_Position":{"__isSmartRef__":true,"id":3048},"_Extent":{"__isSmartRef__":true,"id":3049},"_Padding":{"__isSmartRef__":true,"id":3050},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3045":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3046":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3047":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3048":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3049":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3050":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3051":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3052":{"morph":{"__isSmartRef__":true,"id":3043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3053":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3054},"derivationIds":[null],"id":"D7A23916-B30F-491B-A88F-7AFF275DDAE8","renderContextTable":{"__isSmartRef__":true,"id":3061},"eventHandler":{"__isSmartRef__":true,"id":3062},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3032},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3054":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3055},{"__isSmartRef__":true,"id":3056}],"renderContextTable":{"__isSmartRef__":true,"id":3057},"_Position":{"__isSmartRef__":true,"id":3058},"_Extent":{"__isSmartRef__":true,"id":3059},"_Padding":{"__isSmartRef__":true,"id":3060},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3055":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3056":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3058":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3059":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3060":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3061":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3062":{"morph":{"__isSmartRef__":true,"id":3053},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3063":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3064},{"__isSmartRef__":true,"id":3065},{"__isSmartRef__":true,"id":3066},{"__isSmartRef__":true,"id":3067},{"__isSmartRef__":true,"id":3068}],"renderContextTable":{"__isSmartRef__":true,"id":3069},"_Position":{"__isSmartRef__":true,"id":3070},"_Extent":{"__isSmartRef__":true,"id":3071},"_Padding":{"__isSmartRef__":true,"id":3072},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3073},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3064":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3065":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3066":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3067":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3068":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3069":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3070":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3071":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3072":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3073":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3074":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3075":{"morph":{"__isSmartRef__":true,"id":3032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3076":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3077":{"position":{"__isSmartRef__":true,"id":3078},"_Extent":{"__isSmartRef__":true,"id":3079},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3080},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3081},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3082},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3078":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3079":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3080":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3081":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3082":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3083":{"x":296.22216522369325,"y":208.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3084":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3085},{"__isSmartRef__":true,"id":3087},{"__isSmartRef__":true,"id":3089},{"__isSmartRef__":true,"id":3091},{"__isSmartRef__":true,"id":3093},{"__isSmartRef__":true,"id":3095},{"__isSmartRef__":true,"id":3097},{"__isSmartRef__":true,"id":3099},{"__isSmartRef__":true,"id":3101},{"__isSmartRef__":true,"id":3103},{"__isSmartRef__":true,"id":3105},{"__isSmartRef__":true,"id":3107},{"__isSmartRef__":true,"id":3109},{"__isSmartRef__":true,"id":3111},{"__isSmartRef__":true,"id":3113},{"__isSmartRef__":true,"id":3115},{"__isSmartRef__":true,"id":3117},{"__isSmartRef__":true,"id":3119},{"__isSmartRef__":true,"id":3121}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3085":{"date":{"__isSmartRef__":true,"id":3086},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3086":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3087":{"date":{"__isSmartRef__":true,"id":3088},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3088":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3089":{"date":{"__isSmartRef__":true,"id":3090},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3090":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3091":{"date":{"__isSmartRef__":true,"id":3092},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3092":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3093":{"date":{"__isSmartRef__":true,"id":3094},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3094":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3095":{"date":{"__isSmartRef__":true,"id":3096},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3096":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3097":{"date":{"__isSmartRef__":true,"id":3098},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3098":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3099":{"date":{"__isSmartRef__":true,"id":3100},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3100":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3101":{"date":{"__isSmartRef__":true,"id":3102},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3102":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3103":{"date":{"__isSmartRef__":true,"id":3104},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3104":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3105":{"date":{"__isSmartRef__":true,"id":3106},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3106":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3107":{"date":{"__isSmartRef__":true,"id":3108},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3108":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3109":{"date":{"__isSmartRef__":true,"id":3110},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3110":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3111":{"date":{"__isSmartRef__":true,"id":3112},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3112":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3113":{"date":{"__isSmartRef__":true,"id":3114},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3114":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3115":{"date":{"__isSmartRef__":true,"id":3116},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3116":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3117":{"date":{"__isSmartRef__":true,"id":3118},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3118":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3119":{"date":{"__isSmartRef__":true,"id":3120},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3120":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3121":{"date":{"__isSmartRef__":true,"id":3122},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3122":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3123":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3124":{"morph":{"__isSmartRef__":true,"id":3031},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3125":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3126}},"3126":{"test01IsMorph":{"__isSmartRef__":true,"id":3127}},"3127":{"varMapping":{"__isSmartRef__":true,"id":3128},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3129},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3128":{"this":{"__isSmartRef__":true,"id":3125}},"3129":{},"3130":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3131":{"left":0,"up":1,"right":2,"down":3},"3132":{"submorphs":[{"__isSmartRef__":true,"id":3133}],"scripts":[],"id":"F9E434FF-F39F-4907-BAB1-330D8BAED1A3","shape":{"__isSmartRef__":true,"id":3178},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3184},"showsHalos":false,"name":"BasicGem30","partsBinMetaInfo":{"__isSmartRef__":true,"id":3185},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3224},"eventHandler":{"__isSmartRef__":true,"id":3225},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3226},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3231},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3232},"neighbours":[{"__isSmartRef__":true,"id":3233},{"__isSmartRef__":true,"id":2576},{"__isSmartRef__":true,"id":3031},{"__isSmartRef__":true,"id":4416}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":12260},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12261},"__LivelyClassName__":"lively.morphic.Box"},"3133":{"submorphs":[{"__isSmartRef__":true,"id":3134},{"__isSmartRef__":true,"id":3144},{"__isSmartRef__":true,"id":3154}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3164},"derivationIds":[null],"id":"8C814074-EBE2-4396-913B-5F4E591C343C","renderContextTable":{"__isSmartRef__":true,"id":3175},"eventHandler":{"__isSmartRef__":true,"id":3176},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3132},"_Position":{"__isSmartRef__":true,"id":3177},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3134":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3135},"derivationIds":[null],"id":"BE0ECF02-278B-402E-ABF5-FB7858C4CB38","renderContextTable":{"__isSmartRef__":true,"id":3142},"eventHandler":{"__isSmartRef__":true,"id":3143},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3133},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3135":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3136},{"__isSmartRef__":true,"id":3137}],"renderContextTable":{"__isSmartRef__":true,"id":3138},"_Position":{"__isSmartRef__":true,"id":3139},"_Extent":{"__isSmartRef__":true,"id":3140},"_Padding":{"__isSmartRef__":true,"id":3141},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3136":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3137":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3138":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3139":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3140":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3141":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3142":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3143":{"morph":{"__isSmartRef__":true,"id":3134},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3144":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3145},"derivationIds":[null],"id":"FB9DED62-D716-49D0-9555-E15AC88DDE4A","renderContextTable":{"__isSmartRef__":true,"id":3152},"eventHandler":{"__isSmartRef__":true,"id":3153},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3133},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3145":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3146},{"__isSmartRef__":true,"id":3147}],"renderContextTable":{"__isSmartRef__":true,"id":3148},"_Position":{"__isSmartRef__":true,"id":3149},"_Extent":{"__isSmartRef__":true,"id":3150},"_Padding":{"__isSmartRef__":true,"id":3151},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3146":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3147":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3148":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3149":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3150":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3151":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3152":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3153":{"morph":{"__isSmartRef__":true,"id":3144},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3154":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3155},"derivationIds":[null],"id":"97E00EF2-C4A6-478E-9547-2FD03C8ACAAB","renderContextTable":{"__isSmartRef__":true,"id":3162},"eventHandler":{"__isSmartRef__":true,"id":3163},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3133},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3155":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3156},{"__isSmartRef__":true,"id":3157}],"renderContextTable":{"__isSmartRef__":true,"id":3158},"_Position":{"__isSmartRef__":true,"id":3159},"_Extent":{"__isSmartRef__":true,"id":3160},"_Padding":{"__isSmartRef__":true,"id":3161},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3156":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3157":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3158":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3159":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3160":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3161":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3162":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3163":{"morph":{"__isSmartRef__":true,"id":3154},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3164":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3165},{"__isSmartRef__":true,"id":3166},{"__isSmartRef__":true,"id":3167},{"__isSmartRef__":true,"id":3168},{"__isSmartRef__":true,"id":3169}],"renderContextTable":{"__isSmartRef__":true,"id":3170},"_Position":{"__isSmartRef__":true,"id":3171},"_Extent":{"__isSmartRef__":true,"id":3172},"_Padding":{"__isSmartRef__":true,"id":3173},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3174},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3165":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3166":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3167":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3168":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3169":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3170":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3171":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3172":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3173":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3174":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3175":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3176":{"morph":{"__isSmartRef__":true,"id":3133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3177":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3178":{"position":{"__isSmartRef__":true,"id":3179},"_Extent":{"__isSmartRef__":true,"id":3180},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3181},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3182},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3183},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3180":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3181":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3182":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3183":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3184":{"x":247.0184710197444,"y":208.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3185":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3186},{"__isSmartRef__":true,"id":3188},{"__isSmartRef__":true,"id":3190},{"__isSmartRef__":true,"id":3192},{"__isSmartRef__":true,"id":3194},{"__isSmartRef__":true,"id":3196},{"__isSmartRef__":true,"id":3198},{"__isSmartRef__":true,"id":3200},{"__isSmartRef__":true,"id":3202},{"__isSmartRef__":true,"id":3204},{"__isSmartRef__":true,"id":3206},{"__isSmartRef__":true,"id":3208},{"__isSmartRef__":true,"id":3210},{"__isSmartRef__":true,"id":3212},{"__isSmartRef__":true,"id":3214},{"__isSmartRef__":true,"id":3216},{"__isSmartRef__":true,"id":3218},{"__isSmartRef__":true,"id":3220},{"__isSmartRef__":true,"id":3222}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3186":{"date":{"__isSmartRef__":true,"id":3187},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3187":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3188":{"date":{"__isSmartRef__":true,"id":3189},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3189":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3190":{"date":{"__isSmartRef__":true,"id":3191},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3191":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3192":{"date":{"__isSmartRef__":true,"id":3193},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3193":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3194":{"date":{"__isSmartRef__":true,"id":3195},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3195":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3196":{"date":{"__isSmartRef__":true,"id":3197},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3197":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3198":{"date":{"__isSmartRef__":true,"id":3199},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3199":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3200":{"date":{"__isSmartRef__":true,"id":3201},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3201":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3202":{"date":{"__isSmartRef__":true,"id":3203},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3203":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3204":{"date":{"__isSmartRef__":true,"id":3205},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3205":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3206":{"date":{"__isSmartRef__":true,"id":3207},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3207":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3208":{"date":{"__isSmartRef__":true,"id":3209},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3209":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3210":{"date":{"__isSmartRef__":true,"id":3211},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3211":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3212":{"date":{"__isSmartRef__":true,"id":3213},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3213":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3214":{"date":{"__isSmartRef__":true,"id":3215},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3215":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3216":{"date":{"__isSmartRef__":true,"id":3217},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3217":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3218":{"date":{"__isSmartRef__":true,"id":3219},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3219":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3220":{"date":{"__isSmartRef__":true,"id":3221},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3221":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3222":{"date":{"__isSmartRef__":true,"id":3223},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3223":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3224":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3225":{"morph":{"__isSmartRef__":true,"id":3132},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3226":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3227}},"3227":{"test01IsMorph":{"__isSmartRef__":true,"id":3228}},"3228":{"varMapping":{"__isSmartRef__":true,"id":3229},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3230},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3229":{"this":{"__isSmartRef__":true,"id":3226}},"3230":{},"3231":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3232":{"left":0,"up":1,"right":2,"down":3},"3233":{"submorphs":[{"__isSmartRef__":true,"id":3234}],"scripts":[],"id":"A3E2F52A-956D-43CE-A6EB-4428063038AD","shape":{"__isSmartRef__":true,"id":3305},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3311},"showsHalos":false,"name":"BasicGem29","partsBinMetaInfo":{"__isSmartRef__":true,"id":3312},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3351},"eventHandler":{"__isSmartRef__":true,"id":3352},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3353},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3358},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3359},"neighbours":[{"__isSmartRef__":true,"id":3360},{"__isSmartRef__":true,"id":2484},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":4298}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"zircon","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":12130},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12131},"__LivelyClassName__":"lively.morphic.Box"},"3234":{"submorphs":[{"__isSmartRef__":true,"id":3235},{"__isSmartRef__":true,"id":3246},{"__isSmartRef__":true,"id":3257},{"__isSmartRef__":true,"id":3268},{"__isSmartRef__":true,"id":3279}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3290},"derivationIds":[null],"id":"AE720A14-4F61-45AA-9D42-3F73D7D91634","renderContextTable":{"__isSmartRef__":true,"id":3302},"eventHandler":{"__isSmartRef__":true,"id":3303},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3233},"_Position":{"__isSmartRef__":true,"id":3304},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3235":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3236},"derivationIds":[null],"id":"28B87B3E-A439-42E1-8310-E48241620028","renderContextTable":{"__isSmartRef__":true,"id":3244},"eventHandler":{"__isSmartRef__":true,"id":3245},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3236":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3237},{"__isSmartRef__":true,"id":3238}],"renderContextTable":{"__isSmartRef__":true,"id":3239},"_Position":{"__isSmartRef__":true,"id":3240},"_Extent":{"__isSmartRef__":true,"id":3241},"_Padding":{"__isSmartRef__":true,"id":3242},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3243},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3237":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3238":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3239":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3240":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3241":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3242":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3243":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3244":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3245":{"morph":{"__isSmartRef__":true,"id":3235},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3246":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3247},"derivationIds":[null],"id":"6C511B80-505F-496C-A249-29014D3AE454","renderContextTable":{"__isSmartRef__":true,"id":3255},"eventHandler":{"__isSmartRef__":true,"id":3256},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3247":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3248},{"__isSmartRef__":true,"id":3249}],"renderContextTable":{"__isSmartRef__":true,"id":3250},"_Position":{"__isSmartRef__":true,"id":3251},"_Extent":{"__isSmartRef__":true,"id":3252},"_Padding":{"__isSmartRef__":true,"id":3253},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3254},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3248":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3249":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3250":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3251":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3252":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3253":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3254":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3255":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3256":{"morph":{"__isSmartRef__":true,"id":3246},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3257":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3258},"derivationIds":[null],"id":"C841A92C-0D54-4C84-9F7C-79A7CDAB78C4","renderContextTable":{"__isSmartRef__":true,"id":3266},"eventHandler":{"__isSmartRef__":true,"id":3267},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3258":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3259},{"__isSmartRef__":true,"id":3260}],"renderContextTable":{"__isSmartRef__":true,"id":3261},"_Position":{"__isSmartRef__":true,"id":3262},"_Extent":{"__isSmartRef__":true,"id":3263},"_Padding":{"__isSmartRef__":true,"id":3264},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3265},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3259":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3260":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3261":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3262":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3263":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3264":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3265":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3266":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3267":{"morph":{"__isSmartRef__":true,"id":3257},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3268":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3269},"derivationIds":[null],"id":"EB129545-3AB0-4651-A2C4-AC71CAD130F7","renderContextTable":{"__isSmartRef__":true,"id":3277},"eventHandler":{"__isSmartRef__":true,"id":3278},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3269":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3270},{"__isSmartRef__":true,"id":3271}],"renderContextTable":{"__isSmartRef__":true,"id":3272},"_Position":{"__isSmartRef__":true,"id":3273},"_Extent":{"__isSmartRef__":true,"id":3274},"_Padding":{"__isSmartRef__":true,"id":3275},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3276},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3270":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3271":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3272":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3273":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3274":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3276":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3277":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3278":{"morph":{"__isSmartRef__":true,"id":3268},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3279":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3280},"derivationIds":[null],"id":"5FAD8234-59DC-4781-9EDC-BD1B2C0EA14E","renderContextTable":{"__isSmartRef__":true,"id":3288},"eventHandler":{"__isSmartRef__":true,"id":3289},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3280":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3281},{"__isSmartRef__":true,"id":3282}],"renderContextTable":{"__isSmartRef__":true,"id":3283},"_Position":{"__isSmartRef__":true,"id":3284},"_Extent":{"__isSmartRef__":true,"id":3285},"_Padding":{"__isSmartRef__":true,"id":3286},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3287},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3281":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3282":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3283":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3284":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3285":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3286":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3287":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3288":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3289":{"morph":{"__isSmartRef__":true,"id":3279},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3290":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3291},{"__isSmartRef__":true,"id":3292},{"__isSmartRef__":true,"id":3293},{"__isSmartRef__":true,"id":3294},{"__isSmartRef__":true,"id":3295},{"__isSmartRef__":true,"id":3296}],"renderContextTable":{"__isSmartRef__":true,"id":3297},"_Position":{"__isSmartRef__":true,"id":3298},"_Extent":{"__isSmartRef__":true,"id":3299},"_Padding":{"__isSmartRef__":true,"id":3300},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3301},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3291":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3292":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3293":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3294":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3295":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3296":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3298":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3299":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3300":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3301":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3302":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3303":{"morph":{"__isSmartRef__":true,"id":3234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3304":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3305":{"position":{"__isSmartRef__":true,"id":3306},"_Extent":{"__isSmartRef__":true,"id":3307},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3308},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3309},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3310},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3306":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3307":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3308":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3309":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3310":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3311":{"x":197.8147768157955,"y":208.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3312":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3313},{"__isSmartRef__":true,"id":3315},{"__isSmartRef__":true,"id":3317},{"__isSmartRef__":true,"id":3319},{"__isSmartRef__":true,"id":3321},{"__isSmartRef__":true,"id":3323},{"__isSmartRef__":true,"id":3325},{"__isSmartRef__":true,"id":3327},{"__isSmartRef__":true,"id":3329},{"__isSmartRef__":true,"id":3331},{"__isSmartRef__":true,"id":3333},{"__isSmartRef__":true,"id":3335},{"__isSmartRef__":true,"id":3337},{"__isSmartRef__":true,"id":3339},{"__isSmartRef__":true,"id":3341},{"__isSmartRef__":true,"id":3343},{"__isSmartRef__":true,"id":3345},{"__isSmartRef__":true,"id":3347},{"__isSmartRef__":true,"id":3349}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3313":{"date":{"__isSmartRef__":true,"id":3314},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3314":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3315":{"date":{"__isSmartRef__":true,"id":3316},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3316":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3317":{"date":{"__isSmartRef__":true,"id":3318},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3318":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3319":{"date":{"__isSmartRef__":true,"id":3320},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3320":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3321":{"date":{"__isSmartRef__":true,"id":3322},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3322":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3323":{"date":{"__isSmartRef__":true,"id":3324},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3324":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3325":{"date":{"__isSmartRef__":true,"id":3326},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3326":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3327":{"date":{"__isSmartRef__":true,"id":3328},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3328":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3329":{"date":{"__isSmartRef__":true,"id":3330},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3330":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3331":{"date":{"__isSmartRef__":true,"id":3332},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3332":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3333":{"date":{"__isSmartRef__":true,"id":3334},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3334":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3335":{"date":{"__isSmartRef__":true,"id":3336},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3336":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3337":{"date":{"__isSmartRef__":true,"id":3338},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3338":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3339":{"date":{"__isSmartRef__":true,"id":3340},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3340":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3341":{"date":{"__isSmartRef__":true,"id":3342},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3342":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3343":{"date":{"__isSmartRef__":true,"id":3344},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3344":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3345":{"date":{"__isSmartRef__":true,"id":3346},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3346":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3347":{"date":{"__isSmartRef__":true,"id":3348},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3348":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3349":{"date":{"__isSmartRef__":true,"id":3350},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3350":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3351":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3352":{"morph":{"__isSmartRef__":true,"id":3233},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3353":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3354}},"3354":{"test01IsMorph":{"__isSmartRef__":true,"id":3355}},"3355":{"varMapping":{"__isSmartRef__":true,"id":3356},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3356":{"this":{"__isSmartRef__":true,"id":3353}},"3357":{},"3358":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3359":{"left":0,"up":1,"right":2,"down":3},"3360":{"submorphs":[{"__isSmartRef__":true,"id":3361}],"scripts":[],"id":"72112525-D744-4465-AE01-FEA47492E4F3","shape":{"__isSmartRef__":true,"id":3432},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3438},"showsHalos":false,"name":"BasicGem28","partsBinMetaInfo":{"__isSmartRef__":true,"id":3439},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3478},"eventHandler":{"__isSmartRef__":true,"id":3479},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3480},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3485},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3486},"neighbours":[{"__isSmartRef__":true,"id":3487},{"__isSmartRef__":true,"id":2357},{"__isSmartRef__":true,"id":3233},{"__isSmartRef__":true,"id":4166}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":12000},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12001},"__LivelyClassName__":"lively.morphic.Box"},"3361":{"submorphs":[{"__isSmartRef__":true,"id":3362},{"__isSmartRef__":true,"id":3373},{"__isSmartRef__":true,"id":3384},{"__isSmartRef__":true,"id":3395},{"__isSmartRef__":true,"id":3406}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3417},"derivationIds":[null],"id":"2A4C6E93-C418-4131-B40A-2E7BEA258BFD","renderContextTable":{"__isSmartRef__":true,"id":3429},"eventHandler":{"__isSmartRef__":true,"id":3430},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3360},"_Position":{"__isSmartRef__":true,"id":3431},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3362":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3363},"derivationIds":[null],"id":"5F119D57-8B98-4B81-8DC9-662C08B5B6C9","renderContextTable":{"__isSmartRef__":true,"id":3371},"eventHandler":{"__isSmartRef__":true,"id":3372},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3363":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3364},{"__isSmartRef__":true,"id":3365}],"renderContextTable":{"__isSmartRef__":true,"id":3366},"_Position":{"__isSmartRef__":true,"id":3367},"_Extent":{"__isSmartRef__":true,"id":3368},"_Padding":{"__isSmartRef__":true,"id":3369},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3370},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3364":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3365":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3366":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3367":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3368":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3369":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3370":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3371":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3372":{"morph":{"__isSmartRef__":true,"id":3362},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3373":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3374},"derivationIds":[null],"id":"12ECE4B6-7D17-4BE3-A960-9C6B7AF89DFC","renderContextTable":{"__isSmartRef__":true,"id":3382},"eventHandler":{"__isSmartRef__":true,"id":3383},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3374":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3375},{"__isSmartRef__":true,"id":3376}],"renderContextTable":{"__isSmartRef__":true,"id":3377},"_Position":{"__isSmartRef__":true,"id":3378},"_Extent":{"__isSmartRef__":true,"id":3379},"_Padding":{"__isSmartRef__":true,"id":3380},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3381},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3375":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3376":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3377":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3378":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3379":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3380":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3381":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3382":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3383":{"morph":{"__isSmartRef__":true,"id":3373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3384":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3385},"derivationIds":[null],"id":"5C9E4329-8359-4B4D-8ACA-783FBD44A9A4","renderContextTable":{"__isSmartRef__":true,"id":3393},"eventHandler":{"__isSmartRef__":true,"id":3394},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3385":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3386},{"__isSmartRef__":true,"id":3387}],"renderContextTable":{"__isSmartRef__":true,"id":3388},"_Position":{"__isSmartRef__":true,"id":3389},"_Extent":{"__isSmartRef__":true,"id":3390},"_Padding":{"__isSmartRef__":true,"id":3391},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3392},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3386":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3387":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3388":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3389":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3390":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3391":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3392":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3393":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3394":{"morph":{"__isSmartRef__":true,"id":3384},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3395":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3396},"derivationIds":[null],"id":"44C6356E-A64F-4CC9-9DA1-E96F99D32859","renderContextTable":{"__isSmartRef__":true,"id":3404},"eventHandler":{"__isSmartRef__":true,"id":3405},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3396":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3397},{"__isSmartRef__":true,"id":3398}],"renderContextTable":{"__isSmartRef__":true,"id":3399},"_Position":{"__isSmartRef__":true,"id":3400},"_Extent":{"__isSmartRef__":true,"id":3401},"_Padding":{"__isSmartRef__":true,"id":3402},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3403},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3397":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3398":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3399":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3400":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3401":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3402":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3403":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3404":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3405":{"morph":{"__isSmartRef__":true,"id":3395},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3406":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3407},"derivationIds":[null],"id":"5A118B16-9C6D-4910-BE97-444C37E29D3C","renderContextTable":{"__isSmartRef__":true,"id":3415},"eventHandler":{"__isSmartRef__":true,"id":3416},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3407":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3408},{"__isSmartRef__":true,"id":3409}],"renderContextTable":{"__isSmartRef__":true,"id":3410},"_Position":{"__isSmartRef__":true,"id":3411},"_Extent":{"__isSmartRef__":true,"id":3412},"_Padding":{"__isSmartRef__":true,"id":3413},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3414},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3408":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3409":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3410":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3411":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3412":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3413":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3414":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3415":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3416":{"morph":{"__isSmartRef__":true,"id":3406},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3417":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3418},{"__isSmartRef__":true,"id":3419},{"__isSmartRef__":true,"id":3420},{"__isSmartRef__":true,"id":3421},{"__isSmartRef__":true,"id":3422},{"__isSmartRef__":true,"id":3423}],"renderContextTable":{"__isSmartRef__":true,"id":3424},"_Position":{"__isSmartRef__":true,"id":3425},"_Extent":{"__isSmartRef__":true,"id":3426},"_Padding":{"__isSmartRef__":true,"id":3427},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3428},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3418":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3419":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3420":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3421":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3422":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3423":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3424":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3425":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3426":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3427":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3428":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3429":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3430":{"morph":{"__isSmartRef__":true,"id":3361},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3431":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3432":{"position":{"__isSmartRef__":true,"id":3433},"_Extent":{"__isSmartRef__":true,"id":3434},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3435},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3436},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3437},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3433":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3434":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3435":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3436":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3437":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3438":{"x":148.61108261184663,"y":208.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3439":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3440},{"__isSmartRef__":true,"id":3442},{"__isSmartRef__":true,"id":3444},{"__isSmartRef__":true,"id":3446},{"__isSmartRef__":true,"id":3448},{"__isSmartRef__":true,"id":3450},{"__isSmartRef__":true,"id":3452},{"__isSmartRef__":true,"id":3454},{"__isSmartRef__":true,"id":3456},{"__isSmartRef__":true,"id":3458},{"__isSmartRef__":true,"id":3460},{"__isSmartRef__":true,"id":3462},{"__isSmartRef__":true,"id":3464},{"__isSmartRef__":true,"id":3466},{"__isSmartRef__":true,"id":3468},{"__isSmartRef__":true,"id":3470},{"__isSmartRef__":true,"id":3472},{"__isSmartRef__":true,"id":3474},{"__isSmartRef__":true,"id":3476}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3440":{"date":{"__isSmartRef__":true,"id":3441},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3441":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3442":{"date":{"__isSmartRef__":true,"id":3443},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3443":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3444":{"date":{"__isSmartRef__":true,"id":3445},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3445":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3446":{"date":{"__isSmartRef__":true,"id":3447},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3447":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3448":{"date":{"__isSmartRef__":true,"id":3449},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3449":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3450":{"date":{"__isSmartRef__":true,"id":3451},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3451":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3452":{"date":{"__isSmartRef__":true,"id":3453},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3453":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3454":{"date":{"__isSmartRef__":true,"id":3455},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3455":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3456":{"date":{"__isSmartRef__":true,"id":3457},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3457":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3458":{"date":{"__isSmartRef__":true,"id":3459},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3459":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3460":{"date":{"__isSmartRef__":true,"id":3461},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3461":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3462":{"date":{"__isSmartRef__":true,"id":3463},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3463":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3464":{"date":{"__isSmartRef__":true,"id":3465},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3465":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3466":{"date":{"__isSmartRef__":true,"id":3467},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3467":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3468":{"date":{"__isSmartRef__":true,"id":3469},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3469":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3470":{"date":{"__isSmartRef__":true,"id":3471},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3471":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3472":{"date":{"__isSmartRef__":true,"id":3473},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3473":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3474":{"date":{"__isSmartRef__":true,"id":3475},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3475":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3476":{"date":{"__isSmartRef__":true,"id":3477},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3477":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3478":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3479":{"morph":{"__isSmartRef__":true,"id":3360},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3480":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3481}},"3481":{"test01IsMorph":{"__isSmartRef__":true,"id":3482}},"3482":{"varMapping":{"__isSmartRef__":true,"id":3483},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3483":{"this":{"__isSmartRef__":true,"id":3480}},"3484":{},"3485":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3486":{"left":0,"up":1,"right":2,"down":3},"3487":{"submorphs":[{"__isSmartRef__":true,"id":3488}],"scripts":[],"id":"8B0BE253-2DBA-4B74-8BC3-9BF084FAEF62","shape":{"__isSmartRef__":true,"id":3564},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3570},"showsHalos":false,"name":"BasicGem27","partsBinMetaInfo":{"__isSmartRef__":true,"id":3571},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3610},"eventHandler":{"__isSmartRef__":true,"id":3611},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3612},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3617},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3618},"neighbours":[{"__isSmartRef__":true,"id":3619},{"__isSmartRef__":true,"id":2239},{"__isSmartRef__":true,"id":3360},{"__isSmartRef__":true,"id":4074}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11871},"__LivelyClassName__":"lively.morphic.Box"},"3488":{"submorphs":[{"__isSmartRef__":true,"id":3489},{"__isSmartRef__":true,"id":3499},{"__isSmartRef__":true,"id":3509},{"__isSmartRef__":true,"id":3519},{"__isSmartRef__":true,"id":3529},{"__isSmartRef__":true,"id":3539}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3549},"derivationIds":[null],"id":"F43087A3-177D-4E03-8FE7-343795B6BEBD","renderContextTable":{"__isSmartRef__":true,"id":3561},"eventHandler":{"__isSmartRef__":true,"id":3562},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3487},"_Position":{"__isSmartRef__":true,"id":3563},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3489":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3490},"derivationIds":[null],"id":"D0D0727F-DF25-41D6-AC43-490C8CDD9D4D","renderContextTable":{"__isSmartRef__":true,"id":3497},"eventHandler":{"__isSmartRef__":true,"id":3498},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3490":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3491},{"__isSmartRef__":true,"id":3492}],"renderContextTable":{"__isSmartRef__":true,"id":3493},"_Position":{"__isSmartRef__":true,"id":3494},"_Extent":{"__isSmartRef__":true,"id":3495},"_Padding":{"__isSmartRef__":true,"id":3496},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3491":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3492":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3493":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3494":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3495":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3496":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3497":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3498":{"morph":{"__isSmartRef__":true,"id":3489},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3499":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3500},"derivationIds":[null],"id":"C3B70189-2B90-499F-A272-BBEC31898FD5","renderContextTable":{"__isSmartRef__":true,"id":3507},"eventHandler":{"__isSmartRef__":true,"id":3508},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3500":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3501},{"__isSmartRef__":true,"id":3502}],"renderContextTable":{"__isSmartRef__":true,"id":3503},"_Position":{"__isSmartRef__":true,"id":3504},"_Extent":{"__isSmartRef__":true,"id":3505},"_Padding":{"__isSmartRef__":true,"id":3506},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3501":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3502":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3503":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3504":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3505":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3506":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3507":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3508":{"morph":{"__isSmartRef__":true,"id":3499},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3509":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3510},"derivationIds":[null],"id":"323C54E9-0CE3-4A22-A2AF-D973A053003A","renderContextTable":{"__isSmartRef__":true,"id":3517},"eventHandler":{"__isSmartRef__":true,"id":3518},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3510":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3511},{"__isSmartRef__":true,"id":3512}],"renderContextTable":{"__isSmartRef__":true,"id":3513},"_Position":{"__isSmartRef__":true,"id":3514},"_Extent":{"__isSmartRef__":true,"id":3515},"_Padding":{"__isSmartRef__":true,"id":3516},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3511":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3512":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3513":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3514":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3515":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3516":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3517":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3518":{"morph":{"__isSmartRef__":true,"id":3509},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3519":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3520},"derivationIds":[null],"id":"A0ACF18E-48C9-4067-80AF-3C15703E24C6","renderContextTable":{"__isSmartRef__":true,"id":3527},"eventHandler":{"__isSmartRef__":true,"id":3528},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3520":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3521},{"__isSmartRef__":true,"id":3522}],"renderContextTable":{"__isSmartRef__":true,"id":3523},"_Position":{"__isSmartRef__":true,"id":3524},"_Extent":{"__isSmartRef__":true,"id":3525},"_Padding":{"__isSmartRef__":true,"id":3526},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3521":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3522":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3523":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3524":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3525":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3526":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3527":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3528":{"morph":{"__isSmartRef__":true,"id":3519},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3529":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3530},"derivationIds":[null],"id":"812281C9-A716-46A6-BEB9-03F8F7EB0448","renderContextTable":{"__isSmartRef__":true,"id":3537},"eventHandler":{"__isSmartRef__":true,"id":3538},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3530":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3531},{"__isSmartRef__":true,"id":3532}],"renderContextTable":{"__isSmartRef__":true,"id":3533},"_Position":{"__isSmartRef__":true,"id":3534},"_Extent":{"__isSmartRef__":true,"id":3535},"_Padding":{"__isSmartRef__":true,"id":3536},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3531":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3532":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3533":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3534":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3535":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3538":{"morph":{"__isSmartRef__":true,"id":3529},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3539":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3540},"derivationIds":[null],"id":"89ED931A-4788-4031-ADAE-3EFC48A1B79F","renderContextTable":{"__isSmartRef__":true,"id":3547},"eventHandler":{"__isSmartRef__":true,"id":3548},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3488},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3540":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3541},{"__isSmartRef__":true,"id":3542}],"renderContextTable":{"__isSmartRef__":true,"id":3543},"_Position":{"__isSmartRef__":true,"id":3544},"_Extent":{"__isSmartRef__":true,"id":3545},"_Padding":{"__isSmartRef__":true,"id":3546},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3541":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3542":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3543":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3544":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3545":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3546":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3547":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3548":{"morph":{"__isSmartRef__":true,"id":3539},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3549":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3550},{"__isSmartRef__":true,"id":3551},{"__isSmartRef__":true,"id":3552},{"__isSmartRef__":true,"id":3553},{"__isSmartRef__":true,"id":3554},{"__isSmartRef__":true,"id":3555}],"renderContextTable":{"__isSmartRef__":true,"id":3556},"_Position":{"__isSmartRef__":true,"id":3557},"_Extent":{"__isSmartRef__":true,"id":3558},"_Padding":{"__isSmartRef__":true,"id":3559},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3560},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3550":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3551":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3552":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3553":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3554":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3555":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3557":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3558":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3559":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3560":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3561":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3562":{"morph":{"__isSmartRef__":true,"id":3488},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3563":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3564":{"position":{"__isSmartRef__":true,"id":3565},"_Extent":{"__isSmartRef__":true,"id":3566},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3567},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3568},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3569},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3565":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3566":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3567":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3568":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3569":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3570":{"x":99.40738840789776,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3571":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3572},{"__isSmartRef__":true,"id":3574},{"__isSmartRef__":true,"id":3576},{"__isSmartRef__":true,"id":3578},{"__isSmartRef__":true,"id":3580},{"__isSmartRef__":true,"id":3582},{"__isSmartRef__":true,"id":3584},{"__isSmartRef__":true,"id":3586},{"__isSmartRef__":true,"id":3588},{"__isSmartRef__":true,"id":3590},{"__isSmartRef__":true,"id":3592},{"__isSmartRef__":true,"id":3594},{"__isSmartRef__":true,"id":3596},{"__isSmartRef__":true,"id":3598},{"__isSmartRef__":true,"id":3600},{"__isSmartRef__":true,"id":3602},{"__isSmartRef__":true,"id":3604},{"__isSmartRef__":true,"id":3606},{"__isSmartRef__":true,"id":3608}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3572":{"date":{"__isSmartRef__":true,"id":3573},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3573":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3574":{"date":{"__isSmartRef__":true,"id":3575},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3575":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3576":{"date":{"__isSmartRef__":true,"id":3577},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3577":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3578":{"date":{"__isSmartRef__":true,"id":3579},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3579":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3580":{"date":{"__isSmartRef__":true,"id":3581},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3581":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3582":{"date":{"__isSmartRef__":true,"id":3583},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3583":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3584":{"date":{"__isSmartRef__":true,"id":3585},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3585":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3586":{"date":{"__isSmartRef__":true,"id":3587},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3587":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3588":{"date":{"__isSmartRef__":true,"id":3589},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3589":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3590":{"date":{"__isSmartRef__":true,"id":3591},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3591":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3592":{"date":{"__isSmartRef__":true,"id":3593},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3593":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3594":{"date":{"__isSmartRef__":true,"id":3595},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3595":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3596":{"date":{"__isSmartRef__":true,"id":3597},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3597":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3598":{"date":{"__isSmartRef__":true,"id":3599},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3599":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3600":{"date":{"__isSmartRef__":true,"id":3601},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3601":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3602":{"date":{"__isSmartRef__":true,"id":3603},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3603":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3604":{"date":{"__isSmartRef__":true,"id":3605},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3605":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3606":{"date":{"__isSmartRef__":true,"id":3607},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3607":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3608":{"date":{"__isSmartRef__":true,"id":3609},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3609":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3610":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3611":{"morph":{"__isSmartRef__":true,"id":3487},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3612":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3613}},"3613":{"test01IsMorph":{"__isSmartRef__":true,"id":3614}},"3614":{"varMapping":{"__isSmartRef__":true,"id":3615},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3616},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3615":{"this":{"__isSmartRef__":true,"id":3612}},"3616":{},"3617":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3618":{"left":0,"up":1,"right":2,"down":3},"3619":{"submorphs":[{"__isSmartRef__":true,"id":3620}],"scripts":[],"id":"C06FD389-7760-4099-A598-70882C401051","shape":{"__isSmartRef__":true,"id":3699},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3705},"showsHalos":false,"name":"BasicGem26","partsBinMetaInfo":{"__isSmartRef__":true,"id":3706},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3745},"eventHandler":{"__isSmartRef__":true,"id":3746},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3747},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3752},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3753},"neighbours":[{"__isSmartRef__":true,"id":3754},{"__isSmartRef__":true,"id":2147},{"__isSmartRef__":true,"id":3487},{"__isSmartRef__":true,"id":3973}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"blueDiamond","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11742},"__LivelyClassName__":"lively.morphic.Box"},"3620":{"submorphs":[{"__isSmartRef__":true,"id":3621},{"__isSmartRef__":true,"id":3632},{"__isSmartRef__":true,"id":3643},{"__isSmartRef__":true,"id":3654},{"__isSmartRef__":true,"id":3665},{"__isSmartRef__":true,"id":3676}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3687},"derivationIds":[null],"id":"57D94ADC-E63F-4DB0-8AA2-E47B75C98436","renderContextTable":{"__isSmartRef__":true,"id":3696},"eventHandler":{"__isSmartRef__":true,"id":3697},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3619},"_Position":{"__isSmartRef__":true,"id":3698},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3621":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3622},"derivationIds":[null],"id":"B18C7A62-E091-49A3-99E1-90216F36F861","renderContextTable":{"__isSmartRef__":true,"id":3630},"eventHandler":{"__isSmartRef__":true,"id":3631},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3622":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3623},{"__isSmartRef__":true,"id":3624}],"renderContextTable":{"__isSmartRef__":true,"id":3625},"_Position":{"__isSmartRef__":true,"id":3626},"_Extent":{"__isSmartRef__":true,"id":3627},"_Padding":{"__isSmartRef__":true,"id":3628},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3629},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3623":{"isAbsolute":true,"x":25,"y":11,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3624":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3625":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3626":{"x":23,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3627":{"x":3,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3628":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3629":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3630":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3631":{"morph":{"__isSmartRef__":true,"id":3621},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3632":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3633},"derivationIds":[null],"id":"51519BB2-E365-475A-BAA3-8690DA8DC295","renderContextTable":{"__isSmartRef__":true,"id":3641},"eventHandler":{"__isSmartRef__":true,"id":3642},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3633":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3634},{"__isSmartRef__":true,"id":3635}],"renderContextTable":{"__isSmartRef__":true,"id":3636},"_Position":{"__isSmartRef__":true,"id":3637},"_Extent":{"__isSmartRef__":true,"id":3638},"_Padding":{"__isSmartRef__":true,"id":3639},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3640},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3634":{"isAbsolute":true,"x":11,"y":39,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3635":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3636":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3637":{"x":9,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3638":{"x":12,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3639":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3640":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3641":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3642":{"morph":{"__isSmartRef__":true,"id":3632},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3643":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3644},"derivationIds":[null],"id":"B9CCBB09-49B3-46FE-9AEA-EC94D1CE78AE","renderContextTable":{"__isSmartRef__":true,"id":3652},"eventHandler":{"__isSmartRef__":true,"id":3653},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3644":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3645},{"__isSmartRef__":true,"id":3646}],"renderContextTable":{"__isSmartRef__":true,"id":3647},"_Position":{"__isSmartRef__":true,"id":3648},"_Extent":{"__isSmartRef__":true,"id":3649},"_Padding":{"__isSmartRef__":true,"id":3650},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3651},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3645":{"isAbsolute":true,"x":39,"y":39,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3646":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3647":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3648":{"x":28,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3649":{"x":12,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3650":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3651":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3652":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3653":{"morph":{"__isSmartRef__":true,"id":3643},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3654":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3655},"derivationIds":[null],"id":"8923E925-EDA4-4097-A791-2E18838B3609","renderContextTable":{"__isSmartRef__":true,"id":3663},"eventHandler":{"__isSmartRef__":true,"id":3664},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3655":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3656},{"__isSmartRef__":true,"id":3657}],"renderContextTable":{"__isSmartRef__":true,"id":3658},"_Position":{"__isSmartRef__":true,"id":3659},"_Extent":{"__isSmartRef__":true,"id":3660},"_Padding":{"__isSmartRef__":true,"id":3661},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3662},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3656":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3657":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3658":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3659":{"x":18,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3660":{"x":13,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3661":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3662":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3663":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3664":{"morph":{"__isSmartRef__":true,"id":3654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3665":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3666},"derivationIds":[null],"id":"A81A8A06-5AC9-4D54-874B-E085C80B1505","renderContextTable":{"__isSmartRef__":true,"id":3674},"eventHandler":{"__isSmartRef__":true,"id":3675},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3666":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3667},{"__isSmartRef__":true,"id":3668}],"renderContextTable":{"__isSmartRef__":true,"id":3669},"_Position":{"__isSmartRef__":true,"id":3670},"_Extent":{"__isSmartRef__":true,"id":3671},"_Padding":{"__isSmartRef__":true,"id":3672},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3673},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3667":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3668":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3669":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3670":{"x":18,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3671":{"x":8,"y":13,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3672":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3673":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3674":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3675":{"morph":{"__isSmartRef__":true,"id":3665},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3676":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3677},"derivationIds":[null],"id":"30CA179E-B837-44BC-8DE1-746375A40CB4","renderContextTable":{"__isSmartRef__":true,"id":3685},"eventHandler":{"__isSmartRef__":true,"id":3686},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3677":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3678},{"__isSmartRef__":true,"id":3679}],"renderContextTable":{"__isSmartRef__":true,"id":3680},"_Position":{"__isSmartRef__":true,"id":3681},"_Extent":{"__isSmartRef__":true,"id":3682},"_Padding":{"__isSmartRef__":true,"id":3683},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3684},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3678":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3679":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3680":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3681":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3682":{"x":8,"y":13,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3683":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3684":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3685":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3686":{"morph":{"__isSmartRef__":true,"id":3676},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3687":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3688},{"__isSmartRef__":true,"id":3689},{"__isSmartRef__":true,"id":3690}],"renderContextTable":{"__isSmartRef__":true,"id":3691},"_Position":{"__isSmartRef__":true,"id":3692},"_Extent":{"__isSmartRef__":true,"id":3693},"_Padding":{"__isSmartRef__":true,"id":3694},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3695},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3688":{"isAbsolute":true,"x":25,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3689":{"isAbsolute":true,"x":10,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3690":{"isAbsolute":true,"x":40,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3691":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3692":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3693":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3694":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3695":{"r":0,"g":0,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3696":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3697":{"morph":{"__isSmartRef__":true,"id":3620},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3698":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3699":{"position":{"__isSmartRef__":true,"id":3700},"_Extent":{"__isSmartRef__":true,"id":3701},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3702},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3703},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3704},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3700":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3701":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3702":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3703":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3704":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3705":{"x":50.20369420394888,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3706":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3707},{"__isSmartRef__":true,"id":3709},{"__isSmartRef__":true,"id":3711},{"__isSmartRef__":true,"id":3713},{"__isSmartRef__":true,"id":3715},{"__isSmartRef__":true,"id":3717},{"__isSmartRef__":true,"id":3719},{"__isSmartRef__":true,"id":3721},{"__isSmartRef__":true,"id":3723},{"__isSmartRef__":true,"id":3725},{"__isSmartRef__":true,"id":3727},{"__isSmartRef__":true,"id":3729},{"__isSmartRef__":true,"id":3731},{"__isSmartRef__":true,"id":3733},{"__isSmartRef__":true,"id":3735},{"__isSmartRef__":true,"id":3737},{"__isSmartRef__":true,"id":3739},{"__isSmartRef__":true,"id":3741},{"__isSmartRef__":true,"id":3743}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3707":{"date":{"__isSmartRef__":true,"id":3708},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3708":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3709":{"date":{"__isSmartRef__":true,"id":3710},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3710":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3711":{"date":{"__isSmartRef__":true,"id":3712},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3712":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3713":{"date":{"__isSmartRef__":true,"id":3714},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3714":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3715":{"date":{"__isSmartRef__":true,"id":3716},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3716":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3717":{"date":{"__isSmartRef__":true,"id":3718},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3718":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3719":{"date":{"__isSmartRef__":true,"id":3720},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3720":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3721":{"date":{"__isSmartRef__":true,"id":3722},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3722":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3723":{"date":{"__isSmartRef__":true,"id":3724},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3724":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3725":{"date":{"__isSmartRef__":true,"id":3726},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3726":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3727":{"date":{"__isSmartRef__":true,"id":3728},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3728":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3729":{"date":{"__isSmartRef__":true,"id":3730},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3730":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3731":{"date":{"__isSmartRef__":true,"id":3732},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3732":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3733":{"date":{"__isSmartRef__":true,"id":3734},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3734":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3735":{"date":{"__isSmartRef__":true,"id":3736},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3736":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3737":{"date":{"__isSmartRef__":true,"id":3738},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3738":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3739":{"date":{"__isSmartRef__":true,"id":3740},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3740":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3741":{"date":{"__isSmartRef__":true,"id":3742},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3742":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3743":{"date":{"__isSmartRef__":true,"id":3744},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3744":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3745":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3746":{"morph":{"__isSmartRef__":true,"id":3619},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3747":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3748}},"3748":{"test01IsMorph":{"__isSmartRef__":true,"id":3749}},"3749":{"varMapping":{"__isSmartRef__":true,"id":3750},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3751},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3750":{"this":{"__isSmartRef__":true,"id":3747}},"3751":{},"3752":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3753":{"left":0,"up":1,"right":2,"down":3},"3754":{"submorphs":[{"__isSmartRef__":true,"id":3755}],"scripts":[],"id":"7CA49D11-DE83-486E-8E5A-61EC2BA73686","shape":{"__isSmartRef__":true,"id":3826},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3832},"showsHalos":false,"name":"BasicGem25","partsBinMetaInfo":{"__isSmartRef__":true,"id":3833},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3872},"eventHandler":{"__isSmartRef__":true,"id":3873},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3874},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3879},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3880},"neighbours":[null,{"__isSmartRef__":true,"id":2029},{"__isSmartRef__":true,"id":3619},{"__isSmartRef__":true,"id":3881}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11613},"__LivelyClassName__":"lively.morphic.Box"},"3755":{"submorphs":[{"__isSmartRef__":true,"id":3756},{"__isSmartRef__":true,"id":3767},{"__isSmartRef__":true,"id":3778},{"__isSmartRef__":true,"id":3789},{"__isSmartRef__":true,"id":3800}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3811},"derivationIds":[null],"id":"A4914672-F207-4AD1-B826-D089C43BF1E3","renderContextTable":{"__isSmartRef__":true,"id":3823},"eventHandler":{"__isSmartRef__":true,"id":3824},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3754},"_Position":{"__isSmartRef__":true,"id":3825},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3756":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3757},"derivationIds":[null],"id":"2F9E6F29-282E-4E0C-9C92-83BFC8649F1D","renderContextTable":{"__isSmartRef__":true,"id":3765},"eventHandler":{"__isSmartRef__":true,"id":3766},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3755},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3757":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3758},{"__isSmartRef__":true,"id":3759}],"renderContextTable":{"__isSmartRef__":true,"id":3760},"_Position":{"__isSmartRef__":true,"id":3761},"_Extent":{"__isSmartRef__":true,"id":3762},"_Padding":{"__isSmartRef__":true,"id":3763},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3764},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3758":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3759":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3760":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3761":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3762":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3763":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3764":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3765":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3766":{"morph":{"__isSmartRef__":true,"id":3756},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3767":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3768},"derivationIds":[null],"id":"DAF21302-3D0F-4DF1-A318-9626CF488EBE","renderContextTable":{"__isSmartRef__":true,"id":3776},"eventHandler":{"__isSmartRef__":true,"id":3777},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3755},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3768":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3769},{"__isSmartRef__":true,"id":3770}],"renderContextTable":{"__isSmartRef__":true,"id":3771},"_Position":{"__isSmartRef__":true,"id":3772},"_Extent":{"__isSmartRef__":true,"id":3773},"_Padding":{"__isSmartRef__":true,"id":3774},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3775},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3769":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3770":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3771":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3772":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3773":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3774":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3775":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3776":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3777":{"morph":{"__isSmartRef__":true,"id":3767},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3778":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3779},"derivationIds":[null],"id":"4F061630-B6DD-42CF-A583-883FE9BD194E","renderContextTable":{"__isSmartRef__":true,"id":3787},"eventHandler":{"__isSmartRef__":true,"id":3788},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3755},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3779":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3780},{"__isSmartRef__":true,"id":3781}],"renderContextTable":{"__isSmartRef__":true,"id":3782},"_Position":{"__isSmartRef__":true,"id":3783},"_Extent":{"__isSmartRef__":true,"id":3784},"_Padding":{"__isSmartRef__":true,"id":3785},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3786},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3780":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3781":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3782":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3783":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3784":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3785":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3786":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3787":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3788":{"morph":{"__isSmartRef__":true,"id":3778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3789":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3790},"derivationIds":[null],"id":"090DBE12-66A7-4BDB-9ECD-A9BA0A856851","renderContextTable":{"__isSmartRef__":true,"id":3798},"eventHandler":{"__isSmartRef__":true,"id":3799},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3755},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3790":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3791},{"__isSmartRef__":true,"id":3792}],"renderContextTable":{"__isSmartRef__":true,"id":3793},"_Position":{"__isSmartRef__":true,"id":3794},"_Extent":{"__isSmartRef__":true,"id":3795},"_Padding":{"__isSmartRef__":true,"id":3796},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3797},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3791":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3792":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3793":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3794":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3795":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3796":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3797":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3798":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3799":{"morph":{"__isSmartRef__":true,"id":3789},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3800":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3801},"derivationIds":[null],"id":"49CEF96C-E91D-4C73-864D-A3BE237EF395","renderContextTable":{"__isSmartRef__":true,"id":3809},"eventHandler":{"__isSmartRef__":true,"id":3810},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3755},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3801":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3802},{"__isSmartRef__":true,"id":3803}],"renderContextTable":{"__isSmartRef__":true,"id":3804},"_Position":{"__isSmartRef__":true,"id":3805},"_Extent":{"__isSmartRef__":true,"id":3806},"_Padding":{"__isSmartRef__":true,"id":3807},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3808},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3802":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3803":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3804":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3805":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3806":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3807":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3808":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3809":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3810":{"morph":{"__isSmartRef__":true,"id":3800},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3811":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3812},{"__isSmartRef__":true,"id":3813},{"__isSmartRef__":true,"id":3814},{"__isSmartRef__":true,"id":3815},{"__isSmartRef__":true,"id":3816},{"__isSmartRef__":true,"id":3817}],"renderContextTable":{"__isSmartRef__":true,"id":3818},"_Position":{"__isSmartRef__":true,"id":3819},"_Extent":{"__isSmartRef__":true,"id":3820},"_Padding":{"__isSmartRef__":true,"id":3821},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3822},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3812":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3813":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3814":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3815":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3816":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3817":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3818":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3819":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3820":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3821":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3822":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3823":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3824":{"morph":{"__isSmartRef__":true,"id":3755},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3825":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3826":{"position":{"__isSmartRef__":true,"id":3827},"_Extent":{"__isSmartRef__":true,"id":3828},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3829},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3830},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3831},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3827":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3828":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3829":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3830":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3831":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3832":{"x":1,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3833":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3834},{"__isSmartRef__":true,"id":3836},{"__isSmartRef__":true,"id":3838},{"__isSmartRef__":true,"id":3840},{"__isSmartRef__":true,"id":3842},{"__isSmartRef__":true,"id":3844},{"__isSmartRef__":true,"id":3846},{"__isSmartRef__":true,"id":3848},{"__isSmartRef__":true,"id":3850},{"__isSmartRef__":true,"id":3852},{"__isSmartRef__":true,"id":3854},{"__isSmartRef__":true,"id":3856},{"__isSmartRef__":true,"id":3858},{"__isSmartRef__":true,"id":3860},{"__isSmartRef__":true,"id":3862},{"__isSmartRef__":true,"id":3864},{"__isSmartRef__":true,"id":3866},{"__isSmartRef__":true,"id":3868},{"__isSmartRef__":true,"id":3870}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3834":{"date":{"__isSmartRef__":true,"id":3835},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3835":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3836":{"date":{"__isSmartRef__":true,"id":3837},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3837":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3838":{"date":{"__isSmartRef__":true,"id":3839},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3839":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3840":{"date":{"__isSmartRef__":true,"id":3841},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3841":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3842":{"date":{"__isSmartRef__":true,"id":3843},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3843":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3844":{"date":{"__isSmartRef__":true,"id":3845},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3845":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3846":{"date":{"__isSmartRef__":true,"id":3847},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3847":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3848":{"date":{"__isSmartRef__":true,"id":3849},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3849":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3850":{"date":{"__isSmartRef__":true,"id":3851},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3851":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3852":{"date":{"__isSmartRef__":true,"id":3853},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3853":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3854":{"date":{"__isSmartRef__":true,"id":3855},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3855":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3856":{"date":{"__isSmartRef__":true,"id":3857},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3857":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3858":{"date":{"__isSmartRef__":true,"id":3859},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3859":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3860":{"date":{"__isSmartRef__":true,"id":3861},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3861":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3862":{"date":{"__isSmartRef__":true,"id":3863},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3863":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3864":{"date":{"__isSmartRef__":true,"id":3865},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3865":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3866":{"date":{"__isSmartRef__":true,"id":3867},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3867":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3868":{"date":{"__isSmartRef__":true,"id":3869},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3869":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3870":{"date":{"__isSmartRef__":true,"id":3871},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3871":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3872":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3873":{"morph":{"__isSmartRef__":true,"id":3754},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3874":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3875}},"3875":{"test01IsMorph":{"__isSmartRef__":true,"id":3876}},"3876":{"varMapping":{"__isSmartRef__":true,"id":3877},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3878},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3877":{"this":{"__isSmartRef__":true,"id":3874}},"3878":{},"3879":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3880":{"left":0,"up":1,"right":2,"down":3},"3881":{"submorphs":[{"__isSmartRef__":true,"id":3882}],"scripts":[],"id":"C98B0174-4E85-49E9-A0DF-039D81315216","shape":{"__isSmartRef__":true,"id":3918},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":3924},"showsHalos":false,"name":"BasicGem33","partsBinMetaInfo":{"__isSmartRef__":true,"id":3925},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":3964},"eventHandler":{"__isSmartRef__":true,"id":3965},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":3966},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":3971},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":3972},"neighbours":[null,{"__isSmartRef__":true,"id":3754},{"__isSmartRef__":true,"id":3973},{"__isSmartRef__":true,"id":5612}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11484},"__LivelyClassName__":"lively.morphic.Box"},"3882":{"submorphs":[{"__isSmartRef__":true,"id":3883},{"__isSmartRef__":true,"id":3894}],"scripts":[],"shape":{"__isSmartRef__":true,"id":3905},"derivationIds":[null],"id":"D646CCBD-B508-4244-A5E3-8083BAF014A7","renderContextTable":{"__isSmartRef__":true,"id":3915},"eventHandler":{"__isSmartRef__":true,"id":3916},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3881},"_Position":{"__isSmartRef__":true,"id":3917},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3883":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3884},"derivationIds":[null],"id":"65B514B1-CDAD-4244-8913-27D1D36BC701","renderContextTable":{"__isSmartRef__":true,"id":3892},"eventHandler":{"__isSmartRef__":true,"id":3893},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3882},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3884":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3885},{"__isSmartRef__":true,"id":3886}],"renderContextTable":{"__isSmartRef__":true,"id":3887},"_Position":{"__isSmartRef__":true,"id":3888},"_Extent":{"__isSmartRef__":true,"id":3889},"_Padding":{"__isSmartRef__":true,"id":3890},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3891},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3885":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3886":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3887":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3888":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3889":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3890":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3891":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3892":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3893":{"morph":{"__isSmartRef__":true,"id":3883},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3894":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3895},"derivationIds":[null],"id":"3AAFC4D1-3948-4FB1-B186-4636913D902B","renderContextTable":{"__isSmartRef__":true,"id":3903},"eventHandler":{"__isSmartRef__":true,"id":3904},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3882},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3895":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3896},{"__isSmartRef__":true,"id":3897}],"renderContextTable":{"__isSmartRef__":true,"id":3898},"_Position":{"__isSmartRef__":true,"id":3899},"_Extent":{"__isSmartRef__":true,"id":3900},"_Padding":{"__isSmartRef__":true,"id":3901},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":3902},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3896":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3897":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3898":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3899":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3900":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3901":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3902":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3903":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3904":{"morph":{"__isSmartRef__":true,"id":3894},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3905":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3906},{"__isSmartRef__":true,"id":3907},{"__isSmartRef__":true,"id":3908},{"__isSmartRef__":true,"id":3909}],"renderContextTable":{"__isSmartRef__":true,"id":3910},"_Position":{"__isSmartRef__":true,"id":3911},"_Extent":{"__isSmartRef__":true,"id":3912},"_Padding":{"__isSmartRef__":true,"id":3913},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":3914},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3906":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3907":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3908":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3909":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3910":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3911":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3912":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3913":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3914":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3915":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3916":{"morph":{"__isSmartRef__":true,"id":3882},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3917":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3918":{"position":{"__isSmartRef__":true,"id":3919},"_Extent":{"__isSmartRef__":true,"id":3920},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":3921},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":3922},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":3923},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3919":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3920":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3921":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"3922":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"3923":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"3924":{"x":1,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3925":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":3926},{"__isSmartRef__":true,"id":3928},{"__isSmartRef__":true,"id":3930},{"__isSmartRef__":true,"id":3932},{"__isSmartRef__":true,"id":3934},{"__isSmartRef__":true,"id":3936},{"__isSmartRef__":true,"id":3938},{"__isSmartRef__":true,"id":3940},{"__isSmartRef__":true,"id":3942},{"__isSmartRef__":true,"id":3944},{"__isSmartRef__":true,"id":3946},{"__isSmartRef__":true,"id":3948},{"__isSmartRef__":true,"id":3950},{"__isSmartRef__":true,"id":3952},{"__isSmartRef__":true,"id":3954},{"__isSmartRef__":true,"id":3956},{"__isSmartRef__":true,"id":3958},{"__isSmartRef__":true,"id":3960},{"__isSmartRef__":true,"id":3962}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"3926":{"date":{"__isSmartRef__":true,"id":3927},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"3927":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"3928":{"date":{"__isSmartRef__":true,"id":3929},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"3929":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"3930":{"date":{"__isSmartRef__":true,"id":3931},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"3931":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"3932":{"date":{"__isSmartRef__":true,"id":3933},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"3933":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"3934":{"date":{"__isSmartRef__":true,"id":3935},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"3935":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"3936":{"date":{"__isSmartRef__":true,"id":3937},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"3937":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"3938":{"date":{"__isSmartRef__":true,"id":3939},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"3939":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"3940":{"date":{"__isSmartRef__":true,"id":3941},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"3941":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"3942":{"date":{"__isSmartRef__":true,"id":3943},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"3943":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"3944":{"date":{"__isSmartRef__":true,"id":3945},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"3945":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"3946":{"date":{"__isSmartRef__":true,"id":3947},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"3947":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"3948":{"date":{"__isSmartRef__":true,"id":3949},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"3949":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"3950":{"date":{"__isSmartRef__":true,"id":3951},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"3951":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"3952":{"date":{"__isSmartRef__":true,"id":3953},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"3953":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"3954":{"date":{"__isSmartRef__":true,"id":3955},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"3955":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"3956":{"date":{"__isSmartRef__":true,"id":3957},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"3957":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"3958":{"date":{"__isSmartRef__":true,"id":3959},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"3959":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"3960":{"date":{"__isSmartRef__":true,"id":3961},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"3961":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"3962":{"date":{"__isSmartRef__":true,"id":3963},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"3963":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"3964":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3965":{"morph":{"__isSmartRef__":true,"id":3881},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"3966":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":3967}},"3967":{"test01IsMorph":{"__isSmartRef__":true,"id":3968}},"3968":{"varMapping":{"__isSmartRef__":true,"id":3969},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":3970},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"3969":{"this":{"__isSmartRef__":true,"id":3966}},"3970":{},"3971":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"3972":{"left":0,"up":1,"right":2,"down":3},"3973":{"submorphs":[{"__isSmartRef__":true,"id":3974}],"scripts":[],"id":"1702EF5E-A019-425A-BA11-470A18E989AD","shape":{"__isSmartRef__":true,"id":4019},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4025},"showsHalos":false,"name":"BasicGem34","partsBinMetaInfo":{"__isSmartRef__":true,"id":4026},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4065},"eventHandler":{"__isSmartRef__":true,"id":4066},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4067},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4072},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4073},"neighbours":[{"__isSmartRef__":true,"id":3881},{"__isSmartRef__":true,"id":3619},{"__isSmartRef__":true,"id":4074},{"__isSmartRef__":true,"id":5480}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11355},"__LivelyClassName__":"lively.morphic.Box"},"3974":{"submorphs":[{"__isSmartRef__":true,"id":3975},{"__isSmartRef__":true,"id":3985},{"__isSmartRef__":true,"id":3995}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4005},"derivationIds":[null],"id":"3E425A79-A6EC-4F75-8AA8-65C9C5E39A41","renderContextTable":{"__isSmartRef__":true,"id":4016},"eventHandler":{"__isSmartRef__":true,"id":4017},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3973},"_Position":{"__isSmartRef__":true,"id":4018},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3975":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3976},"derivationIds":[null],"id":"265FCFFD-C083-4C81-A51F-80D76B3E4D3E","renderContextTable":{"__isSmartRef__":true,"id":3983},"eventHandler":{"__isSmartRef__":true,"id":3984},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3974},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3976":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3977},{"__isSmartRef__":true,"id":3978}],"renderContextTable":{"__isSmartRef__":true,"id":3979},"_Position":{"__isSmartRef__":true,"id":3980},"_Extent":{"__isSmartRef__":true,"id":3981},"_Padding":{"__isSmartRef__":true,"id":3982},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3977":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3978":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3979":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3980":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3981":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3982":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3983":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3984":{"morph":{"__isSmartRef__":true,"id":3975},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3985":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3986},"derivationIds":[null],"id":"1CAFB2DB-ABC4-4B1E-9635-E2B99CF18C7A","renderContextTable":{"__isSmartRef__":true,"id":3993},"eventHandler":{"__isSmartRef__":true,"id":3994},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3974},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3986":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3987},{"__isSmartRef__":true,"id":3988}],"renderContextTable":{"__isSmartRef__":true,"id":3989},"_Position":{"__isSmartRef__":true,"id":3990},"_Extent":{"__isSmartRef__":true,"id":3991},"_Padding":{"__isSmartRef__":true,"id":3992},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3987":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3988":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3989":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"3990":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3991":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3992":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"3993":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"3994":{"morph":{"__isSmartRef__":true,"id":3985},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"3995":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":3996},"derivationIds":[null],"id":"C1B5A139-DECB-42AB-9B08-7A5C4F9941DB","renderContextTable":{"__isSmartRef__":true,"id":4003},"eventHandler":{"__isSmartRef__":true,"id":4004},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":3974},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"3996":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":3997},{"__isSmartRef__":true,"id":3998}],"renderContextTable":{"__isSmartRef__":true,"id":3999},"_Position":{"__isSmartRef__":true,"id":4000},"_Extent":{"__isSmartRef__":true,"id":4001},"_Padding":{"__isSmartRef__":true,"id":4002},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3997":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3998":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"3999":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4000":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4001":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4002":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4003":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4004":{"morph":{"__isSmartRef__":true,"id":3995},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4005":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4006},{"__isSmartRef__":true,"id":4007},{"__isSmartRef__":true,"id":4008},{"__isSmartRef__":true,"id":4009},{"__isSmartRef__":true,"id":4010}],"renderContextTable":{"__isSmartRef__":true,"id":4011},"_Position":{"__isSmartRef__":true,"id":4012},"_Extent":{"__isSmartRef__":true,"id":4013},"_Padding":{"__isSmartRef__":true,"id":4014},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4015},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4006":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4007":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4008":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4009":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4010":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4011":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4012":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4013":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4014":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4015":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4016":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4017":{"morph":{"__isSmartRef__":true,"id":3974},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4018":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4019":{"position":{"__isSmartRef__":true,"id":4020},"_Extent":{"__isSmartRef__":true,"id":4021},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4022},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4023},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4024},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4020":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4021":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4022":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4023":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4024":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4025":{"x":50.20369420394888,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4026":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4027},{"__isSmartRef__":true,"id":4029},{"__isSmartRef__":true,"id":4031},{"__isSmartRef__":true,"id":4033},{"__isSmartRef__":true,"id":4035},{"__isSmartRef__":true,"id":4037},{"__isSmartRef__":true,"id":4039},{"__isSmartRef__":true,"id":4041},{"__isSmartRef__":true,"id":4043},{"__isSmartRef__":true,"id":4045},{"__isSmartRef__":true,"id":4047},{"__isSmartRef__":true,"id":4049},{"__isSmartRef__":true,"id":4051},{"__isSmartRef__":true,"id":4053},{"__isSmartRef__":true,"id":4055},{"__isSmartRef__":true,"id":4057},{"__isSmartRef__":true,"id":4059},{"__isSmartRef__":true,"id":4061},{"__isSmartRef__":true,"id":4063}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4027":{"date":{"__isSmartRef__":true,"id":4028},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4028":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4029":{"date":{"__isSmartRef__":true,"id":4030},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4030":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4031":{"date":{"__isSmartRef__":true,"id":4032},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4032":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4033":{"date":{"__isSmartRef__":true,"id":4034},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4034":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4035":{"date":{"__isSmartRef__":true,"id":4036},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4036":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4037":{"date":{"__isSmartRef__":true,"id":4038},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4038":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4039":{"date":{"__isSmartRef__":true,"id":4040},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4040":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4041":{"date":{"__isSmartRef__":true,"id":4042},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4042":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4043":{"date":{"__isSmartRef__":true,"id":4044},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4044":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4045":{"date":{"__isSmartRef__":true,"id":4046},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4046":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4047":{"date":{"__isSmartRef__":true,"id":4048},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4048":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4049":{"date":{"__isSmartRef__":true,"id":4050},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4050":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4051":{"date":{"__isSmartRef__":true,"id":4052},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4052":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4053":{"date":{"__isSmartRef__":true,"id":4054},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4054":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4055":{"date":{"__isSmartRef__":true,"id":4056},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4056":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4057":{"date":{"__isSmartRef__":true,"id":4058},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4058":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4059":{"date":{"__isSmartRef__":true,"id":4060},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4060":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4061":{"date":{"__isSmartRef__":true,"id":4062},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4062":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4063":{"date":{"__isSmartRef__":true,"id":4064},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4064":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4065":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4066":{"morph":{"__isSmartRef__":true,"id":3973},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4067":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4068}},"4068":{"test01IsMorph":{"__isSmartRef__":true,"id":4069}},"4069":{"varMapping":{"__isSmartRef__":true,"id":4070},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4071},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4070":{"this":{"__isSmartRef__":true,"id":4067}},"4071":{},"4072":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4073":{"left":0,"up":1,"right":2,"down":3},"4074":{"submorphs":[{"__isSmartRef__":true,"id":4075}],"scripts":[],"id":"1DC3512B-B1BD-4463-978D-9F028F282176","shape":{"__isSmartRef__":true,"id":4111},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4117},"showsHalos":false,"name":"BasicGem35","partsBinMetaInfo":{"__isSmartRef__":true,"id":4118},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4157},"eventHandler":{"__isSmartRef__":true,"id":4158},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4159},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4164},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4165},"neighbours":[{"__isSmartRef__":true,"id":3973},{"__isSmartRef__":true,"id":3487},{"__isSmartRef__":true,"id":4166},{"__isSmartRef__":true,"id":5379}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11226},"__LivelyClassName__":"lively.morphic.Box"},"4075":{"submorphs":[{"__isSmartRef__":true,"id":4076},{"__isSmartRef__":true,"id":4087}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4098},"derivationIds":[null],"id":"F1D6C23B-AAD6-4FDF-BC43-7C4AE5944752","renderContextTable":{"__isSmartRef__":true,"id":4108},"eventHandler":{"__isSmartRef__":true,"id":4109},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4074},"_Position":{"__isSmartRef__":true,"id":4110},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4076":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4077},"derivationIds":[null],"id":"2FEB305E-A356-4427-B147-C65F4F06D656","renderContextTable":{"__isSmartRef__":true,"id":4085},"eventHandler":{"__isSmartRef__":true,"id":4086},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4075},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4077":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4078},{"__isSmartRef__":true,"id":4079}],"renderContextTable":{"__isSmartRef__":true,"id":4080},"_Position":{"__isSmartRef__":true,"id":4081},"_Extent":{"__isSmartRef__":true,"id":4082},"_Padding":{"__isSmartRef__":true,"id":4083},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4084},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4078":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4079":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4080":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4081":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4082":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4083":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4084":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4085":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4086":{"morph":{"__isSmartRef__":true,"id":4076},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4087":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4088},"derivationIds":[null],"id":"E5879AD4-EDEC-4767-8A58-686B625549A4","renderContextTable":{"__isSmartRef__":true,"id":4096},"eventHandler":{"__isSmartRef__":true,"id":4097},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4075},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4088":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4089},{"__isSmartRef__":true,"id":4090}],"renderContextTable":{"__isSmartRef__":true,"id":4091},"_Position":{"__isSmartRef__":true,"id":4092},"_Extent":{"__isSmartRef__":true,"id":4093},"_Padding":{"__isSmartRef__":true,"id":4094},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4095},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4089":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4090":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4091":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4092":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4093":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4094":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4095":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4096":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4097":{"morph":{"__isSmartRef__":true,"id":4087},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4098":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4099},{"__isSmartRef__":true,"id":4100},{"__isSmartRef__":true,"id":4101},{"__isSmartRef__":true,"id":4102}],"renderContextTable":{"__isSmartRef__":true,"id":4103},"_Position":{"__isSmartRef__":true,"id":4104},"_Extent":{"__isSmartRef__":true,"id":4105},"_Padding":{"__isSmartRef__":true,"id":4106},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4107},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4099":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4100":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4101":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4102":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4103":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4104":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4105":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4106":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4107":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4108":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4109":{"morph":{"__isSmartRef__":true,"id":4075},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4110":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4111":{"position":{"__isSmartRef__":true,"id":4112},"_Extent":{"__isSmartRef__":true,"id":4113},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4114},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4115},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4116},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4112":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4113":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4114":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4115":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4116":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4117":{"x":99.40738840789776,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4118":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4119},{"__isSmartRef__":true,"id":4121},{"__isSmartRef__":true,"id":4123},{"__isSmartRef__":true,"id":4125},{"__isSmartRef__":true,"id":4127},{"__isSmartRef__":true,"id":4129},{"__isSmartRef__":true,"id":4131},{"__isSmartRef__":true,"id":4133},{"__isSmartRef__":true,"id":4135},{"__isSmartRef__":true,"id":4137},{"__isSmartRef__":true,"id":4139},{"__isSmartRef__":true,"id":4141},{"__isSmartRef__":true,"id":4143},{"__isSmartRef__":true,"id":4145},{"__isSmartRef__":true,"id":4147},{"__isSmartRef__":true,"id":4149},{"__isSmartRef__":true,"id":4151},{"__isSmartRef__":true,"id":4153},{"__isSmartRef__":true,"id":4155}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4119":{"date":{"__isSmartRef__":true,"id":4120},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4120":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4121":{"date":{"__isSmartRef__":true,"id":4122},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4122":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4123":{"date":{"__isSmartRef__":true,"id":4124},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4124":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4125":{"date":{"__isSmartRef__":true,"id":4126},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4126":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4127":{"date":{"__isSmartRef__":true,"id":4128},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4128":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4129":{"date":{"__isSmartRef__":true,"id":4130},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4130":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4131":{"date":{"__isSmartRef__":true,"id":4132},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4132":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4133":{"date":{"__isSmartRef__":true,"id":4134},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4134":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4135":{"date":{"__isSmartRef__":true,"id":4136},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4136":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4137":{"date":{"__isSmartRef__":true,"id":4138},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4138":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4139":{"date":{"__isSmartRef__":true,"id":4140},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4140":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4141":{"date":{"__isSmartRef__":true,"id":4142},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4142":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4143":{"date":{"__isSmartRef__":true,"id":4144},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4144":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4145":{"date":{"__isSmartRef__":true,"id":4146},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4146":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4147":{"date":{"__isSmartRef__":true,"id":4148},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4148":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4149":{"date":{"__isSmartRef__":true,"id":4150},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4150":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4151":{"date":{"__isSmartRef__":true,"id":4152},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4152":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4153":{"date":{"__isSmartRef__":true,"id":4154},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4154":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4155":{"date":{"__isSmartRef__":true,"id":4156},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4156":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4158":{"morph":{"__isSmartRef__":true,"id":4074},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4159":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4160}},"4160":{"test01IsMorph":{"__isSmartRef__":true,"id":4161}},"4161":{"varMapping":{"__isSmartRef__":true,"id":4162},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4163},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4162":{"this":{"__isSmartRef__":true,"id":4159}},"4163":{},"4164":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4165":{"left":0,"up":1,"right":2,"down":3},"4166":{"submorphs":[{"__isSmartRef__":true,"id":4167}],"scripts":[],"id":"29E195A8-DA83-4BB9-B1A7-4145023F41A0","shape":{"__isSmartRef__":true,"id":4243},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4249},"showsHalos":false,"name":"BasicGem36","partsBinMetaInfo":{"__isSmartRef__":true,"id":4250},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4289},"eventHandler":{"__isSmartRef__":true,"id":4290},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4291},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4296},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4297},"neighbours":[{"__isSmartRef__":true,"id":4074},{"__isSmartRef__":true,"id":3360},{"__isSmartRef__":true,"id":4298},{"__isSmartRef__":true,"id":5244}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":11096},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11097},"__LivelyClassName__":"lively.morphic.Box"},"4167":{"submorphs":[{"__isSmartRef__":true,"id":4168},{"__isSmartRef__":true,"id":4178},{"__isSmartRef__":true,"id":4188},{"__isSmartRef__":true,"id":4198},{"__isSmartRef__":true,"id":4208},{"__isSmartRef__":true,"id":4218}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4228},"derivationIds":[null],"id":"6ADA6B41-F726-44C2-B13E-9F517A498835","renderContextTable":{"__isSmartRef__":true,"id":4240},"eventHandler":{"__isSmartRef__":true,"id":4241},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4166},"_Position":{"__isSmartRef__":true,"id":4242},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4168":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4169},"derivationIds":[null],"id":"FAB85AC9-6B26-4B73-A073-3470F4E5ABEB","renderContextTable":{"__isSmartRef__":true,"id":4176},"eventHandler":{"__isSmartRef__":true,"id":4177},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4167},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4169":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4170},{"__isSmartRef__":true,"id":4171}],"renderContextTable":{"__isSmartRef__":true,"id":4172},"_Position":{"__isSmartRef__":true,"id":4173},"_Extent":{"__isSmartRef__":true,"id":4174},"_Padding":{"__isSmartRef__":true,"id":4175},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4170":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4171":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4172":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4173":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4174":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4175":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4176":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4177":{"morph":{"__isSmartRef__":true,"id":4168},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4178":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4179},"derivationIds":[null],"id":"EA3412C0-23BF-40DD-A638-283757D5F158","renderContextTable":{"__isSmartRef__":true,"id":4186},"eventHandler":{"__isSmartRef__":true,"id":4187},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4167},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4179":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4180},{"__isSmartRef__":true,"id":4181}],"renderContextTable":{"__isSmartRef__":true,"id":4182},"_Position":{"__isSmartRef__":true,"id":4183},"_Extent":{"__isSmartRef__":true,"id":4184},"_Padding":{"__isSmartRef__":true,"id":4185},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4180":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4181":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4182":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4183":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4184":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4185":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4187":{"morph":{"__isSmartRef__":true,"id":4178},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4188":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4189},"derivationIds":[null],"id":"E29C4665-62EE-4073-B9DC-5E5D45234784","renderContextTable":{"__isSmartRef__":true,"id":4196},"eventHandler":{"__isSmartRef__":true,"id":4197},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4167},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4189":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4190},{"__isSmartRef__":true,"id":4191}],"renderContextTable":{"__isSmartRef__":true,"id":4192},"_Position":{"__isSmartRef__":true,"id":4193},"_Extent":{"__isSmartRef__":true,"id":4194},"_Padding":{"__isSmartRef__":true,"id":4195},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4190":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4191":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4193":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4194":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4195":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4196":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4197":{"morph":{"__isSmartRef__":true,"id":4188},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4198":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4199},"derivationIds":[null],"id":"F6CEF986-138A-4D57-9B71-E7F4C7C89456","renderContextTable":{"__isSmartRef__":true,"id":4206},"eventHandler":{"__isSmartRef__":true,"id":4207},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4167},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4199":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4200},{"__isSmartRef__":true,"id":4201}],"renderContextTable":{"__isSmartRef__":true,"id":4202},"_Position":{"__isSmartRef__":true,"id":4203},"_Extent":{"__isSmartRef__":true,"id":4204},"_Padding":{"__isSmartRef__":true,"id":4205},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4200":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4201":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4202":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4203":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4204":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4205":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4206":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4207":{"morph":{"__isSmartRef__":true,"id":4198},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4208":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4209},"derivationIds":[null],"id":"115350AF-C5C4-4040-847A-976098A78B89","renderContextTable":{"__isSmartRef__":true,"id":4216},"eventHandler":{"__isSmartRef__":true,"id":4217},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4167},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4209":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4210},{"__isSmartRef__":true,"id":4211}],"renderContextTable":{"__isSmartRef__":true,"id":4212},"_Position":{"__isSmartRef__":true,"id":4213},"_Extent":{"__isSmartRef__":true,"id":4214},"_Padding":{"__isSmartRef__":true,"id":4215},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4210":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4211":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4212":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4213":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4214":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4215":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4216":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4217":{"morph":{"__isSmartRef__":true,"id":4208},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4218":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4219},"derivationIds":[null],"id":"6DB1690B-69B2-44F9-8428-B975376AC279","renderContextTable":{"__isSmartRef__":true,"id":4226},"eventHandler":{"__isSmartRef__":true,"id":4227},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4167},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4219":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4220},{"__isSmartRef__":true,"id":4221}],"renderContextTable":{"__isSmartRef__":true,"id":4222},"_Position":{"__isSmartRef__":true,"id":4223},"_Extent":{"__isSmartRef__":true,"id":4224},"_Padding":{"__isSmartRef__":true,"id":4225},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4220":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4221":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4222":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4223":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4224":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4225":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4226":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4227":{"morph":{"__isSmartRef__":true,"id":4218},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4228":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4229},{"__isSmartRef__":true,"id":4230},{"__isSmartRef__":true,"id":4231},{"__isSmartRef__":true,"id":4232},{"__isSmartRef__":true,"id":4233},{"__isSmartRef__":true,"id":4234}],"renderContextTable":{"__isSmartRef__":true,"id":4235},"_Position":{"__isSmartRef__":true,"id":4236},"_Extent":{"__isSmartRef__":true,"id":4237},"_Padding":{"__isSmartRef__":true,"id":4238},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4239},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4229":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4230":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4231":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4232":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4233":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4234":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4235":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4236":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4237":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4238":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4239":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4240":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4241":{"morph":{"__isSmartRef__":true,"id":4167},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4242":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4243":{"position":{"__isSmartRef__":true,"id":4244},"_Extent":{"__isSmartRef__":true,"id":4245},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4246},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4247},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4248},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4244":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4245":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4246":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4247":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4248":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4249":{"x":148.61108261184663,"y":259.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4250":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4251},{"__isSmartRef__":true,"id":4253},{"__isSmartRef__":true,"id":4255},{"__isSmartRef__":true,"id":4257},{"__isSmartRef__":true,"id":4259},{"__isSmartRef__":true,"id":4261},{"__isSmartRef__":true,"id":4263},{"__isSmartRef__":true,"id":4265},{"__isSmartRef__":true,"id":4267},{"__isSmartRef__":true,"id":4269},{"__isSmartRef__":true,"id":4271},{"__isSmartRef__":true,"id":4273},{"__isSmartRef__":true,"id":4275},{"__isSmartRef__":true,"id":4277},{"__isSmartRef__":true,"id":4279},{"__isSmartRef__":true,"id":4281},{"__isSmartRef__":true,"id":4283},{"__isSmartRef__":true,"id":4285},{"__isSmartRef__":true,"id":4287}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4251":{"date":{"__isSmartRef__":true,"id":4252},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4252":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4253":{"date":{"__isSmartRef__":true,"id":4254},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4254":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4255":{"date":{"__isSmartRef__":true,"id":4256},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4256":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4257":{"date":{"__isSmartRef__":true,"id":4258},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4258":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4259":{"date":{"__isSmartRef__":true,"id":4260},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4260":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4261":{"date":{"__isSmartRef__":true,"id":4262},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4262":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4263":{"date":{"__isSmartRef__":true,"id":4264},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4264":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4265":{"date":{"__isSmartRef__":true,"id":4266},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4266":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4267":{"date":{"__isSmartRef__":true,"id":4268},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4268":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4269":{"date":{"__isSmartRef__":true,"id":4270},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4270":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4271":{"date":{"__isSmartRef__":true,"id":4272},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4272":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4273":{"date":{"__isSmartRef__":true,"id":4274},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4274":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4275":{"date":{"__isSmartRef__":true,"id":4276},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4276":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4277":{"date":{"__isSmartRef__":true,"id":4278},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4278":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4279":{"date":{"__isSmartRef__":true,"id":4280},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4280":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4281":{"date":{"__isSmartRef__":true,"id":4282},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4282":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4283":{"date":{"__isSmartRef__":true,"id":4284},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4284":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4285":{"date":{"__isSmartRef__":true,"id":4286},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4286":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4287":{"date":{"__isSmartRef__":true,"id":4288},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4288":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4289":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4290":{"morph":{"__isSmartRef__":true,"id":4166},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4291":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4292}},"4292":{"test01IsMorph":{"__isSmartRef__":true,"id":4293}},"4293":{"varMapping":{"__isSmartRef__":true,"id":4294},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4295},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4294":{"this":{"__isSmartRef__":true,"id":4291}},"4295":{},"4296":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4297":{"left":0,"up":1,"right":2,"down":3},"4298":{"submorphs":[{"__isSmartRef__":true,"id":4299}],"scripts":[],"id":"BA88B3F8-9165-4BFA-B392-28FC596DEE97","shape":{"__isSmartRef__":true,"id":4361},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4367},"showsHalos":false,"name":"BasicGem37","partsBinMetaInfo":{"__isSmartRef__":true,"id":4368},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4407},"eventHandler":{"__isSmartRef__":true,"id":4408},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4409},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4414},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4415},"neighbours":[{"__isSmartRef__":true,"id":4166},{"__isSmartRef__":true,"id":3233},{"__isSmartRef__":true,"id":4416},{"__isSmartRef__":true,"id":5126}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":4367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10967},"__LivelyClassName__":"lively.morphic.Box"},"4299":{"submorphs":[{"__isSmartRef__":true,"id":4300},{"__isSmartRef__":true,"id":4311},{"__isSmartRef__":true,"id":4322},{"__isSmartRef__":true,"id":4333}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4344},"derivationIds":[null],"id":"6E22C0AB-F02A-4420-82F3-95FCDF31DAC7","renderContextTable":{"__isSmartRef__":true,"id":4358},"eventHandler":{"__isSmartRef__":true,"id":4359},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4298},"_Position":{"__isSmartRef__":true,"id":4360},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4300":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4301},"derivationIds":[null],"id":"FC6B9581-1010-49B8-9B70-A8826325DAE8","renderContextTable":{"__isSmartRef__":true,"id":4309},"eventHandler":{"__isSmartRef__":true,"id":4310},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4299},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4301":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4302},{"__isSmartRef__":true,"id":4303}],"renderContextTable":{"__isSmartRef__":true,"id":4304},"_Position":{"__isSmartRef__":true,"id":4305},"_Extent":{"__isSmartRef__":true,"id":4306},"_Padding":{"__isSmartRef__":true,"id":4307},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4308},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4302":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4303":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4304":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4305":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4306":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4307":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4308":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4309":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4310":{"morph":{"__isSmartRef__":true,"id":4300},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4311":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4312},"derivationIds":[null],"id":"9E0E6B19-F99C-48C0-95E8-A6C1E3A157A9","renderContextTable":{"__isSmartRef__":true,"id":4320},"eventHandler":{"__isSmartRef__":true,"id":4321},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4299},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4312":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4313},{"__isSmartRef__":true,"id":4314}],"renderContextTable":{"__isSmartRef__":true,"id":4315},"_Position":{"__isSmartRef__":true,"id":4316},"_Extent":{"__isSmartRef__":true,"id":4317},"_Padding":{"__isSmartRef__":true,"id":4318},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4319},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4313":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4314":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4315":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4316":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4317":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4318":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4319":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4320":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4321":{"morph":{"__isSmartRef__":true,"id":4311},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4322":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4323},"derivationIds":[null],"id":"6D47B70F-72A4-4D7C-BB4D-A332BCF88B04","renderContextTable":{"__isSmartRef__":true,"id":4331},"eventHandler":{"__isSmartRef__":true,"id":4332},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4299},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4323":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4324},{"__isSmartRef__":true,"id":4325}],"renderContextTable":{"__isSmartRef__":true,"id":4326},"_Position":{"__isSmartRef__":true,"id":4327},"_Extent":{"__isSmartRef__":true,"id":4328},"_Padding":{"__isSmartRef__":true,"id":4329},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4330},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4324":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4325":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4326":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4327":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4328":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4329":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4330":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4331":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4332":{"morph":{"__isSmartRef__":true,"id":4322},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4333":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4334},"derivationIds":[null],"id":"A59ACD7C-D466-4235-9089-2E7C4F88AC76","renderContextTable":{"__isSmartRef__":true,"id":4342},"eventHandler":{"__isSmartRef__":true,"id":4343},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4299},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4334":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4335},{"__isSmartRef__":true,"id":4336}],"renderContextTable":{"__isSmartRef__":true,"id":4337},"_Position":{"__isSmartRef__":true,"id":4338},"_Extent":{"__isSmartRef__":true,"id":4339},"_Padding":{"__isSmartRef__":true,"id":4340},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":4341},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4335":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4336":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4337":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4338":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4339":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4340":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4341":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4342":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4343":{"morph":{"__isSmartRef__":true,"id":4333},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4344":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4345},{"__isSmartRef__":true,"id":4346},{"__isSmartRef__":true,"id":4347},{"__isSmartRef__":true,"id":4348},{"__isSmartRef__":true,"id":4349},{"__isSmartRef__":true,"id":4350},{"__isSmartRef__":true,"id":4351},{"__isSmartRef__":true,"id":4352}],"renderContextTable":{"__isSmartRef__":true,"id":4353},"_Position":{"__isSmartRef__":true,"id":4354},"_Extent":{"__isSmartRef__":true,"id":4355},"_Padding":{"__isSmartRef__":true,"id":4356},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4357},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4345":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4346":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4347":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4348":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4349":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4350":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4351":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4352":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4353":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4354":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4355":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4356":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4357":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4358":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4359":{"morph":{"__isSmartRef__":true,"id":4299},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4360":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4361":{"position":{"__isSmartRef__":true,"id":4362},"_Extent":{"__isSmartRef__":true,"id":4363},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4364},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4365},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4366},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4362":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4363":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4364":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4365":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4366":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4367":{"x":197.8147768157955,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4368":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4369},{"__isSmartRef__":true,"id":4371},{"__isSmartRef__":true,"id":4373},{"__isSmartRef__":true,"id":4375},{"__isSmartRef__":true,"id":4377},{"__isSmartRef__":true,"id":4379},{"__isSmartRef__":true,"id":4381},{"__isSmartRef__":true,"id":4383},{"__isSmartRef__":true,"id":4385},{"__isSmartRef__":true,"id":4387},{"__isSmartRef__":true,"id":4389},{"__isSmartRef__":true,"id":4391},{"__isSmartRef__":true,"id":4393},{"__isSmartRef__":true,"id":4395},{"__isSmartRef__":true,"id":4397},{"__isSmartRef__":true,"id":4399},{"__isSmartRef__":true,"id":4401},{"__isSmartRef__":true,"id":4403},{"__isSmartRef__":true,"id":4405}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4369":{"date":{"__isSmartRef__":true,"id":4370},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4370":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4371":{"date":{"__isSmartRef__":true,"id":4372},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4372":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4373":{"date":{"__isSmartRef__":true,"id":4374},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4374":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4375":{"date":{"__isSmartRef__":true,"id":4376},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4376":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4377":{"date":{"__isSmartRef__":true,"id":4378},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4378":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4379":{"date":{"__isSmartRef__":true,"id":4380},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4380":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4381":{"date":{"__isSmartRef__":true,"id":4382},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4382":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4383":{"date":{"__isSmartRef__":true,"id":4384},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4384":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4385":{"date":{"__isSmartRef__":true,"id":4386},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4386":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4387":{"date":{"__isSmartRef__":true,"id":4388},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4388":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4389":{"date":{"__isSmartRef__":true,"id":4390},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4390":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4391":{"date":{"__isSmartRef__":true,"id":4392},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4392":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4393":{"date":{"__isSmartRef__":true,"id":4394},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4394":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4395":{"date":{"__isSmartRef__":true,"id":4396},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4396":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4397":{"date":{"__isSmartRef__":true,"id":4398},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4398":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4399":{"date":{"__isSmartRef__":true,"id":4400},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4400":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4401":{"date":{"__isSmartRef__":true,"id":4402},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4402":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4403":{"date":{"__isSmartRef__":true,"id":4404},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4404":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4405":{"date":{"__isSmartRef__":true,"id":4406},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4406":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4407":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4408":{"morph":{"__isSmartRef__":true,"id":4298},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4409":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4410}},"4410":{"test01IsMorph":{"__isSmartRef__":true,"id":4411}},"4411":{"varMapping":{"__isSmartRef__":true,"id":4412},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4413},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4412":{"this":{"__isSmartRef__":true,"id":4409}},"4413":{},"4414":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4415":{"left":0,"up":1,"right":2,"down":3},"4416":{"submorphs":[{"__isSmartRef__":true,"id":4417}],"scripts":[],"id":"100ED8E0-450E-49F4-9285-849C990D06BC","shape":{"__isSmartRef__":true,"id":4462},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4468},"showsHalos":false,"name":"BasicGem38","partsBinMetaInfo":{"__isSmartRef__":true,"id":4469},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4508},"eventHandler":{"__isSmartRef__":true,"id":4509},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4510},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4515},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4516},"neighbours":[{"__isSmartRef__":true,"id":4298},{"__isSmartRef__":true,"id":3132},{"__isSmartRef__":true,"id":4517},{"__isSmartRef__":true,"id":5008}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":10837},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10838},"__LivelyClassName__":"lively.morphic.Box"},"4417":{"submorphs":[{"__isSmartRef__":true,"id":4418},{"__isSmartRef__":true,"id":4428},{"__isSmartRef__":true,"id":4438}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4448},"derivationIds":[null],"id":"BE840319-863F-4E3B-9A35-2E9C11A2324B","renderContextTable":{"__isSmartRef__":true,"id":4459},"eventHandler":{"__isSmartRef__":true,"id":4460},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4416},"_Position":{"__isSmartRef__":true,"id":4461},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4418":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4419},"derivationIds":[null],"id":"C48780B2-A3E7-476B-9604-4A76C08022CB","renderContextTable":{"__isSmartRef__":true,"id":4426},"eventHandler":{"__isSmartRef__":true,"id":4427},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4417},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4419":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4420},{"__isSmartRef__":true,"id":4421}],"renderContextTable":{"__isSmartRef__":true,"id":4422},"_Position":{"__isSmartRef__":true,"id":4423},"_Extent":{"__isSmartRef__":true,"id":4424},"_Padding":{"__isSmartRef__":true,"id":4425},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4420":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4421":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4422":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4423":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4424":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4425":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4426":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4427":{"morph":{"__isSmartRef__":true,"id":4418},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4428":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4429},"derivationIds":[null],"id":"68BDEA16-DDBB-4750-841B-B8F92D4853F3","renderContextTable":{"__isSmartRef__":true,"id":4436},"eventHandler":{"__isSmartRef__":true,"id":4437},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4417},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4429":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4430},{"__isSmartRef__":true,"id":4431}],"renderContextTable":{"__isSmartRef__":true,"id":4432},"_Position":{"__isSmartRef__":true,"id":4433},"_Extent":{"__isSmartRef__":true,"id":4434},"_Padding":{"__isSmartRef__":true,"id":4435},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4430":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4431":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4432":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4433":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4434":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4435":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4436":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4437":{"morph":{"__isSmartRef__":true,"id":4428},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4438":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4439},"derivationIds":[null],"id":"79D798EA-0225-42FE-9DD9-5F4F72C1317D","renderContextTable":{"__isSmartRef__":true,"id":4446},"eventHandler":{"__isSmartRef__":true,"id":4447},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4417},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4439":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4440},{"__isSmartRef__":true,"id":4441}],"renderContextTable":{"__isSmartRef__":true,"id":4442},"_Position":{"__isSmartRef__":true,"id":4443},"_Extent":{"__isSmartRef__":true,"id":4444},"_Padding":{"__isSmartRef__":true,"id":4445},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4440":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4441":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4442":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4443":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4444":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4445":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4446":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4447":{"morph":{"__isSmartRef__":true,"id":4438},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4448":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4449},{"__isSmartRef__":true,"id":4450},{"__isSmartRef__":true,"id":4451},{"__isSmartRef__":true,"id":4452},{"__isSmartRef__":true,"id":4453}],"renderContextTable":{"__isSmartRef__":true,"id":4454},"_Position":{"__isSmartRef__":true,"id":4455},"_Extent":{"__isSmartRef__":true,"id":4456},"_Padding":{"__isSmartRef__":true,"id":4457},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4458},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4449":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4450":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4451":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4452":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4453":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4454":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4455":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4456":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4457":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4458":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4459":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4460":{"morph":{"__isSmartRef__":true,"id":4417},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4461":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4462":{"position":{"__isSmartRef__":true,"id":4463},"_Extent":{"__isSmartRef__":true,"id":4464},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4465},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4466},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4467},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4463":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4464":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4465":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4466":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4467":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4468":{"x":247.0184710197444,"y":259.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4469":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4470},{"__isSmartRef__":true,"id":4472},{"__isSmartRef__":true,"id":4474},{"__isSmartRef__":true,"id":4476},{"__isSmartRef__":true,"id":4478},{"__isSmartRef__":true,"id":4480},{"__isSmartRef__":true,"id":4482},{"__isSmartRef__":true,"id":4484},{"__isSmartRef__":true,"id":4486},{"__isSmartRef__":true,"id":4488},{"__isSmartRef__":true,"id":4490},{"__isSmartRef__":true,"id":4492},{"__isSmartRef__":true,"id":4494},{"__isSmartRef__":true,"id":4496},{"__isSmartRef__":true,"id":4498},{"__isSmartRef__":true,"id":4500},{"__isSmartRef__":true,"id":4502},{"__isSmartRef__":true,"id":4504},{"__isSmartRef__":true,"id":4506}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4470":{"date":{"__isSmartRef__":true,"id":4471},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4471":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4472":{"date":{"__isSmartRef__":true,"id":4473},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4473":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4474":{"date":{"__isSmartRef__":true,"id":4475},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4475":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4476":{"date":{"__isSmartRef__":true,"id":4477},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4477":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4478":{"date":{"__isSmartRef__":true,"id":4479},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4479":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4480":{"date":{"__isSmartRef__":true,"id":4481},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4481":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4482":{"date":{"__isSmartRef__":true,"id":4483},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4483":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4484":{"date":{"__isSmartRef__":true,"id":4485},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4485":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4486":{"date":{"__isSmartRef__":true,"id":4487},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4487":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4488":{"date":{"__isSmartRef__":true,"id":4489},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4489":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4490":{"date":{"__isSmartRef__":true,"id":4491},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4491":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4492":{"date":{"__isSmartRef__":true,"id":4493},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4493":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4494":{"date":{"__isSmartRef__":true,"id":4495},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4495":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4496":{"date":{"__isSmartRef__":true,"id":4497},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4497":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4498":{"date":{"__isSmartRef__":true,"id":4499},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4499":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4500":{"date":{"__isSmartRef__":true,"id":4501},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4501":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4502":{"date":{"__isSmartRef__":true,"id":4503},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4503":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4504":{"date":{"__isSmartRef__":true,"id":4505},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4505":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4506":{"date":{"__isSmartRef__":true,"id":4507},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4507":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4508":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4509":{"morph":{"__isSmartRef__":true,"id":4416},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4510":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4511}},"4511":{"test01IsMorph":{"__isSmartRef__":true,"id":4512}},"4512":{"varMapping":{"__isSmartRef__":true,"id":4513},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4514},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4513":{"this":{"__isSmartRef__":true,"id":4510}},"4514":{},"4515":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4516":{"left":0,"up":1,"right":2,"down":3},"4517":{"submorphs":[{"__isSmartRef__":true,"id":4518}],"scripts":[],"id":"D58C4F4C-747F-426F-A6E7-1711CE4CD095","shape":{"__isSmartRef__":true,"id":4594},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4600},"showsHalos":false,"name":"BasicGem39","partsBinMetaInfo":{"__isSmartRef__":true,"id":4601},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4640},"eventHandler":{"__isSmartRef__":true,"id":4641},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4642},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4647},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4648},"neighbours":[{"__isSmartRef__":true,"id":4416},{"__isSmartRef__":true,"id":3031},{"__isSmartRef__":true,"id":4649},{"__isSmartRef__":true,"id":4916}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":10707},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10708},"__LivelyClassName__":"lively.morphic.Box"},"4518":{"submorphs":[{"__isSmartRef__":true,"id":4519},{"__isSmartRef__":true,"id":4529},{"__isSmartRef__":true,"id":4539},{"__isSmartRef__":true,"id":4549},{"__isSmartRef__":true,"id":4559},{"__isSmartRef__":true,"id":4569}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4579},"derivationIds":[null],"id":"D65BB568-2574-4A9D-A76C-0791A3770C1A","renderContextTable":{"__isSmartRef__":true,"id":4591},"eventHandler":{"__isSmartRef__":true,"id":4592},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4517},"_Position":{"__isSmartRef__":true,"id":4593},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4519":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4520},"derivationIds":[null],"id":"B6F2E351-4AE1-4B2E-968A-60637A6CA559","renderContextTable":{"__isSmartRef__":true,"id":4527},"eventHandler":{"__isSmartRef__":true,"id":4528},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4518},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4520":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4521},{"__isSmartRef__":true,"id":4522}],"renderContextTable":{"__isSmartRef__":true,"id":4523},"_Position":{"__isSmartRef__":true,"id":4524},"_Extent":{"__isSmartRef__":true,"id":4525},"_Padding":{"__isSmartRef__":true,"id":4526},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4521":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4522":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4523":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4524":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4525":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4526":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4527":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4528":{"morph":{"__isSmartRef__":true,"id":4519},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4529":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4530},"derivationIds":[null],"id":"D5278239-C426-4FAA-8EAD-0A808A5F29C0","renderContextTable":{"__isSmartRef__":true,"id":4537},"eventHandler":{"__isSmartRef__":true,"id":4538},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4518},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4530":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4531},{"__isSmartRef__":true,"id":4532}],"renderContextTable":{"__isSmartRef__":true,"id":4533},"_Position":{"__isSmartRef__":true,"id":4534},"_Extent":{"__isSmartRef__":true,"id":4535},"_Padding":{"__isSmartRef__":true,"id":4536},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4531":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4532":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4533":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4534":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4535":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4536":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4537":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4538":{"morph":{"__isSmartRef__":true,"id":4529},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4539":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4540},"derivationIds":[null],"id":"5EE51B5B-C888-4B20-9A41-5C3A7D0F7054","renderContextTable":{"__isSmartRef__":true,"id":4547},"eventHandler":{"__isSmartRef__":true,"id":4548},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4518},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4540":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4541},{"__isSmartRef__":true,"id":4542}],"renderContextTable":{"__isSmartRef__":true,"id":4543},"_Position":{"__isSmartRef__":true,"id":4544},"_Extent":{"__isSmartRef__":true,"id":4545},"_Padding":{"__isSmartRef__":true,"id":4546},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4541":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4542":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4543":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4544":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4545":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4546":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4547":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4548":{"morph":{"__isSmartRef__":true,"id":4539},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4549":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4550},"derivationIds":[null],"id":"2FB45F71-1F67-4B08-B65C-8B7EEB2082B4","renderContextTable":{"__isSmartRef__":true,"id":4557},"eventHandler":{"__isSmartRef__":true,"id":4558},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4518},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4550":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4551},{"__isSmartRef__":true,"id":4552}],"renderContextTable":{"__isSmartRef__":true,"id":4553},"_Position":{"__isSmartRef__":true,"id":4554},"_Extent":{"__isSmartRef__":true,"id":4555},"_Padding":{"__isSmartRef__":true,"id":4556},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4551":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4552":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4553":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4554":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4555":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4556":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4557":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4558":{"morph":{"__isSmartRef__":true,"id":4549},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4559":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4560},"derivationIds":[null],"id":"900654AD-770C-47C2-BE24-040C74B481AB","renderContextTable":{"__isSmartRef__":true,"id":4567},"eventHandler":{"__isSmartRef__":true,"id":4568},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4518},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4560":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4561},{"__isSmartRef__":true,"id":4562}],"renderContextTable":{"__isSmartRef__":true,"id":4563},"_Position":{"__isSmartRef__":true,"id":4564},"_Extent":{"__isSmartRef__":true,"id":4565},"_Padding":{"__isSmartRef__":true,"id":4566},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4561":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4562":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4563":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4564":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4565":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4566":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4567":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4568":{"morph":{"__isSmartRef__":true,"id":4559},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4569":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4570},"derivationIds":[null],"id":"1EB067A5-1BBF-4238-BBC6-BC02DCAFBF62","renderContextTable":{"__isSmartRef__":true,"id":4577},"eventHandler":{"__isSmartRef__":true,"id":4578},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4518},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4570":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4571},{"__isSmartRef__":true,"id":4572}],"renderContextTable":{"__isSmartRef__":true,"id":4573},"_Position":{"__isSmartRef__":true,"id":4574},"_Extent":{"__isSmartRef__":true,"id":4575},"_Padding":{"__isSmartRef__":true,"id":4576},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4571":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4572":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4573":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4574":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4575":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4576":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4577":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4578":{"morph":{"__isSmartRef__":true,"id":4569},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4579":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4580},{"__isSmartRef__":true,"id":4581},{"__isSmartRef__":true,"id":4582},{"__isSmartRef__":true,"id":4583},{"__isSmartRef__":true,"id":4584},{"__isSmartRef__":true,"id":4585}],"renderContextTable":{"__isSmartRef__":true,"id":4586},"_Position":{"__isSmartRef__":true,"id":4587},"_Extent":{"__isSmartRef__":true,"id":4588},"_Padding":{"__isSmartRef__":true,"id":4589},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4590},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4580":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4581":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4582":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4583":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4584":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4585":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4586":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4587":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4588":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4589":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4590":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4591":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4592":{"morph":{"__isSmartRef__":true,"id":4518},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4593":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4594":{"position":{"__isSmartRef__":true,"id":4595},"_Extent":{"__isSmartRef__":true,"id":4596},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4597},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4598},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4599},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4595":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4596":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4597":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4598":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4599":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4600":{"x":296.22216522369325,"y":259.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4601":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4602},{"__isSmartRef__":true,"id":4604},{"__isSmartRef__":true,"id":4606},{"__isSmartRef__":true,"id":4608},{"__isSmartRef__":true,"id":4610},{"__isSmartRef__":true,"id":4612},{"__isSmartRef__":true,"id":4614},{"__isSmartRef__":true,"id":4616},{"__isSmartRef__":true,"id":4618},{"__isSmartRef__":true,"id":4620},{"__isSmartRef__":true,"id":4622},{"__isSmartRef__":true,"id":4624},{"__isSmartRef__":true,"id":4626},{"__isSmartRef__":true,"id":4628},{"__isSmartRef__":true,"id":4630},{"__isSmartRef__":true,"id":4632},{"__isSmartRef__":true,"id":4634},{"__isSmartRef__":true,"id":4636},{"__isSmartRef__":true,"id":4638}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4602":{"date":{"__isSmartRef__":true,"id":4603},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4603":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4604":{"date":{"__isSmartRef__":true,"id":4605},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4605":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4606":{"date":{"__isSmartRef__":true,"id":4607},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4607":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4608":{"date":{"__isSmartRef__":true,"id":4609},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4609":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4610":{"date":{"__isSmartRef__":true,"id":4611},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4611":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4612":{"date":{"__isSmartRef__":true,"id":4613},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4613":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4614":{"date":{"__isSmartRef__":true,"id":4615},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4615":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4616":{"date":{"__isSmartRef__":true,"id":4617},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4617":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4618":{"date":{"__isSmartRef__":true,"id":4619},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4619":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4620":{"date":{"__isSmartRef__":true,"id":4621},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4621":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4622":{"date":{"__isSmartRef__":true,"id":4623},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4623":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4624":{"date":{"__isSmartRef__":true,"id":4625},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4625":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4626":{"date":{"__isSmartRef__":true,"id":4627},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4627":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4628":{"date":{"__isSmartRef__":true,"id":4629},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4629":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4630":{"date":{"__isSmartRef__":true,"id":4631},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4631":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4632":{"date":{"__isSmartRef__":true,"id":4633},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4633":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4634":{"date":{"__isSmartRef__":true,"id":4635},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4635":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4636":{"date":{"__isSmartRef__":true,"id":4637},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4637":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4638":{"date":{"__isSmartRef__":true,"id":4639},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4639":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4640":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4641":{"morph":{"__isSmartRef__":true,"id":4517},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4642":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4643}},"4643":{"test01IsMorph":{"__isSmartRef__":true,"id":4644}},"4644":{"varMapping":{"__isSmartRef__":true,"id":4645},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4646},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4645":{"this":{"__isSmartRef__":true,"id":4642}},"4646":{},"4647":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4648":{"left":0,"up":1,"right":2,"down":3},"4649":{"submorphs":[{"__isSmartRef__":true,"id":4650}],"scripts":[],"id":"0CC10C58-785C-4BC4-9FCB-F7711857B5B0","shape":{"__isSmartRef__":true,"id":4726},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4732},"showsHalos":false,"name":"BasicGem40","partsBinMetaInfo":{"__isSmartRef__":true,"id":4733},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4772},"eventHandler":{"__isSmartRef__":true,"id":4773},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4774},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4779},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4780},"neighbours":[{"__isSmartRef__":true,"id":4517},{"__isSmartRef__":true,"id":2939},null,{"__isSmartRef__":true,"id":4781}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10578},"__LivelyClassName__":"lively.morphic.Box"},"4650":{"submorphs":[{"__isSmartRef__":true,"id":4651},{"__isSmartRef__":true,"id":4661},{"__isSmartRef__":true,"id":4671},{"__isSmartRef__":true,"id":4681},{"__isSmartRef__":true,"id":4691},{"__isSmartRef__":true,"id":4701}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4711},"derivationIds":[null],"id":"AF0CC3E8-2EA1-498F-BCB1-96DA3209EB99","renderContextTable":{"__isSmartRef__":true,"id":4723},"eventHandler":{"__isSmartRef__":true,"id":4724},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4649},"_Position":{"__isSmartRef__":true,"id":4725},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4651":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4652},"derivationIds":[null],"id":"E0D36053-CD55-4067-89D8-ACD0311EE604","renderContextTable":{"__isSmartRef__":true,"id":4659},"eventHandler":{"__isSmartRef__":true,"id":4660},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4650},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4652":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4653},{"__isSmartRef__":true,"id":4654}],"renderContextTable":{"__isSmartRef__":true,"id":4655},"_Position":{"__isSmartRef__":true,"id":4656},"_Extent":{"__isSmartRef__":true,"id":4657},"_Padding":{"__isSmartRef__":true,"id":4658},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4653":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4654":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4655":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4656":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4657":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4658":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4659":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4660":{"morph":{"__isSmartRef__":true,"id":4651},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4661":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4662},"derivationIds":[null],"id":"46F3541E-9873-46AC-A3F4-130119E6AFB5","renderContextTable":{"__isSmartRef__":true,"id":4669},"eventHandler":{"__isSmartRef__":true,"id":4670},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4650},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4662":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4663},{"__isSmartRef__":true,"id":4664}],"renderContextTable":{"__isSmartRef__":true,"id":4665},"_Position":{"__isSmartRef__":true,"id":4666},"_Extent":{"__isSmartRef__":true,"id":4667},"_Padding":{"__isSmartRef__":true,"id":4668},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4663":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4664":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4665":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4666":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4667":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4668":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4669":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4670":{"morph":{"__isSmartRef__":true,"id":4661},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4671":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4672},"derivationIds":[null],"id":"08682DB3-0FDA-4DC1-8DC7-F92E46DE575F","renderContextTable":{"__isSmartRef__":true,"id":4679},"eventHandler":{"__isSmartRef__":true,"id":4680},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4650},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4672":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4673},{"__isSmartRef__":true,"id":4674}],"renderContextTable":{"__isSmartRef__":true,"id":4675},"_Position":{"__isSmartRef__":true,"id":4676},"_Extent":{"__isSmartRef__":true,"id":4677},"_Padding":{"__isSmartRef__":true,"id":4678},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4673":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4674":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4675":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4676":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4677":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4678":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4679":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4680":{"morph":{"__isSmartRef__":true,"id":4671},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4681":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4682},"derivationIds":[null],"id":"16E8214D-81A3-4538-95E1-52AF82B9A627","renderContextTable":{"__isSmartRef__":true,"id":4689},"eventHandler":{"__isSmartRef__":true,"id":4690},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4650},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4682":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4683},{"__isSmartRef__":true,"id":4684}],"renderContextTable":{"__isSmartRef__":true,"id":4685},"_Position":{"__isSmartRef__":true,"id":4686},"_Extent":{"__isSmartRef__":true,"id":4687},"_Padding":{"__isSmartRef__":true,"id":4688},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4683":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4684":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4685":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4686":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4687":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4688":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4689":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4690":{"morph":{"__isSmartRef__":true,"id":4681},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4691":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4692},"derivationIds":[null],"id":"57EE5475-0088-4451-B286-8BE1909BF39B","renderContextTable":{"__isSmartRef__":true,"id":4699},"eventHandler":{"__isSmartRef__":true,"id":4700},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4650},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4692":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4693},{"__isSmartRef__":true,"id":4694}],"renderContextTable":{"__isSmartRef__":true,"id":4695},"_Position":{"__isSmartRef__":true,"id":4696},"_Extent":{"__isSmartRef__":true,"id":4697},"_Padding":{"__isSmartRef__":true,"id":4698},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4693":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4694":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4695":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4696":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4697":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4698":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4699":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4700":{"morph":{"__isSmartRef__":true,"id":4691},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4701":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4702},"derivationIds":[null],"id":"28748E2C-66D5-48B3-B8A8-6FFAC10A096A","renderContextTable":{"__isSmartRef__":true,"id":4709},"eventHandler":{"__isSmartRef__":true,"id":4710},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4650},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4702":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4703},{"__isSmartRef__":true,"id":4704}],"renderContextTable":{"__isSmartRef__":true,"id":4705},"_Position":{"__isSmartRef__":true,"id":4706},"_Extent":{"__isSmartRef__":true,"id":4707},"_Padding":{"__isSmartRef__":true,"id":4708},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4703":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4704":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4705":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4706":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4707":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4708":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4709":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4710":{"morph":{"__isSmartRef__":true,"id":4701},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4711":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4712},{"__isSmartRef__":true,"id":4713},{"__isSmartRef__":true,"id":4714},{"__isSmartRef__":true,"id":4715},{"__isSmartRef__":true,"id":4716},{"__isSmartRef__":true,"id":4717}],"renderContextTable":{"__isSmartRef__":true,"id":4718},"_Position":{"__isSmartRef__":true,"id":4719},"_Extent":{"__isSmartRef__":true,"id":4720},"_Padding":{"__isSmartRef__":true,"id":4721},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4722},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4712":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4713":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4714":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4715":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4716":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4717":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4718":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4719":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4720":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4721":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4722":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4723":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4724":{"morph":{"__isSmartRef__":true,"id":4650},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4725":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4726":{"position":{"__isSmartRef__":true,"id":4727},"_Extent":{"__isSmartRef__":true,"id":4728},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4729},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4730},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4731},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4727":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4728":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4729":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4730":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4731":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4732":{"x":345.42585942764214,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4733":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4734},{"__isSmartRef__":true,"id":4736},{"__isSmartRef__":true,"id":4738},{"__isSmartRef__":true,"id":4740},{"__isSmartRef__":true,"id":4742},{"__isSmartRef__":true,"id":4744},{"__isSmartRef__":true,"id":4746},{"__isSmartRef__":true,"id":4748},{"__isSmartRef__":true,"id":4750},{"__isSmartRef__":true,"id":4752},{"__isSmartRef__":true,"id":4754},{"__isSmartRef__":true,"id":4756},{"__isSmartRef__":true,"id":4758},{"__isSmartRef__":true,"id":4760},{"__isSmartRef__":true,"id":4762},{"__isSmartRef__":true,"id":4764},{"__isSmartRef__":true,"id":4766},{"__isSmartRef__":true,"id":4768},{"__isSmartRef__":true,"id":4770}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4734":{"date":{"__isSmartRef__":true,"id":4735},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4735":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4736":{"date":{"__isSmartRef__":true,"id":4737},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4737":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4738":{"date":{"__isSmartRef__":true,"id":4739},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4739":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4740":{"date":{"__isSmartRef__":true,"id":4741},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4741":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4742":{"date":{"__isSmartRef__":true,"id":4743},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4743":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4744":{"date":{"__isSmartRef__":true,"id":4745},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4745":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4746":{"date":{"__isSmartRef__":true,"id":4747},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4747":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4748":{"date":{"__isSmartRef__":true,"id":4749},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4749":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4750":{"date":{"__isSmartRef__":true,"id":4751},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4751":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4752":{"date":{"__isSmartRef__":true,"id":4753},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4753":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4754":{"date":{"__isSmartRef__":true,"id":4755},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4755":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4756":{"date":{"__isSmartRef__":true,"id":4757},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4757":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4758":{"date":{"__isSmartRef__":true,"id":4759},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4759":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4760":{"date":{"__isSmartRef__":true,"id":4761},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4761":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4762":{"date":{"__isSmartRef__":true,"id":4763},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4763":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4764":{"date":{"__isSmartRef__":true,"id":4765},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4765":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4766":{"date":{"__isSmartRef__":true,"id":4767},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4767":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4768":{"date":{"__isSmartRef__":true,"id":4769},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4769":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4770":{"date":{"__isSmartRef__":true,"id":4771},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4771":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4772":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4773":{"morph":{"__isSmartRef__":true,"id":4649},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4774":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4775}},"4775":{"test01IsMorph":{"__isSmartRef__":true,"id":4776}},"4776":{"varMapping":{"__isSmartRef__":true,"id":4777},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4778},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4777":{"this":{"__isSmartRef__":true,"id":4774}},"4778":{},"4779":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4780":{"left":0,"up":1,"right":2,"down":3},"4781":{"submorphs":[{"__isSmartRef__":true,"id":4782}],"scripts":[],"id":"3AC65B39-C4F8-4779-AFB6-9B67A7C92375","shape":{"__isSmartRef__":true,"id":4861},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4867},"showsHalos":false,"name":"BasicGem48","partsBinMetaInfo":{"__isSmartRef__":true,"id":4868},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4907},"eventHandler":{"__isSmartRef__":true,"id":4908},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":4909},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":4914},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":4915},"neighbours":[{"__isSmartRef__":true,"id":4916},{"__isSmartRef__":true,"id":4649},null,{"__isSmartRef__":true,"id":6501}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"blueDiamond","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10449},"__LivelyClassName__":"lively.morphic.Box"},"4782":{"submorphs":[{"__isSmartRef__":true,"id":4783},{"__isSmartRef__":true,"id":4794},{"__isSmartRef__":true,"id":4805},{"__isSmartRef__":true,"id":4816},{"__isSmartRef__":true,"id":4827},{"__isSmartRef__":true,"id":4838}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4849},"derivationIds":[null],"id":"F82A839F-4534-400E-8BC7-266B7FBB9135","renderContextTable":{"__isSmartRef__":true,"id":4858},"eventHandler":{"__isSmartRef__":true,"id":4859},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4781},"_Position":{"__isSmartRef__":true,"id":4860},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4783":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4784},"derivationIds":[null],"id":"0DA3CD19-E45C-41F5-89C0-61C83D13F369","renderContextTable":{"__isSmartRef__":true,"id":4792},"eventHandler":{"__isSmartRef__":true,"id":4793},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4782},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4784":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4785},{"__isSmartRef__":true,"id":4786}],"renderContextTable":{"__isSmartRef__":true,"id":4787},"_Position":{"__isSmartRef__":true,"id":4788},"_Extent":{"__isSmartRef__":true,"id":4789},"_Padding":{"__isSmartRef__":true,"id":4790},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4791},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4785":{"isAbsolute":true,"x":25,"y":11,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4786":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4787":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4788":{"x":23,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4789":{"x":3,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4790":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4791":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4792":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4793":{"morph":{"__isSmartRef__":true,"id":4783},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4794":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4795},"derivationIds":[null],"id":"AF57EBC2-12FA-4BC0-A243-E6971CDE2C26","renderContextTable":{"__isSmartRef__":true,"id":4803},"eventHandler":{"__isSmartRef__":true,"id":4804},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4782},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4795":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4796},{"__isSmartRef__":true,"id":4797}],"renderContextTable":{"__isSmartRef__":true,"id":4798},"_Position":{"__isSmartRef__":true,"id":4799},"_Extent":{"__isSmartRef__":true,"id":4800},"_Padding":{"__isSmartRef__":true,"id":4801},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4802},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4796":{"isAbsolute":true,"x":11,"y":39,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4797":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4798":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4799":{"x":9,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4800":{"x":12,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4801":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4802":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4803":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4804":{"morph":{"__isSmartRef__":true,"id":4794},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4805":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4806},"derivationIds":[null],"id":"9CA1A067-90FA-4C8C-9D97-32BD14D97FAE","renderContextTable":{"__isSmartRef__":true,"id":4814},"eventHandler":{"__isSmartRef__":true,"id":4815},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4782},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4806":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4807},{"__isSmartRef__":true,"id":4808}],"renderContextTable":{"__isSmartRef__":true,"id":4809},"_Position":{"__isSmartRef__":true,"id":4810},"_Extent":{"__isSmartRef__":true,"id":4811},"_Padding":{"__isSmartRef__":true,"id":4812},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4813},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4807":{"isAbsolute":true,"x":39,"y":39,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4808":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4809":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4810":{"x":28,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4811":{"x":12,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4812":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4813":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4814":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4815":{"morph":{"__isSmartRef__":true,"id":4805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4816":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4817},"derivationIds":[null],"id":"C2D55FAD-CDF8-4631-9613-5349467C6556","renderContextTable":{"__isSmartRef__":true,"id":4825},"eventHandler":{"__isSmartRef__":true,"id":4826},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4782},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4817":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4818},{"__isSmartRef__":true,"id":4819}],"renderContextTable":{"__isSmartRef__":true,"id":4820},"_Position":{"__isSmartRef__":true,"id":4821},"_Extent":{"__isSmartRef__":true,"id":4822},"_Padding":{"__isSmartRef__":true,"id":4823},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4824},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4818":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4819":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4820":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4821":{"x":18,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4822":{"x":13,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4823":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4824":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4825":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4826":{"morph":{"__isSmartRef__":true,"id":4816},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4827":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4828},"derivationIds":[null],"id":"6816A560-0F8E-4E71-8D68-FB1C56124830","renderContextTable":{"__isSmartRef__":true,"id":4836},"eventHandler":{"__isSmartRef__":true,"id":4837},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4782},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4828":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4829},{"__isSmartRef__":true,"id":4830}],"renderContextTable":{"__isSmartRef__":true,"id":4831},"_Position":{"__isSmartRef__":true,"id":4832},"_Extent":{"__isSmartRef__":true,"id":4833},"_Padding":{"__isSmartRef__":true,"id":4834},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4835},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4829":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4830":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4831":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4832":{"x":18,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4833":{"x":8,"y":13,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4834":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4835":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4836":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4837":{"morph":{"__isSmartRef__":true,"id":4827},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4838":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4839},"derivationIds":[null],"id":"647CE335-61E3-4E5F-B3D9-A65D93B2A44B","renderContextTable":{"__isSmartRef__":true,"id":4847},"eventHandler":{"__isSmartRef__":true,"id":4848},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4782},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4839":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4840},{"__isSmartRef__":true,"id":4841}],"renderContextTable":{"__isSmartRef__":true,"id":4842},"_Position":{"__isSmartRef__":true,"id":4843},"_Extent":{"__isSmartRef__":true,"id":4844},"_Padding":{"__isSmartRef__":true,"id":4845},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4846},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4840":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4841":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4842":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4843":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4844":{"x":8,"y":13,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4845":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4846":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4847":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4848":{"morph":{"__isSmartRef__":true,"id":4838},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4849":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4850},{"__isSmartRef__":true,"id":4851},{"__isSmartRef__":true,"id":4852}],"renderContextTable":{"__isSmartRef__":true,"id":4853},"_Position":{"__isSmartRef__":true,"id":4854},"_Extent":{"__isSmartRef__":true,"id":4855},"_Padding":{"__isSmartRef__":true,"id":4856},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4857},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4850":{"isAbsolute":true,"x":25,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4851":{"isAbsolute":true,"x":10,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4852":{"isAbsolute":true,"x":40,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4853":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4854":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4855":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4856":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4857":{"r":0,"g":0,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4858":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4859":{"morph":{"__isSmartRef__":true,"id":4782},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4860":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4861":{"position":{"__isSmartRef__":true,"id":4862},"_Extent":{"__isSmartRef__":true,"id":4863},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4864},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4865},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4866},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4862":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4863":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4864":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4865":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4866":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4867":{"x":345.42585942764214,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4868":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4869},{"__isSmartRef__":true,"id":4871},{"__isSmartRef__":true,"id":4873},{"__isSmartRef__":true,"id":4875},{"__isSmartRef__":true,"id":4877},{"__isSmartRef__":true,"id":4879},{"__isSmartRef__":true,"id":4881},{"__isSmartRef__":true,"id":4883},{"__isSmartRef__":true,"id":4885},{"__isSmartRef__":true,"id":4887},{"__isSmartRef__":true,"id":4889},{"__isSmartRef__":true,"id":4891},{"__isSmartRef__":true,"id":4893},{"__isSmartRef__":true,"id":4895},{"__isSmartRef__":true,"id":4897},{"__isSmartRef__":true,"id":4899},{"__isSmartRef__":true,"id":4901},{"__isSmartRef__":true,"id":4903},{"__isSmartRef__":true,"id":4905}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4869":{"date":{"__isSmartRef__":true,"id":4870},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4870":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4871":{"date":{"__isSmartRef__":true,"id":4872},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4872":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4873":{"date":{"__isSmartRef__":true,"id":4874},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4874":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4875":{"date":{"__isSmartRef__":true,"id":4876},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4876":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4877":{"date":{"__isSmartRef__":true,"id":4878},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4878":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4879":{"date":{"__isSmartRef__":true,"id":4880},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4880":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4881":{"date":{"__isSmartRef__":true,"id":4882},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4882":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4883":{"date":{"__isSmartRef__":true,"id":4884},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4884":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4885":{"date":{"__isSmartRef__":true,"id":4886},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4886":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4887":{"date":{"__isSmartRef__":true,"id":4888},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4888":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4889":{"date":{"__isSmartRef__":true,"id":4890},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4890":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4891":{"date":{"__isSmartRef__":true,"id":4892},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4892":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4893":{"date":{"__isSmartRef__":true,"id":4894},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4894":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4895":{"date":{"__isSmartRef__":true,"id":4896},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4896":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4897":{"date":{"__isSmartRef__":true,"id":4898},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4898":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4899":{"date":{"__isSmartRef__":true,"id":4900},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4900":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4901":{"date":{"__isSmartRef__":true,"id":4902},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4902":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4903":{"date":{"__isSmartRef__":true,"id":4904},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4904":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4905":{"date":{"__isSmartRef__":true,"id":4906},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4906":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4907":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4908":{"morph":{"__isSmartRef__":true,"id":4781},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"4909":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":4910}},"4910":{"test01IsMorph":{"__isSmartRef__":true,"id":4911}},"4911":{"varMapping":{"__isSmartRef__":true,"id":4912},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":4913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"4912":{"this":{"__isSmartRef__":true,"id":4909}},"4913":{},"4914":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4915":{"left":0,"up":1,"right":2,"down":3},"4916":{"submorphs":[{"__isSmartRef__":true,"id":4917}],"scripts":[],"id":"6D5F5E7A-727B-49F7-8A60-508C2549267B","shape":{"__isSmartRef__":true,"id":4953},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":4959},"showsHalos":false,"name":"BasicGem47","partsBinMetaInfo":{"__isSmartRef__":true,"id":4960},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":4999},"eventHandler":{"__isSmartRef__":true,"id":5000},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5001},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5006},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5007},"neighbours":[{"__isSmartRef__":true,"id":5008},{"__isSmartRef__":true,"id":4517},{"__isSmartRef__":true,"id":4781},{"__isSmartRef__":true,"id":6409}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"amethyst","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":4959},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10320},"__LivelyClassName__":"lively.morphic.Box"},"4917":{"submorphs":[{"__isSmartRef__":true,"id":4918},{"__isSmartRef__":true,"id":4929}],"scripts":[],"shape":{"__isSmartRef__":true,"id":4940},"derivationIds":[null],"id":"3F1413CB-7C04-441B-B6A8-2F76256FA0BE","renderContextTable":{"__isSmartRef__":true,"id":4950},"eventHandler":{"__isSmartRef__":true,"id":4951},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4916},"_Position":{"__isSmartRef__":true,"id":4952},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4918":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4919},"derivationIds":[null],"id":"F7EB5CBE-107F-480B-B268-CCF1FDE8355C","renderContextTable":{"__isSmartRef__":true,"id":4927},"eventHandler":{"__isSmartRef__":true,"id":4928},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4917},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4919":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4920},{"__isSmartRef__":true,"id":4921}],"renderContextTable":{"__isSmartRef__":true,"id":4922},"_Position":{"__isSmartRef__":true,"id":4923},"_Extent":{"__isSmartRef__":true,"id":4924},"_Padding":{"__isSmartRef__":true,"id":4925},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4926},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4920":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4921":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4922":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4923":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4924":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4925":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4926":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4927":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4928":{"morph":{"__isSmartRef__":true,"id":4918},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4929":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":4930},"derivationIds":[null],"id":"9A6FDDEA-3C8F-4E0E-9DE5-665444A16D16","renderContextTable":{"__isSmartRef__":true,"id":4938},"eventHandler":{"__isSmartRef__":true,"id":4939},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":4917},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"4930":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4931},{"__isSmartRef__":true,"id":4932}],"renderContextTable":{"__isSmartRef__":true,"id":4933},"_Position":{"__isSmartRef__":true,"id":4934},"_Extent":{"__isSmartRef__":true,"id":4935},"_Padding":{"__isSmartRef__":true,"id":4936},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":4937},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4931":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4932":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4933":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4934":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4935":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4936":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4937":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4938":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4939":{"morph":{"__isSmartRef__":true,"id":4929},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4940":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":4941},{"__isSmartRef__":true,"id":4942},{"__isSmartRef__":true,"id":4943},{"__isSmartRef__":true,"id":4944}],"renderContextTable":{"__isSmartRef__":true,"id":4945},"_Position":{"__isSmartRef__":true,"id":4946},"_Extent":{"__isSmartRef__":true,"id":4947},"_Padding":{"__isSmartRef__":true,"id":4948},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":4949},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4941":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4942":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4943":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4944":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"4945":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"4946":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4947":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4948":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4949":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4950":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"4951":{"morph":{"__isSmartRef__":true,"id":4917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"4952":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4953":{"position":{"__isSmartRef__":true,"id":4954},"_Extent":{"__isSmartRef__":true,"id":4955},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":4956},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":4957},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":4958},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"4954":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4955":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"4956":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"4957":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"4958":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"4959":{"x":296.22216522369325,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"4960":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":4961},{"__isSmartRef__":true,"id":4963},{"__isSmartRef__":true,"id":4965},{"__isSmartRef__":true,"id":4967},{"__isSmartRef__":true,"id":4969},{"__isSmartRef__":true,"id":4971},{"__isSmartRef__":true,"id":4973},{"__isSmartRef__":true,"id":4975},{"__isSmartRef__":true,"id":4977},{"__isSmartRef__":true,"id":4979},{"__isSmartRef__":true,"id":4981},{"__isSmartRef__":true,"id":4983},{"__isSmartRef__":true,"id":4985},{"__isSmartRef__":true,"id":4987},{"__isSmartRef__":true,"id":4989},{"__isSmartRef__":true,"id":4991},{"__isSmartRef__":true,"id":4993},{"__isSmartRef__":true,"id":4995},{"__isSmartRef__":true,"id":4997}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"4961":{"date":{"__isSmartRef__":true,"id":4962},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"4962":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"4963":{"date":{"__isSmartRef__":true,"id":4964},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"4964":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"4965":{"date":{"__isSmartRef__":true,"id":4966},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"4966":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"4967":{"date":{"__isSmartRef__":true,"id":4968},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"4968":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"4969":{"date":{"__isSmartRef__":true,"id":4970},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"4970":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"4971":{"date":{"__isSmartRef__":true,"id":4972},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"4972":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"4973":{"date":{"__isSmartRef__":true,"id":4974},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"4974":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"4975":{"date":{"__isSmartRef__":true,"id":4976},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"4976":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"4977":{"date":{"__isSmartRef__":true,"id":4978},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"4978":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"4979":{"date":{"__isSmartRef__":true,"id":4980},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"4980":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"4981":{"date":{"__isSmartRef__":true,"id":4982},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"4982":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"4983":{"date":{"__isSmartRef__":true,"id":4984},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"4984":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"4985":{"date":{"__isSmartRef__":true,"id":4986},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"4986":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"4987":{"date":{"__isSmartRef__":true,"id":4988},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"4988":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"4989":{"date":{"__isSmartRef__":true,"id":4990},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"4990":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"4991":{"date":{"__isSmartRef__":true,"id":4992},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"4992":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"4993":{"date":{"__isSmartRef__":true,"id":4994},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"4994":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"4995":{"date":{"__isSmartRef__":true,"id":4996},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"4996":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"4997":{"date":{"__isSmartRef__":true,"id":4998},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"4998":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"4999":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5000":{"morph":{"__isSmartRef__":true,"id":4916},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5001":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5002}},"5002":{"test01IsMorph":{"__isSmartRef__":true,"id":5003}},"5003":{"varMapping":{"__isSmartRef__":true,"id":5004},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5005},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5004":{"this":{"__isSmartRef__":true,"id":5001}},"5005":{},"5006":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5007":{"left":0,"up":1,"right":2,"down":3},"5008":{"submorphs":[{"__isSmartRef__":true,"id":5009}],"scripts":[],"id":"65ADFE09-1D7E-45EC-BD13-348B7E2674ED","shape":{"__isSmartRef__":true,"id":5071},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5077},"showsHalos":false,"name":"BasicGem46","partsBinMetaInfo":{"__isSmartRef__":true,"id":5078},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5117},"eventHandler":{"__isSmartRef__":true,"id":5118},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5119},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5124},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5125},"neighbours":[{"__isSmartRef__":true,"id":5126},{"__isSmartRef__":true,"id":4416},{"__isSmartRef__":true,"id":4916},{"__isSmartRef__":true,"id":6317}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":10190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10191},"__LivelyClassName__":"lively.morphic.Box"},"5009":{"submorphs":[{"__isSmartRef__":true,"id":5010},{"__isSmartRef__":true,"id":5021},{"__isSmartRef__":true,"id":5032},{"__isSmartRef__":true,"id":5043}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5054},"derivationIds":[null],"id":"691C5EB7-0174-4342-811F-2AABA5C8AFAD","renderContextTable":{"__isSmartRef__":true,"id":5068},"eventHandler":{"__isSmartRef__":true,"id":5069},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5008},"_Position":{"__isSmartRef__":true,"id":5070},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5010":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5011},"derivationIds":[null],"id":"513E03F5-DC8F-46BF-A923-C6FB48D75721","renderContextTable":{"__isSmartRef__":true,"id":5019},"eventHandler":{"__isSmartRef__":true,"id":5020},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5009},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5011":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5012},{"__isSmartRef__":true,"id":5013}],"renderContextTable":{"__isSmartRef__":true,"id":5014},"_Position":{"__isSmartRef__":true,"id":5015},"_Extent":{"__isSmartRef__":true,"id":5016},"_Padding":{"__isSmartRef__":true,"id":5017},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5018},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5012":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5013":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5014":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5015":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5016":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5017":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5018":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5019":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5020":{"morph":{"__isSmartRef__":true,"id":5010},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5021":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5022},"derivationIds":[null],"id":"3178B3CE-79E5-4A96-ADFD-2757A44C9158","renderContextTable":{"__isSmartRef__":true,"id":5030},"eventHandler":{"__isSmartRef__":true,"id":5031},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5009},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5022":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5023},{"__isSmartRef__":true,"id":5024}],"renderContextTable":{"__isSmartRef__":true,"id":5025},"_Position":{"__isSmartRef__":true,"id":5026},"_Extent":{"__isSmartRef__":true,"id":5027},"_Padding":{"__isSmartRef__":true,"id":5028},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5029},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5023":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5024":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5025":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5026":{"x":15,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5027":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5028":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5029":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5030":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5031":{"morph":{"__isSmartRef__":true,"id":5021},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5032":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5033},"derivationIds":[null],"id":"FE6B4C49-3AAF-43D4-9B27-E59F23D31356","renderContextTable":{"__isSmartRef__":true,"id":5041},"eventHandler":{"__isSmartRef__":true,"id":5042},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5009},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5033":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5034},{"__isSmartRef__":true,"id":5035}],"renderContextTable":{"__isSmartRef__":true,"id":5036},"_Position":{"__isSmartRef__":true,"id":5037},"_Extent":{"__isSmartRef__":true,"id":5038},"_Padding":{"__isSmartRef__":true,"id":5039},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5040},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5034":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5035":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5036":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5037":{"x":31,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5038":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5039":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5040":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5041":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5042":{"morph":{"__isSmartRef__":true,"id":5032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5043":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5044},"derivationIds":[null],"id":"D127ADF5-8777-4B98-8A99-96AC066E48B9","renderContextTable":{"__isSmartRef__":true,"id":5052},"eventHandler":{"__isSmartRef__":true,"id":5053},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5009},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5044":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5045},{"__isSmartRef__":true,"id":5046}],"renderContextTable":{"__isSmartRef__":true,"id":5047},"_Position":{"__isSmartRef__":true,"id":5048},"_Extent":{"__isSmartRef__":true,"id":5049},"_Padding":{"__isSmartRef__":true,"id":5050},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5051},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5045":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5046":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5047":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5048":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5049":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5050":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5051":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5052":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5053":{"morph":{"__isSmartRef__":true,"id":5043},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5054":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5055},{"__isSmartRef__":true,"id":5056},{"__isSmartRef__":true,"id":5057},{"__isSmartRef__":true,"id":5058},{"__isSmartRef__":true,"id":5059},{"__isSmartRef__":true,"id":5060},{"__isSmartRef__":true,"id":5061},{"__isSmartRef__":true,"id":5062}],"renderContextTable":{"__isSmartRef__":true,"id":5063},"_Position":{"__isSmartRef__":true,"id":5064},"_Extent":{"__isSmartRef__":true,"id":5065},"_Padding":{"__isSmartRef__":true,"id":5066},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5067},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5055":{"isAbsolute":true,"x":14,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5056":{"isAbsolute":true,"x":36,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5057":{"isAbsolute":true,"x":41,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5058":{"isAbsolute":true,"x":41,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5059":{"isAbsolute":true,"x":36,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5060":{"isAbsolute":true,"x":14,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5061":{"isAbsolute":true,"x":9,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5062":{"isAbsolute":true,"x":9,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5063":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5064":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5065":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5066":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5067":{"r":0.5411764705882353,"g":0.1568627450980392,"b":0.5607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5068":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5069":{"morph":{"__isSmartRef__":true,"id":5009},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5070":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5071":{"position":{"__isSmartRef__":true,"id":5072},"_Extent":{"__isSmartRef__":true,"id":5073},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5074},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5075},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5076},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5072":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5073":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5074":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5075":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5076":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5077":{"x":247.0184710197444,"y":310.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5078":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5079},{"__isSmartRef__":true,"id":5081},{"__isSmartRef__":true,"id":5083},{"__isSmartRef__":true,"id":5085},{"__isSmartRef__":true,"id":5087},{"__isSmartRef__":true,"id":5089},{"__isSmartRef__":true,"id":5091},{"__isSmartRef__":true,"id":5093},{"__isSmartRef__":true,"id":5095},{"__isSmartRef__":true,"id":5097},{"__isSmartRef__":true,"id":5099},{"__isSmartRef__":true,"id":5101},{"__isSmartRef__":true,"id":5103},{"__isSmartRef__":true,"id":5105},{"__isSmartRef__":true,"id":5107},{"__isSmartRef__":true,"id":5109},{"__isSmartRef__":true,"id":5111},{"__isSmartRef__":true,"id":5113},{"__isSmartRef__":true,"id":5115}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5079":{"date":{"__isSmartRef__":true,"id":5080},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5080":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5081":{"date":{"__isSmartRef__":true,"id":5082},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5082":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5083":{"date":{"__isSmartRef__":true,"id":5084},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5084":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5085":{"date":{"__isSmartRef__":true,"id":5086},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5086":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5087":{"date":{"__isSmartRef__":true,"id":5088},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5088":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5089":{"date":{"__isSmartRef__":true,"id":5090},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5090":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5091":{"date":{"__isSmartRef__":true,"id":5092},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5092":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5093":{"date":{"__isSmartRef__":true,"id":5094},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5094":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5095":{"date":{"__isSmartRef__":true,"id":5096},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5096":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5097":{"date":{"__isSmartRef__":true,"id":5098},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5098":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5099":{"date":{"__isSmartRef__":true,"id":5100},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5100":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5101":{"date":{"__isSmartRef__":true,"id":5102},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5102":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5103":{"date":{"__isSmartRef__":true,"id":5104},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5104":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5105":{"date":{"__isSmartRef__":true,"id":5106},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5106":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5107":{"date":{"__isSmartRef__":true,"id":5108},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5108":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5109":{"date":{"__isSmartRef__":true,"id":5110},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5110":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5111":{"date":{"__isSmartRef__":true,"id":5112},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5112":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5113":{"date":{"__isSmartRef__":true,"id":5114},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5114":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5115":{"date":{"__isSmartRef__":true,"id":5116},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5116":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5117":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5118":{"morph":{"__isSmartRef__":true,"id":5008},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5119":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5120}},"5120":{"test01IsMorph":{"__isSmartRef__":true,"id":5121}},"5121":{"varMapping":{"__isSmartRef__":true,"id":5122},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5123},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5122":{"this":{"__isSmartRef__":true,"id":5119}},"5123":{},"5124":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5125":{"left":0,"up":1,"right":2,"down":3},"5126":{"submorphs":[{"__isSmartRef__":true,"id":5127}],"scripts":[],"id":"79CD7157-F723-4BE2-97E1-6D8009A8D02B","shape":{"__isSmartRef__":true,"id":5189},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5195},"showsHalos":false,"name":"BasicGem45","partsBinMetaInfo":{"__isSmartRef__":true,"id":5196},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5235},"eventHandler":{"__isSmartRef__":true,"id":5236},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5237},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5242},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5243},"neighbours":[{"__isSmartRef__":true,"id":5244},{"__isSmartRef__":true,"id":4298},{"__isSmartRef__":true,"id":5008},{"__isSmartRef__":true,"id":6199}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":5195},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10061},"__LivelyClassName__":"lively.morphic.Box"},"5127":{"submorphs":[{"__isSmartRef__":true,"id":5128},{"__isSmartRef__":true,"id":5139},{"__isSmartRef__":true,"id":5150},{"__isSmartRef__":true,"id":5161}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5172},"derivationIds":[null],"id":"57FB2624-D068-4183-B535-582D6A66DD51","renderContextTable":{"__isSmartRef__":true,"id":5186},"eventHandler":{"__isSmartRef__":true,"id":5187},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5126},"_Position":{"__isSmartRef__":true,"id":5188},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5128":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5129},"derivationIds":[null],"id":"96EB0C7F-4AE2-4966-8926-9025AB80BAAF","renderContextTable":{"__isSmartRef__":true,"id":5137},"eventHandler":{"__isSmartRef__":true,"id":5138},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5127},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5129":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5130},{"__isSmartRef__":true,"id":5131}],"renderContextTable":{"__isSmartRef__":true,"id":5132},"_Position":{"__isSmartRef__":true,"id":5133},"_Extent":{"__isSmartRef__":true,"id":5134},"_Padding":{"__isSmartRef__":true,"id":5135},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5136},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5130":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5131":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5132":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5133":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5134":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5135":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5136":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5137":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5138":{"morph":{"__isSmartRef__":true,"id":5128},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5139":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5140},"derivationIds":[null],"id":"9D46A697-3C78-4FB8-AD36-166619632377","renderContextTable":{"__isSmartRef__":true,"id":5148},"eventHandler":{"__isSmartRef__":true,"id":5149},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5127},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5140":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5141},{"__isSmartRef__":true,"id":5142}],"renderContextTable":{"__isSmartRef__":true,"id":5143},"_Position":{"__isSmartRef__":true,"id":5144},"_Extent":{"__isSmartRef__":true,"id":5145},"_Padding":{"__isSmartRef__":true,"id":5146},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5147},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5141":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5142":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5143":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5144":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5145":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5146":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5147":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5148":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5149":{"morph":{"__isSmartRef__":true,"id":5139},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5150":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5151},"derivationIds":[null],"id":"834DE62D-C2A7-4D47-95A4-C78863418E31","renderContextTable":{"__isSmartRef__":true,"id":5159},"eventHandler":{"__isSmartRef__":true,"id":5160},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5127},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5151":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5152},{"__isSmartRef__":true,"id":5153}],"renderContextTable":{"__isSmartRef__":true,"id":5154},"_Position":{"__isSmartRef__":true,"id":5155},"_Extent":{"__isSmartRef__":true,"id":5156},"_Padding":{"__isSmartRef__":true,"id":5157},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5158},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5152":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5153":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5154":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5155":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5156":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5157":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5158":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5159":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5160":{"morph":{"__isSmartRef__":true,"id":5150},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5161":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5162},"derivationIds":[null],"id":"66BC9BEA-8C4C-4E93-B92C-832D0458C645","renderContextTable":{"__isSmartRef__":true,"id":5170},"eventHandler":{"__isSmartRef__":true,"id":5171},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5127},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5162":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5163},{"__isSmartRef__":true,"id":5164}],"renderContextTable":{"__isSmartRef__":true,"id":5165},"_Position":{"__isSmartRef__":true,"id":5166},"_Extent":{"__isSmartRef__":true,"id":5167},"_Padding":{"__isSmartRef__":true,"id":5168},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5169},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5163":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5164":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5165":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5166":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5167":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5168":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5169":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5170":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5171":{"morph":{"__isSmartRef__":true,"id":5161},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5172":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5173},{"__isSmartRef__":true,"id":5174},{"__isSmartRef__":true,"id":5175},{"__isSmartRef__":true,"id":5176},{"__isSmartRef__":true,"id":5177},{"__isSmartRef__":true,"id":5178},{"__isSmartRef__":true,"id":5179},{"__isSmartRef__":true,"id":5180}],"renderContextTable":{"__isSmartRef__":true,"id":5181},"_Position":{"__isSmartRef__":true,"id":5182},"_Extent":{"__isSmartRef__":true,"id":5183},"_Padding":{"__isSmartRef__":true,"id":5184},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5185},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5173":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5174":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5175":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5176":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5177":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5178":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5179":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5180":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5182":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5183":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5184":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5185":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5187":{"morph":{"__isSmartRef__":true,"id":5127},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5188":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5189":{"position":{"__isSmartRef__":true,"id":5190},"_Extent":{"__isSmartRef__":true,"id":5191},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5192},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5193},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5194},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5190":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5191":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5192":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5193":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5194":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5195":{"x":197.8147768157955,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5196":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5197},{"__isSmartRef__":true,"id":5199},{"__isSmartRef__":true,"id":5201},{"__isSmartRef__":true,"id":5203},{"__isSmartRef__":true,"id":5205},{"__isSmartRef__":true,"id":5207},{"__isSmartRef__":true,"id":5209},{"__isSmartRef__":true,"id":5211},{"__isSmartRef__":true,"id":5213},{"__isSmartRef__":true,"id":5215},{"__isSmartRef__":true,"id":5217},{"__isSmartRef__":true,"id":5219},{"__isSmartRef__":true,"id":5221},{"__isSmartRef__":true,"id":5223},{"__isSmartRef__":true,"id":5225},{"__isSmartRef__":true,"id":5227},{"__isSmartRef__":true,"id":5229},{"__isSmartRef__":true,"id":5231},{"__isSmartRef__":true,"id":5233}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5197":{"date":{"__isSmartRef__":true,"id":5198},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5198":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5199":{"date":{"__isSmartRef__":true,"id":5200},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5200":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5201":{"date":{"__isSmartRef__":true,"id":5202},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5202":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5203":{"date":{"__isSmartRef__":true,"id":5204},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5204":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5205":{"date":{"__isSmartRef__":true,"id":5206},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5206":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5207":{"date":{"__isSmartRef__":true,"id":5208},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5208":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5209":{"date":{"__isSmartRef__":true,"id":5210},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5210":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5211":{"date":{"__isSmartRef__":true,"id":5212},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5212":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5213":{"date":{"__isSmartRef__":true,"id":5214},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5214":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5215":{"date":{"__isSmartRef__":true,"id":5216},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5216":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5217":{"date":{"__isSmartRef__":true,"id":5218},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5218":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5219":{"date":{"__isSmartRef__":true,"id":5220},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5220":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5221":{"date":{"__isSmartRef__":true,"id":5222},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5222":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5223":{"date":{"__isSmartRef__":true,"id":5224},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5224":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5225":{"date":{"__isSmartRef__":true,"id":5226},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5226":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5227":{"date":{"__isSmartRef__":true,"id":5228},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5228":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5229":{"date":{"__isSmartRef__":true,"id":5230},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5230":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5231":{"date":{"__isSmartRef__":true,"id":5232},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5232":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5233":{"date":{"__isSmartRef__":true,"id":5234},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5234":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5235":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5236":{"morph":{"__isSmartRef__":true,"id":5126},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5237":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5238}},"5238":{"test01IsMorph":{"__isSmartRef__":true,"id":5239}},"5239":{"varMapping":{"__isSmartRef__":true,"id":5240},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5241},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5240":{"this":{"__isSmartRef__":true,"id":5237}},"5241":{},"5242":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5243":{"left":0,"up":1,"right":2,"down":3},"5244":{"submorphs":[{"__isSmartRef__":true,"id":5245}],"scripts":[],"id":"0F210EA2-CF4A-49F9-915C-5342FA606D06","shape":{"__isSmartRef__":true,"id":5324},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5330},"showsHalos":false,"name":"BasicGem44","partsBinMetaInfo":{"__isSmartRef__":true,"id":5331},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5370},"eventHandler":{"__isSmartRef__":true,"id":5371},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5372},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5377},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5378},"neighbours":[{"__isSmartRef__":true,"id":5379},{"__isSmartRef__":true,"id":4166},{"__isSmartRef__":true,"id":5126},{"__isSmartRef__":true,"id":6067}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":9931},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9932},"__LivelyClassName__":"lively.morphic.Box"},"5245":{"submorphs":[{"__isSmartRef__":true,"id":5246},{"__isSmartRef__":true,"id":5257},{"__isSmartRef__":true,"id":5268},{"__isSmartRef__":true,"id":5279},{"__isSmartRef__":true,"id":5290},{"__isSmartRef__":true,"id":5301}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5312},"derivationIds":[null],"id":"155CE033-091B-4B57-AA03-C8A3843D4BF1","renderContextTable":{"__isSmartRef__":true,"id":5321},"eventHandler":{"__isSmartRef__":true,"id":5322},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5244},"_Position":{"__isSmartRef__":true,"id":5323},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5246":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5247},"derivationIds":[null],"id":"D41747AF-12F9-4598-90CB-F811B1B7B31E","renderContextTable":{"__isSmartRef__":true,"id":5255},"eventHandler":{"__isSmartRef__":true,"id":5256},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5245},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5247":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5248},{"__isSmartRef__":true,"id":5249}],"renderContextTable":{"__isSmartRef__":true,"id":5250},"_Position":{"__isSmartRef__":true,"id":5251},"_Extent":{"__isSmartRef__":true,"id":5252},"_Padding":{"__isSmartRef__":true,"id":5253},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5254},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5248":{"isAbsolute":true,"x":25,"y":11,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5249":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5250":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5251":{"x":23,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5252":{"x":3,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5253":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5254":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5255":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5256":{"morph":{"__isSmartRef__":true,"id":5246},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5257":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5258},"derivationIds":[null],"id":"C5CD1609-460D-4040-8D41-59D89F0985B9","renderContextTable":{"__isSmartRef__":true,"id":5266},"eventHandler":{"__isSmartRef__":true,"id":5267},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5245},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5258":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5259},{"__isSmartRef__":true,"id":5260}],"renderContextTable":{"__isSmartRef__":true,"id":5261},"_Position":{"__isSmartRef__":true,"id":5262},"_Extent":{"__isSmartRef__":true,"id":5263},"_Padding":{"__isSmartRef__":true,"id":5264},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5265},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5259":{"isAbsolute":true,"x":11,"y":39,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5260":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5261":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5262":{"x":9,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5263":{"x":12,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5264":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5265":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5266":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5267":{"morph":{"__isSmartRef__":true,"id":5257},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5268":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5269},"derivationIds":[null],"id":"7816F55F-7BE3-4B3F-898F-680739EA1C59","renderContextTable":{"__isSmartRef__":true,"id":5277},"eventHandler":{"__isSmartRef__":true,"id":5278},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5245},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5269":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5270},{"__isSmartRef__":true,"id":5271}],"renderContextTable":{"__isSmartRef__":true,"id":5272},"_Position":{"__isSmartRef__":true,"id":5273},"_Extent":{"__isSmartRef__":true,"id":5274},"_Padding":{"__isSmartRef__":true,"id":5275},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5276},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5270":{"isAbsolute":true,"x":39,"y":39,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5271":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5272":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5273":{"x":28,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5274":{"x":12,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5276":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5277":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5278":{"morph":{"__isSmartRef__":true,"id":5268},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5279":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5280},"derivationIds":[null],"id":"4AF872F6-49AF-4FC8-BD6E-E74F34218D6E","renderContextTable":{"__isSmartRef__":true,"id":5288},"eventHandler":{"__isSmartRef__":true,"id":5289},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5245},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5280":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5281},{"__isSmartRef__":true,"id":5282}],"renderContextTable":{"__isSmartRef__":true,"id":5283},"_Position":{"__isSmartRef__":true,"id":5284},"_Extent":{"__isSmartRef__":true,"id":5285},"_Padding":{"__isSmartRef__":true,"id":5286},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5287},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5281":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5282":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5283":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5284":{"x":18,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5285":{"x":13,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5286":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5287":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5288":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5289":{"morph":{"__isSmartRef__":true,"id":5279},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5290":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5291},"derivationIds":[null],"id":"C04B7DCF-04DD-4D96-BF9B-84CC212FDE33","renderContextTable":{"__isSmartRef__":true,"id":5299},"eventHandler":{"__isSmartRef__":true,"id":5300},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5245},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5291":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5292},{"__isSmartRef__":true,"id":5293}],"renderContextTable":{"__isSmartRef__":true,"id":5294},"_Position":{"__isSmartRef__":true,"id":5295},"_Extent":{"__isSmartRef__":true,"id":5296},"_Padding":{"__isSmartRef__":true,"id":5297},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5298},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5292":{"isAbsolute":true,"x":20,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5293":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5294":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5295":{"x":18,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5296":{"x":8,"y":13,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5297":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5298":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5300":{"morph":{"__isSmartRef__":true,"id":5290},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5301":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5302},"derivationIds":[null],"id":"D84984CA-091C-4D9F-88C6-A2B60F2982E5","renderContextTable":{"__isSmartRef__":true,"id":5310},"eventHandler":{"__isSmartRef__":true,"id":5311},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5245},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5302":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5303},{"__isSmartRef__":true,"id":5304}],"renderContextTable":{"__isSmartRef__":true,"id":5305},"_Position":{"__isSmartRef__":true,"id":5306},"_Extent":{"__isSmartRef__":true,"id":5307},"_Padding":{"__isSmartRef__":true,"id":5308},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5309},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5303":{"isAbsolute":true,"x":30,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5304":{"isAbsolute":true,"x":25,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5305":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5306":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5307":{"x":8,"y":13,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5308":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5309":{"r":0.7019607843137254,"g":0.7019607843137254,"b":0.9607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5310":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5311":{"morph":{"__isSmartRef__":true,"id":5301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5312":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5313},{"__isSmartRef__":true,"id":5314},{"__isSmartRef__":true,"id":5315}],"renderContextTable":{"__isSmartRef__":true,"id":5316},"_Position":{"__isSmartRef__":true,"id":5317},"_Extent":{"__isSmartRef__":true,"id":5318},"_Padding":{"__isSmartRef__":true,"id":5319},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5320},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5313":{"isAbsolute":true,"x":25,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5314":{"isAbsolute":true,"x":10,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5315":{"isAbsolute":true,"x":40,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5316":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5317":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5318":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5319":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5320":{"r":0,"g":0,"b":0.8,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5321":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5322":{"morph":{"__isSmartRef__":true,"id":5245},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5323":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5324":{"position":{"__isSmartRef__":true,"id":5325},"_Extent":{"__isSmartRef__":true,"id":5326},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5327},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5328},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5329},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5325":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5326":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5327":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5328":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5329":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5330":{"x":148.61108261184663,"y":310.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5331":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5332},{"__isSmartRef__":true,"id":5334},{"__isSmartRef__":true,"id":5336},{"__isSmartRef__":true,"id":5338},{"__isSmartRef__":true,"id":5340},{"__isSmartRef__":true,"id":5342},{"__isSmartRef__":true,"id":5344},{"__isSmartRef__":true,"id":5346},{"__isSmartRef__":true,"id":5348},{"__isSmartRef__":true,"id":5350},{"__isSmartRef__":true,"id":5352},{"__isSmartRef__":true,"id":5354},{"__isSmartRef__":true,"id":5356},{"__isSmartRef__":true,"id":5358},{"__isSmartRef__":true,"id":5360},{"__isSmartRef__":true,"id":5362},{"__isSmartRef__":true,"id":5364},{"__isSmartRef__":true,"id":5366},{"__isSmartRef__":true,"id":5368}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5332":{"date":{"__isSmartRef__":true,"id":5333},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5333":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5334":{"date":{"__isSmartRef__":true,"id":5335},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5335":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5336":{"date":{"__isSmartRef__":true,"id":5337},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5337":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5338":{"date":{"__isSmartRef__":true,"id":5339},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5339":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5340":{"date":{"__isSmartRef__":true,"id":5341},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5341":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5342":{"date":{"__isSmartRef__":true,"id":5343},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5343":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5344":{"date":{"__isSmartRef__":true,"id":5345},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5345":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5346":{"date":{"__isSmartRef__":true,"id":5347},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5347":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5348":{"date":{"__isSmartRef__":true,"id":5349},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5349":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5350":{"date":{"__isSmartRef__":true,"id":5351},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5351":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5352":{"date":{"__isSmartRef__":true,"id":5353},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5353":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5354":{"date":{"__isSmartRef__":true,"id":5355},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5355":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5356":{"date":{"__isSmartRef__":true,"id":5357},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5357":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5358":{"date":{"__isSmartRef__":true,"id":5359},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5359":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5360":{"date":{"__isSmartRef__":true,"id":5361},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5361":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5362":{"date":{"__isSmartRef__":true,"id":5363},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5363":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5364":{"date":{"__isSmartRef__":true,"id":5365},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5365":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5366":{"date":{"__isSmartRef__":true,"id":5367},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5367":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5368":{"date":{"__isSmartRef__":true,"id":5369},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5369":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5370":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5371":{"morph":{"__isSmartRef__":true,"id":5244},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5372":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5373}},"5373":{"test01IsMorph":{"__isSmartRef__":true,"id":5374}},"5374":{"varMapping":{"__isSmartRef__":true,"id":5375},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5376},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5375":{"this":{"__isSmartRef__":true,"id":5372}},"5376":{},"5377":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5378":{"left":0,"up":1,"right":2,"down":3},"5379":{"submorphs":[{"__isSmartRef__":true,"id":5380}],"scripts":[],"id":"9D760175-6926-4A57-9355-4AF2616316A1","shape":{"__isSmartRef__":true,"id":5425},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5431},"showsHalos":false,"name":"BasicGem43","partsBinMetaInfo":{"__isSmartRef__":true,"id":5432},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5471},"eventHandler":{"__isSmartRef__":true,"id":5472},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5473},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5478},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5479},"neighbours":[{"__isSmartRef__":true,"id":5480},{"__isSmartRef__":true,"id":4074},{"__isSmartRef__":true,"id":5244},{"__isSmartRef__":true,"id":5949}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9802},"__LivelyClassName__":"lively.morphic.Box"},"5380":{"submorphs":[{"__isSmartRef__":true,"id":5381},{"__isSmartRef__":true,"id":5391},{"__isSmartRef__":true,"id":5401}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5411},"derivationIds":[null],"id":"4C492BDE-1646-4A98-A87F-EBE2DDFC00F4","renderContextTable":{"__isSmartRef__":true,"id":5422},"eventHandler":{"__isSmartRef__":true,"id":5423},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5379},"_Position":{"__isSmartRef__":true,"id":5424},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5381":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5382},"derivationIds":[null],"id":"15CB8D38-1B8A-4765-830C-55C7CE30B09A","renderContextTable":{"__isSmartRef__":true,"id":5389},"eventHandler":{"__isSmartRef__":true,"id":5390},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5380},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5382":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5383},{"__isSmartRef__":true,"id":5384}],"renderContextTable":{"__isSmartRef__":true,"id":5385},"_Position":{"__isSmartRef__":true,"id":5386},"_Extent":{"__isSmartRef__":true,"id":5387},"_Padding":{"__isSmartRef__":true,"id":5388},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5383":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5384":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5385":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5386":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5387":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5388":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5389":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5390":{"morph":{"__isSmartRef__":true,"id":5381},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5391":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5392},"derivationIds":[null],"id":"5948D88D-0AC1-471D-830D-81B421D0DFA7","renderContextTable":{"__isSmartRef__":true,"id":5399},"eventHandler":{"__isSmartRef__":true,"id":5400},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5380},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5392":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5393},{"__isSmartRef__":true,"id":5394}],"renderContextTable":{"__isSmartRef__":true,"id":5395},"_Position":{"__isSmartRef__":true,"id":5396},"_Extent":{"__isSmartRef__":true,"id":5397},"_Padding":{"__isSmartRef__":true,"id":5398},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5393":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5394":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5395":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5396":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5397":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5398":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5399":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5400":{"morph":{"__isSmartRef__":true,"id":5391},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5401":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5402},"derivationIds":[null],"id":"19069987-8A21-4095-8FB7-580AB1AA5E04","renderContextTable":{"__isSmartRef__":true,"id":5409},"eventHandler":{"__isSmartRef__":true,"id":5410},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5380},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5402":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5403},{"__isSmartRef__":true,"id":5404}],"renderContextTable":{"__isSmartRef__":true,"id":5405},"_Position":{"__isSmartRef__":true,"id":5406},"_Extent":{"__isSmartRef__":true,"id":5407},"_Padding":{"__isSmartRef__":true,"id":5408},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5403":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5404":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5405":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5406":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5407":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5408":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5409":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5410":{"morph":{"__isSmartRef__":true,"id":5401},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5411":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5412},{"__isSmartRef__":true,"id":5413},{"__isSmartRef__":true,"id":5414},{"__isSmartRef__":true,"id":5415},{"__isSmartRef__":true,"id":5416}],"renderContextTable":{"__isSmartRef__":true,"id":5417},"_Position":{"__isSmartRef__":true,"id":5418},"_Extent":{"__isSmartRef__":true,"id":5419},"_Padding":{"__isSmartRef__":true,"id":5420},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5421},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5412":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5413":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5414":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5415":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5416":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5417":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5418":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5419":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5420":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5421":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5422":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5423":{"morph":{"__isSmartRef__":true,"id":5380},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5424":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5425":{"position":{"__isSmartRef__":true,"id":5426},"_Extent":{"__isSmartRef__":true,"id":5427},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5428},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5429},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5430},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5426":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5427":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5428":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5429":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5430":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5431":{"x":99.40738840789776,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5432":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5433},{"__isSmartRef__":true,"id":5435},{"__isSmartRef__":true,"id":5437},{"__isSmartRef__":true,"id":5439},{"__isSmartRef__":true,"id":5441},{"__isSmartRef__":true,"id":5443},{"__isSmartRef__":true,"id":5445},{"__isSmartRef__":true,"id":5447},{"__isSmartRef__":true,"id":5449},{"__isSmartRef__":true,"id":5451},{"__isSmartRef__":true,"id":5453},{"__isSmartRef__":true,"id":5455},{"__isSmartRef__":true,"id":5457},{"__isSmartRef__":true,"id":5459},{"__isSmartRef__":true,"id":5461},{"__isSmartRef__":true,"id":5463},{"__isSmartRef__":true,"id":5465},{"__isSmartRef__":true,"id":5467},{"__isSmartRef__":true,"id":5469}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5433":{"date":{"__isSmartRef__":true,"id":5434},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5434":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5435":{"date":{"__isSmartRef__":true,"id":5436},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5436":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5437":{"date":{"__isSmartRef__":true,"id":5438},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5438":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5439":{"date":{"__isSmartRef__":true,"id":5440},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5440":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5441":{"date":{"__isSmartRef__":true,"id":5442},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5442":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5443":{"date":{"__isSmartRef__":true,"id":5444},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5444":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5445":{"date":{"__isSmartRef__":true,"id":5446},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5446":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5447":{"date":{"__isSmartRef__":true,"id":5448},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5448":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5449":{"date":{"__isSmartRef__":true,"id":5450},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5450":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5451":{"date":{"__isSmartRef__":true,"id":5452},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5452":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5453":{"date":{"__isSmartRef__":true,"id":5454},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5454":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5455":{"date":{"__isSmartRef__":true,"id":5456},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5456":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5457":{"date":{"__isSmartRef__":true,"id":5458},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5458":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5459":{"date":{"__isSmartRef__":true,"id":5460},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5460":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5461":{"date":{"__isSmartRef__":true,"id":5462},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5462":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5463":{"date":{"__isSmartRef__":true,"id":5464},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5464":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5465":{"date":{"__isSmartRef__":true,"id":5466},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5466":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5467":{"date":{"__isSmartRef__":true,"id":5468},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5468":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5469":{"date":{"__isSmartRef__":true,"id":5470},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5470":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5471":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5472":{"morph":{"__isSmartRef__":true,"id":5379},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5473":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5474}},"5474":{"test01IsMorph":{"__isSmartRef__":true,"id":5475}},"5475":{"varMapping":{"__isSmartRef__":true,"id":5476},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5477},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5476":{"this":{"__isSmartRef__":true,"id":5473}},"5477":{},"5478":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5479":{"left":0,"up":1,"right":2,"down":3},"5480":{"submorphs":[{"__isSmartRef__":true,"id":5481}],"scripts":[],"id":"C4E8C4C1-504C-42D3-BF78-0472DCD6DA23","shape":{"__isSmartRef__":true,"id":5557},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5563},"showsHalos":false,"name":"BasicGem42","partsBinMetaInfo":{"__isSmartRef__":true,"id":5564},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5603},"eventHandler":{"__isSmartRef__":true,"id":5604},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5605},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5610},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5611},"neighbours":[{"__isSmartRef__":true,"id":5612},{"__isSmartRef__":true,"id":3973},{"__isSmartRef__":true,"id":5379},{"__isSmartRef__":true,"id":5822}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"zircon","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9673},"__LivelyClassName__":"lively.morphic.Box"},"5481":{"submorphs":[{"__isSmartRef__":true,"id":5482},{"__isSmartRef__":true,"id":5492},{"__isSmartRef__":true,"id":5502},{"__isSmartRef__":true,"id":5512},{"__isSmartRef__":true,"id":5522},{"__isSmartRef__":true,"id":5532}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5542},"derivationIds":[null],"id":"9063674F-F6FA-47C2-A103-353DF97BB4DB","renderContextTable":{"__isSmartRef__":true,"id":5554},"eventHandler":{"__isSmartRef__":true,"id":5555},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5480},"_Position":{"__isSmartRef__":true,"id":5556},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5482":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5483},"derivationIds":[null],"id":"858E51C9-F8A5-4A1C-97DE-547C685DF967","renderContextTable":{"__isSmartRef__":true,"id":5490},"eventHandler":{"__isSmartRef__":true,"id":5491},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5481},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5483":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5484},{"__isSmartRef__":true,"id":5485}],"renderContextTable":{"__isSmartRef__":true,"id":5486},"_Position":{"__isSmartRef__":true,"id":5487},"_Extent":{"__isSmartRef__":true,"id":5488},"_Padding":{"__isSmartRef__":true,"id":5489},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5484":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5485":{"isAbsolute":true,"x":25,"y":27,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5486":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5487":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5488":{"x":3,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5489":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5490":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5491":{"morph":{"__isSmartRef__":true,"id":5482},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5492":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5493},"derivationIds":[null],"id":"DDA79F36-061F-4CF8-986A-8C91D3B0B294","renderContextTable":{"__isSmartRef__":true,"id":5500},"eventHandler":{"__isSmartRef__":true,"id":5501},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5481},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5493":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5494},{"__isSmartRef__":true,"id":5495}],"renderContextTable":{"__isSmartRef__":true,"id":5496},"_Position":{"__isSmartRef__":true,"id":5497},"_Extent":{"__isSmartRef__":true,"id":5498},"_Padding":{"__isSmartRef__":true,"id":5499},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5494":{"isAbsolute":true,"x":9,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5495":{"isAbsolute":true,"x":25,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5496":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5497":{"x":7,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5498":{"x":19,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5499":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5500":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5501":{"morph":{"__isSmartRef__":true,"id":5492},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5502":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5503},"derivationIds":[null],"id":"2640D79D-F61C-4473-B5B5-94D94F4C7139","renderContextTable":{"__isSmartRef__":true,"id":5510},"eventHandler":{"__isSmartRef__":true,"id":5511},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5481},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5503":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5504},{"__isSmartRef__":true,"id":5505}],"renderContextTable":{"__isSmartRef__":true,"id":5506},"_Position":{"__isSmartRef__":true,"id":5507},"_Extent":{"__isSmartRef__":true,"id":5508},"_Padding":{"__isSmartRef__":true,"id":5509},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5504":{"isAbsolute":true,"x":42,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5505":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5506":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5507":{"x":22,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5508":{"x":21,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5509":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5510":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5511":{"morph":{"__isSmartRef__":true,"id":5502},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5512":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5513},"derivationIds":[null],"id":"FC3E2933-2BC1-43FF-B40D-CECC5DCE3422","renderContextTable":{"__isSmartRef__":true,"id":5520},"eventHandler":{"__isSmartRef__":true,"id":5521},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5481},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5513":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5514},{"__isSmartRef__":true,"id":5515}],"renderContextTable":{"__isSmartRef__":true,"id":5516},"_Position":{"__isSmartRef__":true,"id":5517},"_Extent":{"__isSmartRef__":true,"id":5518},"_Padding":{"__isSmartRef__":true,"id":5519},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5514":{"isAbsolute":true,"x":41,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5515":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5516":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5517":{"x":23,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5518":{"x":18,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5519":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5520":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5521":{"morph":{"__isSmartRef__":true,"id":5512},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5522":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5523},"derivationIds":[null],"id":"DEAC6A1F-E48E-4110-B663-107950BADD74","renderContextTable":{"__isSmartRef__":true,"id":5530},"eventHandler":{"__isSmartRef__":true,"id":5531},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5481},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5523":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5524},{"__isSmartRef__":true,"id":5525}],"renderContextTable":{"__isSmartRef__":true,"id":5526},"_Position":{"__isSmartRef__":true,"id":5527},"_Extent":{"__isSmartRef__":true,"id":5528},"_Padding":{"__isSmartRef__":true,"id":5529},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5524":{"isAbsolute":true,"x":9,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5525":{"isAbsolute":true,"x":24,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5526":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5527":{"x":8,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5528":{"x":16,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5529":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5530":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5531":{"morph":{"__isSmartRef__":true,"id":5522},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5532":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5533},"derivationIds":[null],"id":"579D06BF-7314-4E9A-B794-5937A5CF7A78","renderContextTable":{"__isSmartRef__":true,"id":5540},"eventHandler":{"__isSmartRef__":true,"id":5541},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5481},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5533":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5534},{"__isSmartRef__":true,"id":5535}],"renderContextTable":{"__isSmartRef__":true,"id":5536},"_Position":{"__isSmartRef__":true,"id":5537},"_Extent":{"__isSmartRef__":true,"id":5538},"_Padding":{"__isSmartRef__":true,"id":5539},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5534":{"isAbsolute":true,"x":25,"y":43,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5535":{"isAbsolute":true,"x":25,"y":24,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5536":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5537":{"x":23,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5538":{"x":3,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5539":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5540":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5541":{"morph":{"__isSmartRef__":true,"id":5532},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5542":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5543},{"__isSmartRef__":true,"id":5544},{"__isSmartRef__":true,"id":5545},{"__isSmartRef__":true,"id":5546},{"__isSmartRef__":true,"id":5547},{"__isSmartRef__":true,"id":5548}],"renderContextTable":{"__isSmartRef__":true,"id":5549},"_Position":{"__isSmartRef__":true,"id":5550},"_Extent":{"__isSmartRef__":true,"id":5551},"_Padding":{"__isSmartRef__":true,"id":5552},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5553},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5543":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5544":{"isAbsolute":true,"x":41,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5545":{"isAbsolute":true,"x":41,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5546":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5547":{"isAbsolute":true,"x":9,"y":32,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5548":{"isAbsolute":true,"x":9,"y":18,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5549":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5550":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5551":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5552":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5553":{"r":1,"g":0.788235294117647,"b":0.14901960784313725,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5554":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5555":{"morph":{"__isSmartRef__":true,"id":5481},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5556":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5557":{"position":{"__isSmartRef__":true,"id":5558},"_Extent":{"__isSmartRef__":true,"id":5559},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5560},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5561},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5562},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5558":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5559":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5560":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5561":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5562":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5563":{"x":50.20369420394888,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5564":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5565},{"__isSmartRef__":true,"id":5567},{"__isSmartRef__":true,"id":5569},{"__isSmartRef__":true,"id":5571},{"__isSmartRef__":true,"id":5573},{"__isSmartRef__":true,"id":5575},{"__isSmartRef__":true,"id":5577},{"__isSmartRef__":true,"id":5579},{"__isSmartRef__":true,"id":5581},{"__isSmartRef__":true,"id":5583},{"__isSmartRef__":true,"id":5585},{"__isSmartRef__":true,"id":5587},{"__isSmartRef__":true,"id":5589},{"__isSmartRef__":true,"id":5591},{"__isSmartRef__":true,"id":5593},{"__isSmartRef__":true,"id":5595},{"__isSmartRef__":true,"id":5597},{"__isSmartRef__":true,"id":5599},{"__isSmartRef__":true,"id":5601}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5565":{"date":{"__isSmartRef__":true,"id":5566},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5566":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5567":{"date":{"__isSmartRef__":true,"id":5568},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5568":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5569":{"date":{"__isSmartRef__":true,"id":5570},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5570":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5571":{"date":{"__isSmartRef__":true,"id":5572},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5572":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5573":{"date":{"__isSmartRef__":true,"id":5574},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5574":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5575":{"date":{"__isSmartRef__":true,"id":5576},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5576":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5577":{"date":{"__isSmartRef__":true,"id":5578},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5578":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5579":{"date":{"__isSmartRef__":true,"id":5580},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5580":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5581":{"date":{"__isSmartRef__":true,"id":5582},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5582":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5583":{"date":{"__isSmartRef__":true,"id":5584},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5584":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5585":{"date":{"__isSmartRef__":true,"id":5586},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5586":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5587":{"date":{"__isSmartRef__":true,"id":5588},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5588":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5589":{"date":{"__isSmartRef__":true,"id":5590},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5590":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5591":{"date":{"__isSmartRef__":true,"id":5592},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5592":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5593":{"date":{"__isSmartRef__":true,"id":5594},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5594":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5595":{"date":{"__isSmartRef__":true,"id":5596},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5596":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5597":{"date":{"__isSmartRef__":true,"id":5598},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5598":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5599":{"date":{"__isSmartRef__":true,"id":5600},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5600":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5601":{"date":{"__isSmartRef__":true,"id":5602},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5602":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5603":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5604":{"morph":{"__isSmartRef__":true,"id":5480},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5605":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5606}},"5606":{"test01IsMorph":{"__isSmartRef__":true,"id":5607}},"5607":{"varMapping":{"__isSmartRef__":true,"id":5608},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5609},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5608":{"this":{"__isSmartRef__":true,"id":5605}},"5609":{},"5610":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5611":{"left":0,"up":1,"right":2,"down":3},"5612":{"submorphs":[{"__isSmartRef__":true,"id":5613}],"scripts":[],"id":"8AC6AAA9-F13D-4972-8AAA-20D48A7CE0D1","shape":{"__isSmartRef__":true,"id":5649},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5655},"showsHalos":false,"name":"BasicGem41","partsBinMetaInfo":{"__isSmartRef__":true,"id":5656},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5695},"eventHandler":{"__isSmartRef__":true,"id":5696},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5697},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5702},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5703},"neighbours":[null,{"__isSmartRef__":true,"id":3881},{"__isSmartRef__":true,"id":5480},{"__isSmartRef__":true,"id":5704}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9544},"__LivelyClassName__":"lively.morphic.Box"},"5613":{"submorphs":[{"__isSmartRef__":true,"id":5614},{"__isSmartRef__":true,"id":5625}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5636},"derivationIds":[null],"id":"C39C9455-A8A0-412D-9AFC-DA855BCE931F","renderContextTable":{"__isSmartRef__":true,"id":5646},"eventHandler":{"__isSmartRef__":true,"id":5647},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5612},"_Position":{"__isSmartRef__":true,"id":5648},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5614":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5615},"derivationIds":[null],"id":"C4A2930A-9143-486F-A105-089AB96CD139","renderContextTable":{"__isSmartRef__":true,"id":5623},"eventHandler":{"__isSmartRef__":true,"id":5624},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5613},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5615":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5616},{"__isSmartRef__":true,"id":5617}],"renderContextTable":{"__isSmartRef__":true,"id":5618},"_Position":{"__isSmartRef__":true,"id":5619},"_Extent":{"__isSmartRef__":true,"id":5620},"_Padding":{"__isSmartRef__":true,"id":5621},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5622},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5616":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5617":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5618":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5619":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5620":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5621":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5622":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5623":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5624":{"morph":{"__isSmartRef__":true,"id":5614},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5625":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5626},"derivationIds":[null],"id":"143F302B-0691-416B-B456-9B61F1A08CB0","renderContextTable":{"__isSmartRef__":true,"id":5634},"eventHandler":{"__isSmartRef__":true,"id":5635},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5613},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5626":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5627},{"__isSmartRef__":true,"id":5628}],"renderContextTable":{"__isSmartRef__":true,"id":5629},"_Position":{"__isSmartRef__":true,"id":5630},"_Extent":{"__isSmartRef__":true,"id":5631},"_Padding":{"__isSmartRef__":true,"id":5632},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5633},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5627":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5628":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5629":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5630":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5631":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5632":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5633":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5634":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5635":{"morph":{"__isSmartRef__":true,"id":5625},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5636":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5637},{"__isSmartRef__":true,"id":5638},{"__isSmartRef__":true,"id":5639},{"__isSmartRef__":true,"id":5640}],"renderContextTable":{"__isSmartRef__":true,"id":5641},"_Position":{"__isSmartRef__":true,"id":5642},"_Extent":{"__isSmartRef__":true,"id":5643},"_Padding":{"__isSmartRef__":true,"id":5644},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5645},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5637":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5638":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5639":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5640":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5641":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5642":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5643":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5644":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5645":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5646":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5647":{"morph":{"__isSmartRef__":true,"id":5613},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5648":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5649":{"position":{"__isSmartRef__":true,"id":5650},"_Extent":{"__isSmartRef__":true,"id":5651},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5652},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5653},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5654},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5650":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5651":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5652":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5653":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5654":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5655":{"x":1,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5656":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5657},{"__isSmartRef__":true,"id":5659},{"__isSmartRef__":true,"id":5661},{"__isSmartRef__":true,"id":5663},{"__isSmartRef__":true,"id":5665},{"__isSmartRef__":true,"id":5667},{"__isSmartRef__":true,"id":5669},{"__isSmartRef__":true,"id":5671},{"__isSmartRef__":true,"id":5673},{"__isSmartRef__":true,"id":5675},{"__isSmartRef__":true,"id":5677},{"__isSmartRef__":true,"id":5679},{"__isSmartRef__":true,"id":5681},{"__isSmartRef__":true,"id":5683},{"__isSmartRef__":true,"id":5685},{"__isSmartRef__":true,"id":5687},{"__isSmartRef__":true,"id":5689},{"__isSmartRef__":true,"id":5691},{"__isSmartRef__":true,"id":5693}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5657":{"date":{"__isSmartRef__":true,"id":5658},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5658":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5659":{"date":{"__isSmartRef__":true,"id":5660},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5660":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5661":{"date":{"__isSmartRef__":true,"id":5662},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5662":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5663":{"date":{"__isSmartRef__":true,"id":5664},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5664":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5665":{"date":{"__isSmartRef__":true,"id":5666},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5666":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5667":{"date":{"__isSmartRef__":true,"id":5668},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5668":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5669":{"date":{"__isSmartRef__":true,"id":5670},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5670":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5671":{"date":{"__isSmartRef__":true,"id":5672},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5672":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5673":{"date":{"__isSmartRef__":true,"id":5674},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5674":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5675":{"date":{"__isSmartRef__":true,"id":5676},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5676":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5677":{"date":{"__isSmartRef__":true,"id":5678},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5678":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5679":{"date":{"__isSmartRef__":true,"id":5680},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5680":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5681":{"date":{"__isSmartRef__":true,"id":5682},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5682":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5683":{"date":{"__isSmartRef__":true,"id":5684},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5684":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5685":{"date":{"__isSmartRef__":true,"id":5686},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5686":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5687":{"date":{"__isSmartRef__":true,"id":5688},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5688":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5689":{"date":{"__isSmartRef__":true,"id":5690},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5690":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5691":{"date":{"__isSmartRef__":true,"id":5692},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5692":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5693":{"date":{"__isSmartRef__":true,"id":5694},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5694":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5695":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5696":{"morph":{"__isSmartRef__":true,"id":5612},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5697":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5698}},"5698":{"test01IsMorph":{"__isSmartRef__":true,"id":5699}},"5699":{"varMapping":{"__isSmartRef__":true,"id":5700},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5701},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5700":{"this":{"__isSmartRef__":true,"id":5697}},"5701":{},"5702":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5703":{"left":0,"up":1,"right":2,"down":3},"5704":{"submorphs":[{"__isSmartRef__":true,"id":5705}],"scripts":[],"id":"15B68BE8-52EE-4C7A-BF39-77F3A38CC9B2","shape":{"__isSmartRef__":true,"id":5767},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5773},"showsHalos":false,"name":"BasicGem49","partsBinMetaInfo":{"__isSmartRef__":true,"id":5774},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5813},"eventHandler":{"__isSmartRef__":true,"id":5814},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5815},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5820},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5821},"neighbours":[null,{"__isSmartRef__":true,"id":5612},{"__isSmartRef__":true,"id":5822},{"__isSmartRef__":true,"id":7360}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"amethyst","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9415},"__LivelyClassName__":"lively.morphic.Box"},"5705":{"submorphs":[{"__isSmartRef__":true,"id":5706},{"__isSmartRef__":true,"id":5717},{"__isSmartRef__":true,"id":5728},{"__isSmartRef__":true,"id":5739}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5750},"derivationIds":[null],"id":"A3068A7B-87EC-41E8-96AB-14309113C944","renderContextTable":{"__isSmartRef__":true,"id":5764},"eventHandler":{"__isSmartRef__":true,"id":5765},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5704},"_Position":{"__isSmartRef__":true,"id":5766},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5706":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5707},"derivationIds":[null],"id":"002DBD2F-E7DD-4F31-BC3D-5F89820B8072","renderContextTable":{"__isSmartRef__":true,"id":5715},"eventHandler":{"__isSmartRef__":true,"id":5716},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5705},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5707":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5708},{"__isSmartRef__":true,"id":5709}],"renderContextTable":{"__isSmartRef__":true,"id":5710},"_Position":{"__isSmartRef__":true,"id":5711},"_Extent":{"__isSmartRef__":true,"id":5712},"_Padding":{"__isSmartRef__":true,"id":5713},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5714},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5708":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5709":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5710":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5711":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5712":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5713":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5714":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5715":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5716":{"morph":{"__isSmartRef__":true,"id":5706},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5717":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5718},"derivationIds":[null],"id":"C80BD2EC-718F-4157-B84C-AA56816EDA6F","renderContextTable":{"__isSmartRef__":true,"id":5726},"eventHandler":{"__isSmartRef__":true,"id":5727},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5705},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5718":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5719},{"__isSmartRef__":true,"id":5720}],"renderContextTable":{"__isSmartRef__":true,"id":5721},"_Position":{"__isSmartRef__":true,"id":5722},"_Extent":{"__isSmartRef__":true,"id":5723},"_Padding":{"__isSmartRef__":true,"id":5724},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5725},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5719":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5720":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5721":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5722":{"x":15,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5723":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5724":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5725":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5726":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5727":{"morph":{"__isSmartRef__":true,"id":5717},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5728":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5729},"derivationIds":[null],"id":"C36993B8-FF7F-4663-8297-07139DEFB9C9","renderContextTable":{"__isSmartRef__":true,"id":5737},"eventHandler":{"__isSmartRef__":true,"id":5738},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5705},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5729":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5730},{"__isSmartRef__":true,"id":5731}],"renderContextTable":{"__isSmartRef__":true,"id":5732},"_Position":{"__isSmartRef__":true,"id":5733},"_Extent":{"__isSmartRef__":true,"id":5734},"_Padding":{"__isSmartRef__":true,"id":5735},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5736},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5730":{"isAbsolute":true,"x":33,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5731":{"isAbsolute":true,"x":33,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5732":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5733":{"x":31,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5734":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5735":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5736":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5738":{"morph":{"__isSmartRef__":true,"id":5728},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5739":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5740},"derivationIds":[null],"id":"6EC48CD5-CD4D-4A8A-A74F-B58167036F76","renderContextTable":{"__isSmartRef__":true,"id":5748},"eventHandler":{"__isSmartRef__":true,"id":5749},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5705},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5740":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5741},{"__isSmartRef__":true,"id":5742}],"renderContextTable":{"__isSmartRef__":true,"id":5743},"_Position":{"__isSmartRef__":true,"id":5744},"_Extent":{"__isSmartRef__":true,"id":5745},"_Padding":{"__isSmartRef__":true,"id":5746},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5747},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5741":{"isAbsolute":true,"x":17,"y":17,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5742":{"isAbsolute":true,"x":17,"y":33,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5743":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5744":{"x":15,"y":15,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5745":{"x":3,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5746":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5747":{"r":0.7843137254901961,"g":0.47058823529411764,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5748":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5749":{"morph":{"__isSmartRef__":true,"id":5739},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5750":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5751},{"__isSmartRef__":true,"id":5752},{"__isSmartRef__":true,"id":5753},{"__isSmartRef__":true,"id":5754},{"__isSmartRef__":true,"id":5755},{"__isSmartRef__":true,"id":5756},{"__isSmartRef__":true,"id":5757},{"__isSmartRef__":true,"id":5758}],"renderContextTable":{"__isSmartRef__":true,"id":5759},"_Position":{"__isSmartRef__":true,"id":5760},"_Extent":{"__isSmartRef__":true,"id":5761},"_Padding":{"__isSmartRef__":true,"id":5762},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5763},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5751":{"isAbsolute":true,"x":14,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5752":{"isAbsolute":true,"x":36,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5753":{"isAbsolute":true,"x":41,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5754":{"isAbsolute":true,"x":41,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5755":{"isAbsolute":true,"x":36,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5756":{"isAbsolute":true,"x":14,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5757":{"isAbsolute":true,"x":9,"y":36,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5758":{"isAbsolute":true,"x":9,"y":14,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5759":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5760":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5761":{"x":33,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5762":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5763":{"r":0.5411764705882353,"g":0.1568627450980392,"b":0.5607843137254902,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5764":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5765":{"morph":{"__isSmartRef__":true,"id":5705},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5766":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5767":{"position":{"__isSmartRef__":true,"id":5768},"_Extent":{"__isSmartRef__":true,"id":5769},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5770},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5771},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5772},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5768":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5769":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5770":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5771":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5772":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5773":{"x":1,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5774":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5775},{"__isSmartRef__":true,"id":5777},{"__isSmartRef__":true,"id":5779},{"__isSmartRef__":true,"id":5781},{"__isSmartRef__":true,"id":5783},{"__isSmartRef__":true,"id":5785},{"__isSmartRef__":true,"id":5787},{"__isSmartRef__":true,"id":5789},{"__isSmartRef__":true,"id":5791},{"__isSmartRef__":true,"id":5793},{"__isSmartRef__":true,"id":5795},{"__isSmartRef__":true,"id":5797},{"__isSmartRef__":true,"id":5799},{"__isSmartRef__":true,"id":5801},{"__isSmartRef__":true,"id":5803},{"__isSmartRef__":true,"id":5805},{"__isSmartRef__":true,"id":5807},{"__isSmartRef__":true,"id":5809},{"__isSmartRef__":true,"id":5811}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5775":{"date":{"__isSmartRef__":true,"id":5776},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5776":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5777":{"date":{"__isSmartRef__":true,"id":5778},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5778":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5779":{"date":{"__isSmartRef__":true,"id":5780},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5780":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5781":{"date":{"__isSmartRef__":true,"id":5782},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5782":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5783":{"date":{"__isSmartRef__":true,"id":5784},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5784":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5785":{"date":{"__isSmartRef__":true,"id":5786},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5786":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5787":{"date":{"__isSmartRef__":true,"id":5788},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5788":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5789":{"date":{"__isSmartRef__":true,"id":5790},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5790":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5791":{"date":{"__isSmartRef__":true,"id":5792},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5792":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5793":{"date":{"__isSmartRef__":true,"id":5794},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5794":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5795":{"date":{"__isSmartRef__":true,"id":5796},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5796":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5797":{"date":{"__isSmartRef__":true,"id":5798},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5798":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5799":{"date":{"__isSmartRef__":true,"id":5800},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5800":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5801":{"date":{"__isSmartRef__":true,"id":5802},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5802":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5803":{"date":{"__isSmartRef__":true,"id":5804},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5804":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5805":{"date":{"__isSmartRef__":true,"id":5806},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5806":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5807":{"date":{"__isSmartRef__":true,"id":5808},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5808":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5809":{"date":{"__isSmartRef__":true,"id":5810},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5810":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5811":{"date":{"__isSmartRef__":true,"id":5812},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5812":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5813":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5814":{"morph":{"__isSmartRef__":true,"id":5704},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5815":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5816}},"5816":{"test01IsMorph":{"__isSmartRef__":true,"id":5817}},"5817":{"varMapping":{"__isSmartRef__":true,"id":5818},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5819},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5818":{"this":{"__isSmartRef__":true,"id":5815}},"5819":{},"5820":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5821":{"left":0,"up":1,"right":2,"down":3},"5822":{"submorphs":[{"__isSmartRef__":true,"id":5823}],"scripts":[],"id":"1454B9E9-5AF3-4D1F-B928-D98D9B76D65A","shape":{"__isSmartRef__":true,"id":5894},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":5900},"showsHalos":false,"name":"BasicGem50","partsBinMetaInfo":{"__isSmartRef__":true,"id":5901},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":5940},"eventHandler":{"__isSmartRef__":true,"id":5941},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":5942},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":5947},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":5948},"neighbours":[{"__isSmartRef__":true,"id":5704},{"__isSmartRef__":true,"id":5480},{"__isSmartRef__":true,"id":5949},{"__isSmartRef__":true,"id":7233}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9286},"__LivelyClassName__":"lively.morphic.Box"},"5823":{"submorphs":[{"__isSmartRef__":true,"id":5824},{"__isSmartRef__":true,"id":5835},{"__isSmartRef__":true,"id":5846},{"__isSmartRef__":true,"id":5857},{"__isSmartRef__":true,"id":5868}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5879},"derivationIds":[null],"id":"114D0E15-B04C-42C2-86F2-02E4BC5A9E42","renderContextTable":{"__isSmartRef__":true,"id":5891},"eventHandler":{"__isSmartRef__":true,"id":5892},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5822},"_Position":{"__isSmartRef__":true,"id":5893},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5824":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5825},"derivationIds":[null],"id":"0D2C2176-A9E8-4004-9599-8E13A7746D77","renderContextTable":{"__isSmartRef__":true,"id":5833},"eventHandler":{"__isSmartRef__":true,"id":5834},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5823},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5825":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5826},{"__isSmartRef__":true,"id":5827}],"renderContextTable":{"__isSmartRef__":true,"id":5828},"_Position":{"__isSmartRef__":true,"id":5829},"_Extent":{"__isSmartRef__":true,"id":5830},"_Padding":{"__isSmartRef__":true,"id":5831},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5832},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5826":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5827":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5828":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5829":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5830":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5831":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5832":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5833":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5834":{"morph":{"__isSmartRef__":true,"id":5824},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5835":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5836},"derivationIds":[null],"id":"D335182F-0675-4A87-9A86-CE657A8A27E2","renderContextTable":{"__isSmartRef__":true,"id":5844},"eventHandler":{"__isSmartRef__":true,"id":5845},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5823},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5836":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5837},{"__isSmartRef__":true,"id":5838}],"renderContextTable":{"__isSmartRef__":true,"id":5839},"_Position":{"__isSmartRef__":true,"id":5840},"_Extent":{"__isSmartRef__":true,"id":5841},"_Padding":{"__isSmartRef__":true,"id":5842},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5843},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5837":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5838":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5839":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5840":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5841":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5842":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5843":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5844":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5845":{"morph":{"__isSmartRef__":true,"id":5835},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5846":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5847},"derivationIds":[null],"id":"AC2413B6-90B7-41A0-8EBA-06BE1C04CDDA","renderContextTable":{"__isSmartRef__":true,"id":5855},"eventHandler":{"__isSmartRef__":true,"id":5856},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5823},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5847":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5848},{"__isSmartRef__":true,"id":5849}],"renderContextTable":{"__isSmartRef__":true,"id":5850},"_Position":{"__isSmartRef__":true,"id":5851},"_Extent":{"__isSmartRef__":true,"id":5852},"_Padding":{"__isSmartRef__":true,"id":5853},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5854},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5848":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5849":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5850":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5851":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5852":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5853":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5854":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5855":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5856":{"morph":{"__isSmartRef__":true,"id":5846},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5857":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5858},"derivationIds":[null],"id":"EF405A31-F6A3-40EB-A1C6-8A5DFFA885F8","renderContextTable":{"__isSmartRef__":true,"id":5866},"eventHandler":{"__isSmartRef__":true,"id":5867},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5823},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5858":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5859},{"__isSmartRef__":true,"id":5860}],"renderContextTable":{"__isSmartRef__":true,"id":5861},"_Position":{"__isSmartRef__":true,"id":5862},"_Extent":{"__isSmartRef__":true,"id":5863},"_Padding":{"__isSmartRef__":true,"id":5864},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5865},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5859":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5860":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5861":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5862":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5863":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5864":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5865":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5866":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5867":{"morph":{"__isSmartRef__":true,"id":5857},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5868":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5869},"derivationIds":[null],"id":"82107DE9-8196-4071-A8F0-0D5FB4729BA7","renderContextTable":{"__isSmartRef__":true,"id":5877},"eventHandler":{"__isSmartRef__":true,"id":5878},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5823},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5869":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5870},{"__isSmartRef__":true,"id":5871}],"renderContextTable":{"__isSmartRef__":true,"id":5872},"_Position":{"__isSmartRef__":true,"id":5873},"_Extent":{"__isSmartRef__":true,"id":5874},"_Padding":{"__isSmartRef__":true,"id":5875},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":5876},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5870":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5871":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5872":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5873":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5874":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5875":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5876":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5877":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5878":{"morph":{"__isSmartRef__":true,"id":5868},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5879":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5880},{"__isSmartRef__":true,"id":5881},{"__isSmartRef__":true,"id":5882},{"__isSmartRef__":true,"id":5883},{"__isSmartRef__":true,"id":5884},{"__isSmartRef__":true,"id":5885}],"renderContextTable":{"__isSmartRef__":true,"id":5886},"_Position":{"__isSmartRef__":true,"id":5887},"_Extent":{"__isSmartRef__":true,"id":5888},"_Padding":{"__isSmartRef__":true,"id":5889},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":5890},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5880":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5881":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5882":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5883":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5884":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5885":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5886":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5887":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5888":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5889":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5890":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5891":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5892":{"morph":{"__isSmartRef__":true,"id":5823},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5893":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5894":{"position":{"__isSmartRef__":true,"id":5895},"_Extent":{"__isSmartRef__":true,"id":5896},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":5897},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":5898},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":5899},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"5895":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5896":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5897":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"5898":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"5899":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"5900":{"x":50.20369420394888,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5901":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":5902},{"__isSmartRef__":true,"id":5904},{"__isSmartRef__":true,"id":5906},{"__isSmartRef__":true,"id":5908},{"__isSmartRef__":true,"id":5910},{"__isSmartRef__":true,"id":5912},{"__isSmartRef__":true,"id":5914},{"__isSmartRef__":true,"id":5916},{"__isSmartRef__":true,"id":5918},{"__isSmartRef__":true,"id":5920},{"__isSmartRef__":true,"id":5922},{"__isSmartRef__":true,"id":5924},{"__isSmartRef__":true,"id":5926},{"__isSmartRef__":true,"id":5928},{"__isSmartRef__":true,"id":5930},{"__isSmartRef__":true,"id":5932},{"__isSmartRef__":true,"id":5934},{"__isSmartRef__":true,"id":5936},{"__isSmartRef__":true,"id":5938}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"5902":{"date":{"__isSmartRef__":true,"id":5903},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"5903":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"5904":{"date":{"__isSmartRef__":true,"id":5905},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"5905":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"5906":{"date":{"__isSmartRef__":true,"id":5907},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"5907":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"5908":{"date":{"__isSmartRef__":true,"id":5909},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"5909":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"5910":{"date":{"__isSmartRef__":true,"id":5911},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"5911":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"5912":{"date":{"__isSmartRef__":true,"id":5913},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"5913":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"5914":{"date":{"__isSmartRef__":true,"id":5915},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"5915":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"5916":{"date":{"__isSmartRef__":true,"id":5917},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"5917":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"5918":{"date":{"__isSmartRef__":true,"id":5919},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"5919":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"5920":{"date":{"__isSmartRef__":true,"id":5921},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"5921":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"5922":{"date":{"__isSmartRef__":true,"id":5923},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"5923":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"5924":{"date":{"__isSmartRef__":true,"id":5925},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"5925":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"5926":{"date":{"__isSmartRef__":true,"id":5927},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"5927":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"5928":{"date":{"__isSmartRef__":true,"id":5929},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"5929":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"5930":{"date":{"__isSmartRef__":true,"id":5931},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"5931":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"5932":{"date":{"__isSmartRef__":true,"id":5933},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"5933":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"5934":{"date":{"__isSmartRef__":true,"id":5935},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"5935":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"5936":{"date":{"__isSmartRef__":true,"id":5937},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"5937":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"5938":{"date":{"__isSmartRef__":true,"id":5939},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"5939":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"5940":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5941":{"morph":{"__isSmartRef__":true,"id":5822},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"5942":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":5943}},"5943":{"test01IsMorph":{"__isSmartRef__":true,"id":5944}},"5944":{"varMapping":{"__isSmartRef__":true,"id":5945},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":5946},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"5945":{"this":{"__isSmartRef__":true,"id":5942}},"5946":{},"5947":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"5948":{"left":0,"up":1,"right":2,"down":3},"5949":{"submorphs":[{"__isSmartRef__":true,"id":5950}],"scripts":[],"id":"D644DA04-2397-48CC-8634-62C92D29301F","shape":{"__isSmartRef__":true,"id":6012},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6018},"showsHalos":false,"name":"BasicGem51","partsBinMetaInfo":{"__isSmartRef__":true,"id":6019},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6058},"eventHandler":{"__isSmartRef__":true,"id":6059},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6060},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6065},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6066},"neighbours":[{"__isSmartRef__":true,"id":5822},{"__isSmartRef__":true,"id":5379},{"__isSmartRef__":true,"id":6067},{"__isSmartRef__":true,"id":7141}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9157},"__LivelyClassName__":"lively.morphic.Box"},"5950":{"submorphs":[{"__isSmartRef__":true,"id":5951},{"__isSmartRef__":true,"id":5962},{"__isSmartRef__":true,"id":5973},{"__isSmartRef__":true,"id":5984}],"scripts":[],"shape":{"__isSmartRef__":true,"id":5995},"derivationIds":[null],"id":"F0927A5B-9E78-47EF-AED1-9AB9F9B828C7","renderContextTable":{"__isSmartRef__":true,"id":6009},"eventHandler":{"__isSmartRef__":true,"id":6010},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5949},"_Position":{"__isSmartRef__":true,"id":6011},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5951":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5952},"derivationIds":[null],"id":"26FBB9B4-8987-4C21-98CD-BF704C2DC69B","renderContextTable":{"__isSmartRef__":true,"id":5960},"eventHandler":{"__isSmartRef__":true,"id":5961},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5950},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5952":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5953},{"__isSmartRef__":true,"id":5954}],"renderContextTable":{"__isSmartRef__":true,"id":5955},"_Position":{"__isSmartRef__":true,"id":5956},"_Extent":{"__isSmartRef__":true,"id":5957},"_Padding":{"__isSmartRef__":true,"id":5958},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5959},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5953":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5954":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5955":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5956":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5957":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5959":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5960":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5961":{"morph":{"__isSmartRef__":true,"id":5951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5962":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5963},"derivationIds":[null],"id":"109FAE88-9840-4864-A8C8-9460F8CF166A","renderContextTable":{"__isSmartRef__":true,"id":5971},"eventHandler":{"__isSmartRef__":true,"id":5972},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5950},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5963":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5964},{"__isSmartRef__":true,"id":5965}],"renderContextTable":{"__isSmartRef__":true,"id":5966},"_Position":{"__isSmartRef__":true,"id":5967},"_Extent":{"__isSmartRef__":true,"id":5968},"_Padding":{"__isSmartRef__":true,"id":5969},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5970},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5964":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5965":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5966":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5967":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5968":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5969":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5970":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5971":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5972":{"morph":{"__isSmartRef__":true,"id":5962},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5973":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5974},"derivationIds":[null],"id":"AC3B6764-F803-4020-9318-409721FC1099","renderContextTable":{"__isSmartRef__":true,"id":5982},"eventHandler":{"__isSmartRef__":true,"id":5983},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5950},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5974":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5975},{"__isSmartRef__":true,"id":5976}],"renderContextTable":{"__isSmartRef__":true,"id":5977},"_Position":{"__isSmartRef__":true,"id":5978},"_Extent":{"__isSmartRef__":true,"id":5979},"_Padding":{"__isSmartRef__":true,"id":5980},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5981},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5975":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5976":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5977":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5978":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5979":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5980":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5981":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5982":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5983":{"morph":{"__isSmartRef__":true,"id":5973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5984":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":5985},"derivationIds":[null],"id":"71AEE057-DE6A-4CBD-9A6A-B080291C2AF4","renderContextTable":{"__isSmartRef__":true,"id":5993},"eventHandler":{"__isSmartRef__":true,"id":5994},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":5950},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"5985":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5986},{"__isSmartRef__":true,"id":5987}],"renderContextTable":{"__isSmartRef__":true,"id":5988},"_Position":{"__isSmartRef__":true,"id":5989},"_Extent":{"__isSmartRef__":true,"id":5990},"_Padding":{"__isSmartRef__":true,"id":5991},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":5992},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5986":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5987":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5988":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"5989":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5990":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5991":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5992":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"5993":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"5994":{"morph":{"__isSmartRef__":true,"id":5984},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"5995":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":5996},{"__isSmartRef__":true,"id":5997},{"__isSmartRef__":true,"id":5998},{"__isSmartRef__":true,"id":5999},{"__isSmartRef__":true,"id":6000},{"__isSmartRef__":true,"id":6001},{"__isSmartRef__":true,"id":6002},{"__isSmartRef__":true,"id":6003}],"renderContextTable":{"__isSmartRef__":true,"id":6004},"_Position":{"__isSmartRef__":true,"id":6005},"_Extent":{"__isSmartRef__":true,"id":6006},"_Padding":{"__isSmartRef__":true,"id":6007},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6008},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5996":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5997":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5998":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"5999":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6000":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6001":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6002":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6003":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6004":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6005":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6006":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6007":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6008":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6009":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6010":{"morph":{"__isSmartRef__":true,"id":5950},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6011":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6012":{"position":{"__isSmartRef__":true,"id":6013},"_Extent":{"__isSmartRef__":true,"id":6014},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6015},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6016},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6017},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6013":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6014":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6015":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6016":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6017":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6018":{"x":99.40738840789776,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6019":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6020},{"__isSmartRef__":true,"id":6022},{"__isSmartRef__":true,"id":6024},{"__isSmartRef__":true,"id":6026},{"__isSmartRef__":true,"id":6028},{"__isSmartRef__":true,"id":6030},{"__isSmartRef__":true,"id":6032},{"__isSmartRef__":true,"id":6034},{"__isSmartRef__":true,"id":6036},{"__isSmartRef__":true,"id":6038},{"__isSmartRef__":true,"id":6040},{"__isSmartRef__":true,"id":6042},{"__isSmartRef__":true,"id":6044},{"__isSmartRef__":true,"id":6046},{"__isSmartRef__":true,"id":6048},{"__isSmartRef__":true,"id":6050},{"__isSmartRef__":true,"id":6052},{"__isSmartRef__":true,"id":6054},{"__isSmartRef__":true,"id":6056}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6020":{"date":{"__isSmartRef__":true,"id":6021},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6021":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6022":{"date":{"__isSmartRef__":true,"id":6023},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6023":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6024":{"date":{"__isSmartRef__":true,"id":6025},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6025":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6026":{"date":{"__isSmartRef__":true,"id":6027},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6027":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6028":{"date":{"__isSmartRef__":true,"id":6029},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6029":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6030":{"date":{"__isSmartRef__":true,"id":6031},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6031":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6032":{"date":{"__isSmartRef__":true,"id":6033},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6033":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6034":{"date":{"__isSmartRef__":true,"id":6035},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6035":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6036":{"date":{"__isSmartRef__":true,"id":6037},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6037":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6038":{"date":{"__isSmartRef__":true,"id":6039},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6039":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6040":{"date":{"__isSmartRef__":true,"id":6041},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6041":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6042":{"date":{"__isSmartRef__":true,"id":6043},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6043":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6044":{"date":{"__isSmartRef__":true,"id":6045},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6045":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6046":{"date":{"__isSmartRef__":true,"id":6047},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6047":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6048":{"date":{"__isSmartRef__":true,"id":6049},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6049":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6050":{"date":{"__isSmartRef__":true,"id":6051},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6051":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6052":{"date":{"__isSmartRef__":true,"id":6053},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6053":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6054":{"date":{"__isSmartRef__":true,"id":6055},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6055":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6056":{"date":{"__isSmartRef__":true,"id":6057},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6057":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6058":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6059":{"morph":{"__isSmartRef__":true,"id":5949},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6060":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6061}},"6061":{"test01IsMorph":{"__isSmartRef__":true,"id":6062}},"6062":{"varMapping":{"__isSmartRef__":true,"id":6063},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6064},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6063":{"this":{"__isSmartRef__":true,"id":6060}},"6064":{},"6065":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6066":{"left":0,"up":1,"right":2,"down":3},"6067":{"submorphs":[{"__isSmartRef__":true,"id":6068}],"scripts":[],"id":"829C0B3F-F6C8-4C7C-B0AD-7D9B027B3FA9","shape":{"__isSmartRef__":true,"id":6144},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6150},"showsHalos":false,"name":"BasicGem52","partsBinMetaInfo":{"__isSmartRef__":true,"id":6151},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6190},"eventHandler":{"__isSmartRef__":true,"id":6191},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6192},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6197},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6198},"neighbours":[{"__isSmartRef__":true,"id":5949},{"__isSmartRef__":true,"id":5244},{"__isSmartRef__":true,"id":6199},{"__isSmartRef__":true,"id":7040}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"blueDiamond","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":9027},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9028},"__LivelyClassName__":"lively.morphic.Box"},"6068":{"submorphs":[{"__isSmartRef__":true,"id":6069},{"__isSmartRef__":true,"id":6079},{"__isSmartRef__":true,"id":6089},{"__isSmartRef__":true,"id":6099},{"__isSmartRef__":true,"id":6109},{"__isSmartRef__":true,"id":6119}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6129},"derivationIds":[null],"id":"7E5898EB-FE1A-46B5-A1ED-61C9DB11E478","renderContextTable":{"__isSmartRef__":true,"id":6141},"eventHandler":{"__isSmartRef__":true,"id":6142},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6067},"_Position":{"__isSmartRef__":true,"id":6143},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6069":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6070},"derivationIds":[null],"id":"5733D9AB-5826-49FB-874B-412568486F4A","renderContextTable":{"__isSmartRef__":true,"id":6077},"eventHandler":{"__isSmartRef__":true,"id":6078},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6068},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6070":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6071},{"__isSmartRef__":true,"id":6072}],"renderContextTable":{"__isSmartRef__":true,"id":6073},"_Position":{"__isSmartRef__":true,"id":6074},"_Extent":{"__isSmartRef__":true,"id":6075},"_Padding":{"__isSmartRef__":true,"id":6076},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6071":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6072":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6073":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6074":{"x":3,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6075":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6076":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6077":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6078":{"morph":{"__isSmartRef__":true,"id":6069},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6079":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6080},"derivationIds":[null],"id":"C9A8C86D-608A-4873-838B-876935F4FD9E","renderContextTable":{"__isSmartRef__":true,"id":6087},"eventHandler":{"__isSmartRef__":true,"id":6088},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6068},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6080":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6081},{"__isSmartRef__":true,"id":6082}],"renderContextTable":{"__isSmartRef__":true,"id":6083},"_Position":{"__isSmartRef__":true,"id":6084},"_Extent":{"__isSmartRef__":true,"id":6085},"_Padding":{"__isSmartRef__":true,"id":6086},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6081":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6082":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6083":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6084":{"x":35,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6085":{"x":11,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6086":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6087":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6088":{"morph":{"__isSmartRef__":true,"id":6079},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6089":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6090},"derivationIds":[null],"id":"A4A6CA7F-3B3F-4D32-B069-851016D4976F","renderContextTable":{"__isSmartRef__":true,"id":6097},"eventHandler":{"__isSmartRef__":true,"id":6098},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6068},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6090":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6091},{"__isSmartRef__":true,"id":6092}],"renderContextTable":{"__isSmartRef__":true,"id":6093},"_Position":{"__isSmartRef__":true,"id":6094},"_Extent":{"__isSmartRef__":true,"id":6095},"_Padding":{"__isSmartRef__":true,"id":6096},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6091":{"isAbsolute":true,"x":20,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6092":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6093":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6094":{"x":11,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6095":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6096":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6097":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6098":{"morph":{"__isSmartRef__":true,"id":6089},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6099":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6100},"derivationIds":[null],"id":"F6EFCBD1-90BA-4613-8F28-173C84AA5B5D","renderContextTable":{"__isSmartRef__":true,"id":6107},"eventHandler":{"__isSmartRef__":true,"id":6108},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6068},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6100":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6101},{"__isSmartRef__":true,"id":6102}],"renderContextTable":{"__isSmartRef__":true,"id":6103},"_Position":{"__isSmartRef__":true,"id":6104},"_Extent":{"__isSmartRef__":true,"id":6105},"_Padding":{"__isSmartRef__":true,"id":6106},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6101":{"isAbsolute":true,"x":13,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6102":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6103":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6104":{"x":11,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6105":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6106":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6107":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6108":{"morph":{"__isSmartRef__":true,"id":6099},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6109":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6110},"derivationIds":[null],"id":"2339753B-4043-4BC8-AC79-BA0DADC50090","renderContextTable":{"__isSmartRef__":true,"id":6117},"eventHandler":{"__isSmartRef__":true,"id":6118},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6068},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6110":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6111},{"__isSmartRef__":true,"id":6112}],"renderContextTable":{"__isSmartRef__":true,"id":6113},"_Position":{"__isSmartRef__":true,"id":6114},"_Extent":{"__isSmartRef__":true,"id":6115},"_Padding":{"__isSmartRef__":true,"id":6116},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6111":{"isAbsolute":true,"x":30,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6112":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6113":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6114":{"x":28,"y":7,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6115":{"x":10,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6116":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6117":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6118":{"morph":{"__isSmartRef__":true,"id":6109},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6119":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6120},"derivationIds":[null],"id":"C0FB88C7-5ADE-410A-99BF-ABCB7E450C43","renderContextTable":{"__isSmartRef__":true,"id":6127},"eventHandler":{"__isSmartRef__":true,"id":6128},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6068},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6120":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6121},{"__isSmartRef__":true,"id":6122}],"renderContextTable":{"__isSmartRef__":true,"id":6123},"_Position":{"__isSmartRef__":true,"id":6124},"_Extent":{"__isSmartRef__":true,"id":6125},"_Padding":{"__isSmartRef__":true,"id":6126},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6121":{"isAbsolute":true,"x":37,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6122":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6123":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6124":{"x":23,"y":18,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6125":{"x":15,"y":24,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6126":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6127":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6128":{"morph":{"__isSmartRef__":true,"id":6119},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6129":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6130},{"__isSmartRef__":true,"id":6131},{"__isSmartRef__":true,"id":6132},{"__isSmartRef__":true,"id":6133},{"__isSmartRef__":true,"id":6134},{"__isSmartRef__":true,"id":6135}],"renderContextTable":{"__isSmartRef__":true,"id":6136},"_Position":{"__isSmartRef__":true,"id":6137},"_Extent":{"__isSmartRef__":true,"id":6138},"_Padding":{"__isSmartRef__":true,"id":6139},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6140},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6130":{"isAbsolute":true,"x":15,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6131":{"isAbsolute":true,"x":35,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6132":{"isAbsolute":true,"x":45,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6133":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6134":{"isAbsolute":true,"x":25,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6135":{"isAbsolute":true,"x":5,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6136":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6137":{"x":4,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6138":{"x":41,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6139":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6140":{"r":0.8,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6141":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6142":{"morph":{"__isSmartRef__":true,"id":6068},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6143":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6144":{"position":{"__isSmartRef__":true,"id":6145},"_Extent":{"__isSmartRef__":true,"id":6146},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6147},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6148},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6149},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6145":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6146":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6147":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6148":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6149":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6150":{"x":148.61108261184663,"y":362.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6151":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6152},{"__isSmartRef__":true,"id":6154},{"__isSmartRef__":true,"id":6156},{"__isSmartRef__":true,"id":6158},{"__isSmartRef__":true,"id":6160},{"__isSmartRef__":true,"id":6162},{"__isSmartRef__":true,"id":6164},{"__isSmartRef__":true,"id":6166},{"__isSmartRef__":true,"id":6168},{"__isSmartRef__":true,"id":6170},{"__isSmartRef__":true,"id":6172},{"__isSmartRef__":true,"id":6174},{"__isSmartRef__":true,"id":6176},{"__isSmartRef__":true,"id":6178},{"__isSmartRef__":true,"id":6180},{"__isSmartRef__":true,"id":6182},{"__isSmartRef__":true,"id":6184},{"__isSmartRef__":true,"id":6186},{"__isSmartRef__":true,"id":6188}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6152":{"date":{"__isSmartRef__":true,"id":6153},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6153":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6154":{"date":{"__isSmartRef__":true,"id":6155},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6155":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6156":{"date":{"__isSmartRef__":true,"id":6157},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6157":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6158":{"date":{"__isSmartRef__":true,"id":6159},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6159":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6160":{"date":{"__isSmartRef__":true,"id":6161},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6161":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6162":{"date":{"__isSmartRef__":true,"id":6163},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6163":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6164":{"date":{"__isSmartRef__":true,"id":6165},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6165":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6166":{"date":{"__isSmartRef__":true,"id":6167},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6167":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6168":{"date":{"__isSmartRef__":true,"id":6169},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6169":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6170":{"date":{"__isSmartRef__":true,"id":6171},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6171":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6172":{"date":{"__isSmartRef__":true,"id":6173},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6173":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6174":{"date":{"__isSmartRef__":true,"id":6175},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6175":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6176":{"date":{"__isSmartRef__":true,"id":6177},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6177":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6178":{"date":{"__isSmartRef__":true,"id":6179},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6179":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6180":{"date":{"__isSmartRef__":true,"id":6181},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6181":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6182":{"date":{"__isSmartRef__":true,"id":6183},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6183":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6184":{"date":{"__isSmartRef__":true,"id":6185},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6185":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6186":{"date":{"__isSmartRef__":true,"id":6187},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6187":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6188":{"date":{"__isSmartRef__":true,"id":6189},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6189":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6190":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6191":{"morph":{"__isSmartRef__":true,"id":6067},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6192":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6193}},"6193":{"test01IsMorph":{"__isSmartRef__":true,"id":6194}},"6194":{"varMapping":{"__isSmartRef__":true,"id":6195},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6196},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6195":{"this":{"__isSmartRef__":true,"id":6192}},"6196":{},"6197":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6198":{"left":0,"up":1,"right":2,"down":3},"6199":{"submorphs":[{"__isSmartRef__":true,"id":6200}],"scripts":[],"id":"1F66DB3D-4AF1-4B3B-9728-F645809ED6F3","shape":{"__isSmartRef__":true,"id":6262},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6268},"showsHalos":false,"name":"BasicGem53","partsBinMetaInfo":{"__isSmartRef__":true,"id":6269},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6308},"eventHandler":{"__isSmartRef__":true,"id":6309},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6310},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6315},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6316},"neighbours":[{"__isSmartRef__":true,"id":6067},{"__isSmartRef__":true,"id":5126},{"__isSmartRef__":true,"id":6317},{"__isSmartRef__":true,"id":6939}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":6268},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8898},"__LivelyClassName__":"lively.morphic.Box"},"6200":{"submorphs":[{"__isSmartRef__":true,"id":6201},{"__isSmartRef__":true,"id":6212},{"__isSmartRef__":true,"id":6223},{"__isSmartRef__":true,"id":6234}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6245},"derivationIds":[null],"id":"F79CCC4A-7A32-4F22-932F-CBF15C0E17B3","renderContextTable":{"__isSmartRef__":true,"id":6259},"eventHandler":{"__isSmartRef__":true,"id":6260},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6199},"_Position":{"__isSmartRef__":true,"id":6261},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6201":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6202},"derivationIds":[null],"id":"B038B74B-F0F2-42EE-8CF0-81B636EDDF0B","renderContextTable":{"__isSmartRef__":true,"id":6210},"eventHandler":{"__isSmartRef__":true,"id":6211},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6200},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6202":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6203},{"__isSmartRef__":true,"id":6204}],"renderContextTable":{"__isSmartRef__":true,"id":6205},"_Position":{"__isSmartRef__":true,"id":6206},"_Extent":{"__isSmartRef__":true,"id":6207},"_Padding":{"__isSmartRef__":true,"id":6208},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6209},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6203":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6204":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6205":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6206":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6207":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6208":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6209":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6210":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6211":{"morph":{"__isSmartRef__":true,"id":6201},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6212":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6213},"derivationIds":[null],"id":"7B77E00B-E799-4CFE-94EB-E1296B3F85E9","renderContextTable":{"__isSmartRef__":true,"id":6221},"eventHandler":{"__isSmartRef__":true,"id":6222},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6200},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6213":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6214},{"__isSmartRef__":true,"id":6215}],"renderContextTable":{"__isSmartRef__":true,"id":6216},"_Position":{"__isSmartRef__":true,"id":6217},"_Extent":{"__isSmartRef__":true,"id":6218},"_Padding":{"__isSmartRef__":true,"id":6219},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6220},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6214":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6215":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6216":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6217":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6218":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6219":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6220":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6221":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6222":{"morph":{"__isSmartRef__":true,"id":6212},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6223":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6224},"derivationIds":[null],"id":"7307CD05-5CE2-4D35-BFEF-B127EF9E92EC","renderContextTable":{"__isSmartRef__":true,"id":6232},"eventHandler":{"__isSmartRef__":true,"id":6233},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6200},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6224":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6225},{"__isSmartRef__":true,"id":6226}],"renderContextTable":{"__isSmartRef__":true,"id":6227},"_Position":{"__isSmartRef__":true,"id":6228},"_Extent":{"__isSmartRef__":true,"id":6229},"_Padding":{"__isSmartRef__":true,"id":6230},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6231},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6225":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6226":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6227":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6228":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6229":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6230":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6231":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6232":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6233":{"morph":{"__isSmartRef__":true,"id":6223},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6234":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6235},"derivationIds":[null],"id":"937A44D3-80B3-4018-8127-BA7C3EDBC142","renderContextTable":{"__isSmartRef__":true,"id":6243},"eventHandler":{"__isSmartRef__":true,"id":6244},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6200},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6235":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6236},{"__isSmartRef__":true,"id":6237}],"renderContextTable":{"__isSmartRef__":true,"id":6238},"_Position":{"__isSmartRef__":true,"id":6239},"_Extent":{"__isSmartRef__":true,"id":6240},"_Padding":{"__isSmartRef__":true,"id":6241},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6242},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6236":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6237":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6238":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6239":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6240":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6241":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6242":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6243":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6244":{"morph":{"__isSmartRef__":true,"id":6234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6245":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6246},{"__isSmartRef__":true,"id":6247},{"__isSmartRef__":true,"id":6248},{"__isSmartRef__":true,"id":6249},{"__isSmartRef__":true,"id":6250},{"__isSmartRef__":true,"id":6251},{"__isSmartRef__":true,"id":6252},{"__isSmartRef__":true,"id":6253}],"renderContextTable":{"__isSmartRef__":true,"id":6254},"_Position":{"__isSmartRef__":true,"id":6255},"_Extent":{"__isSmartRef__":true,"id":6256},"_Padding":{"__isSmartRef__":true,"id":6257},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6258},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6246":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6247":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6248":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6249":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6250":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6251":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6252":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6253":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6254":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6255":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6256":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6257":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6258":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6259":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6260":{"morph":{"__isSmartRef__":true,"id":6200},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6261":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6262":{"position":{"__isSmartRef__":true,"id":6263},"_Extent":{"__isSmartRef__":true,"id":6264},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6265},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6266},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6267},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6263":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6264":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6265":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6266":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6267":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6268":{"x":197.8147768157955,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6269":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6270},{"__isSmartRef__":true,"id":6272},{"__isSmartRef__":true,"id":6274},{"__isSmartRef__":true,"id":6276},{"__isSmartRef__":true,"id":6278},{"__isSmartRef__":true,"id":6280},{"__isSmartRef__":true,"id":6282},{"__isSmartRef__":true,"id":6284},{"__isSmartRef__":true,"id":6286},{"__isSmartRef__":true,"id":6288},{"__isSmartRef__":true,"id":6290},{"__isSmartRef__":true,"id":6292},{"__isSmartRef__":true,"id":6294},{"__isSmartRef__":true,"id":6296},{"__isSmartRef__":true,"id":6298},{"__isSmartRef__":true,"id":6300},{"__isSmartRef__":true,"id":6302},{"__isSmartRef__":true,"id":6304},{"__isSmartRef__":true,"id":6306}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6270":{"date":{"__isSmartRef__":true,"id":6271},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6271":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6272":{"date":{"__isSmartRef__":true,"id":6273},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6273":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6274":{"date":{"__isSmartRef__":true,"id":6275},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6275":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6276":{"date":{"__isSmartRef__":true,"id":6277},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6277":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6278":{"date":{"__isSmartRef__":true,"id":6279},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6279":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6280":{"date":{"__isSmartRef__":true,"id":6281},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6281":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6282":{"date":{"__isSmartRef__":true,"id":6283},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6283":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6284":{"date":{"__isSmartRef__":true,"id":6285},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6285":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6286":{"date":{"__isSmartRef__":true,"id":6287},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6287":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6288":{"date":{"__isSmartRef__":true,"id":6289},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6289":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6290":{"date":{"__isSmartRef__":true,"id":6291},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6291":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6292":{"date":{"__isSmartRef__":true,"id":6293},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6293":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6294":{"date":{"__isSmartRef__":true,"id":6295},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6295":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6296":{"date":{"__isSmartRef__":true,"id":6297},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6297":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6298":{"date":{"__isSmartRef__":true,"id":6299},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6299":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6300":{"date":{"__isSmartRef__":true,"id":6301},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6301":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6302":{"date":{"__isSmartRef__":true,"id":6303},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6303":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6304":{"date":{"__isSmartRef__":true,"id":6305},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6305":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6306":{"date":{"__isSmartRef__":true,"id":6307},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6307":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6308":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6309":{"morph":{"__isSmartRef__":true,"id":6199},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6310":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6311}},"6311":{"test01IsMorph":{"__isSmartRef__":true,"id":6312}},"6312":{"varMapping":{"__isSmartRef__":true,"id":6313},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6314},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6313":{"this":{"__isSmartRef__":true,"id":6310}},"6314":{},"6315":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6316":{"left":0,"up":1,"right":2,"down":3},"6317":{"submorphs":[{"__isSmartRef__":true,"id":6318}],"scripts":[],"id":"28359A61-2951-4929-A8B6-4BA28204F95D","shape":{"__isSmartRef__":true,"id":6354},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6360},"showsHalos":false,"name":"BasicGem54","partsBinMetaInfo":{"__isSmartRef__":true,"id":6361},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6400},"eventHandler":{"__isSmartRef__":true,"id":6401},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6402},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6407},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6408},"neighbours":[{"__isSmartRef__":true,"id":6199},{"__isSmartRef__":true,"id":5008},{"__isSmartRef__":true,"id":6409},{"__isSmartRef__":true,"id":6838}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"amethyst","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":8768},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8769},"__LivelyClassName__":"lively.morphic.Box"},"6318":{"submorphs":[{"__isSmartRef__":true,"id":6319},{"__isSmartRef__":true,"id":6330}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6341},"derivationIds":[null],"id":"94EC2ECC-6C1B-4970-9E9E-C332128D24DF","renderContextTable":{"__isSmartRef__":true,"id":6351},"eventHandler":{"__isSmartRef__":true,"id":6352},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6317},"_Position":{"__isSmartRef__":true,"id":6353},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6319":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6320},"derivationIds":[null],"id":"456BF22B-F243-404D-8251-545FD01AD3DF","renderContextTable":{"__isSmartRef__":true,"id":6328},"eventHandler":{"__isSmartRef__":true,"id":6329},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6318},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6320":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6321},{"__isSmartRef__":true,"id":6322}],"renderContextTable":{"__isSmartRef__":true,"id":6323},"_Position":{"__isSmartRef__":true,"id":6324},"_Extent":{"__isSmartRef__":true,"id":6325},"_Padding":{"__isSmartRef__":true,"id":6326},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6327},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6321":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6322":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6323":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6324":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6325":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6326":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6327":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6328":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6329":{"morph":{"__isSmartRef__":true,"id":6319},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6330":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6331},"derivationIds":[null],"id":"04CCE7CF-8558-4C0D-8493-4AB382DC6E74","renderContextTable":{"__isSmartRef__":true,"id":6339},"eventHandler":{"__isSmartRef__":true,"id":6340},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6318},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6331":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6332},{"__isSmartRef__":true,"id":6333}],"renderContextTable":{"__isSmartRef__":true,"id":6334},"_Position":{"__isSmartRef__":true,"id":6335},"_Extent":{"__isSmartRef__":true,"id":6336},"_Padding":{"__isSmartRef__":true,"id":6337},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6338},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6332":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6333":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6334":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6335":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6336":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6337":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6338":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6339":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6340":{"morph":{"__isSmartRef__":true,"id":6330},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6341":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6342},{"__isSmartRef__":true,"id":6343},{"__isSmartRef__":true,"id":6344},{"__isSmartRef__":true,"id":6345}],"renderContextTable":{"__isSmartRef__":true,"id":6346},"_Position":{"__isSmartRef__":true,"id":6347},"_Extent":{"__isSmartRef__":true,"id":6348},"_Padding":{"__isSmartRef__":true,"id":6349},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6350},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6342":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6343":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6344":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6345":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6346":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6347":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6348":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6349":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6350":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6351":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6352":{"morph":{"__isSmartRef__":true,"id":6318},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6353":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6354":{"position":{"__isSmartRef__":true,"id":6355},"_Extent":{"__isSmartRef__":true,"id":6356},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6357},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6358},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6359},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6355":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6356":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6357":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6358":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6359":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6360":{"x":247.0184710197444,"y":362.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6361":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6362},{"__isSmartRef__":true,"id":6364},{"__isSmartRef__":true,"id":6366},{"__isSmartRef__":true,"id":6368},{"__isSmartRef__":true,"id":6370},{"__isSmartRef__":true,"id":6372},{"__isSmartRef__":true,"id":6374},{"__isSmartRef__":true,"id":6376},{"__isSmartRef__":true,"id":6378},{"__isSmartRef__":true,"id":6380},{"__isSmartRef__":true,"id":6382},{"__isSmartRef__":true,"id":6384},{"__isSmartRef__":true,"id":6386},{"__isSmartRef__":true,"id":6388},{"__isSmartRef__":true,"id":6390},{"__isSmartRef__":true,"id":6392},{"__isSmartRef__":true,"id":6394},{"__isSmartRef__":true,"id":6396},{"__isSmartRef__":true,"id":6398}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6362":{"date":{"__isSmartRef__":true,"id":6363},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6363":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6364":{"date":{"__isSmartRef__":true,"id":6365},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6365":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6366":{"date":{"__isSmartRef__":true,"id":6367},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6367":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6368":{"date":{"__isSmartRef__":true,"id":6369},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6369":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6370":{"date":{"__isSmartRef__":true,"id":6371},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6371":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6372":{"date":{"__isSmartRef__":true,"id":6373},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6373":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6374":{"date":{"__isSmartRef__":true,"id":6375},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6375":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6376":{"date":{"__isSmartRef__":true,"id":6377},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6377":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6378":{"date":{"__isSmartRef__":true,"id":6379},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6379":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6380":{"date":{"__isSmartRef__":true,"id":6381},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6381":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6382":{"date":{"__isSmartRef__":true,"id":6383},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6383":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6384":{"date":{"__isSmartRef__":true,"id":6385},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6385":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6386":{"date":{"__isSmartRef__":true,"id":6387},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6387":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6388":{"date":{"__isSmartRef__":true,"id":6389},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6389":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6390":{"date":{"__isSmartRef__":true,"id":6391},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6391":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6392":{"date":{"__isSmartRef__":true,"id":6393},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6393":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6394":{"date":{"__isSmartRef__":true,"id":6395},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6395":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6396":{"date":{"__isSmartRef__":true,"id":6397},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6397":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6398":{"date":{"__isSmartRef__":true,"id":6399},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6399":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6400":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6401":{"morph":{"__isSmartRef__":true,"id":6317},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6402":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6403}},"6403":{"test01IsMorph":{"__isSmartRef__":true,"id":6404}},"6404":{"varMapping":{"__isSmartRef__":true,"id":6405},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6405":{"this":{"__isSmartRef__":true,"id":6402}},"6406":{},"6407":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6408":{"left":0,"up":1,"right":2,"down":3},"6409":{"submorphs":[{"__isSmartRef__":true,"id":6410}],"scripts":[],"id":"13C268A4-7A07-4844-A8E5-A8E08CFE6C4D","shape":{"__isSmartRef__":true,"id":6446},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6452},"showsHalos":false,"name":"BasicGem55","partsBinMetaInfo":{"__isSmartRef__":true,"id":6453},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6492},"eventHandler":{"__isSmartRef__":true,"id":6493},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6494},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6499},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6500},"neighbours":[{"__isSmartRef__":true,"id":6317},{"__isSmartRef__":true,"id":4916},{"__isSmartRef__":true,"id":6501},{"__isSmartRef__":true,"id":6746}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":6452},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8639},"__LivelyClassName__":"lively.morphic.Box"},"6410":{"submorphs":[{"__isSmartRef__":true,"id":6411},{"__isSmartRef__":true,"id":6422}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6433},"derivationIds":[null],"id":"6BEE8710-60D6-4213-8E35-60D53FCE1698","renderContextTable":{"__isSmartRef__":true,"id":6443},"eventHandler":{"__isSmartRef__":true,"id":6444},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6409},"_Position":{"__isSmartRef__":true,"id":6445},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6411":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6412},"derivationIds":[null],"id":"0D05E411-12E1-49F9-9D8D-4317745756E5","renderContextTable":{"__isSmartRef__":true,"id":6420},"eventHandler":{"__isSmartRef__":true,"id":6421},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6410},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6412":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6413},{"__isSmartRef__":true,"id":6414}],"renderContextTable":{"__isSmartRef__":true,"id":6415},"_Position":{"__isSmartRef__":true,"id":6416},"_Extent":{"__isSmartRef__":true,"id":6417},"_Padding":{"__isSmartRef__":true,"id":6418},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6419},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6413":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6414":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6415":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6416":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6417":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6418":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6419":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6420":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6421":{"morph":{"__isSmartRef__":true,"id":6411},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6422":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6423},"derivationIds":[null],"id":"D6633BC3-5409-4278-92F2-08DB38CD1BA6","renderContextTable":{"__isSmartRef__":true,"id":6431},"eventHandler":{"__isSmartRef__":true,"id":6432},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6410},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6423":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6424},{"__isSmartRef__":true,"id":6425}],"renderContextTable":{"__isSmartRef__":true,"id":6426},"_Position":{"__isSmartRef__":true,"id":6427},"_Extent":{"__isSmartRef__":true,"id":6428},"_Padding":{"__isSmartRef__":true,"id":6429},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6430},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6424":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6425":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6426":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6427":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6428":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6429":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6430":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6431":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6432":{"morph":{"__isSmartRef__":true,"id":6422},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6433":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6434},{"__isSmartRef__":true,"id":6435},{"__isSmartRef__":true,"id":6436},{"__isSmartRef__":true,"id":6437}],"renderContextTable":{"__isSmartRef__":true,"id":6438},"_Position":{"__isSmartRef__":true,"id":6439},"_Extent":{"__isSmartRef__":true,"id":6440},"_Padding":{"__isSmartRef__":true,"id":6441},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6442},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6434":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6435":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6436":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6437":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6438":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6439":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6440":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6441":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6442":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6443":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6444":{"morph":{"__isSmartRef__":true,"id":6410},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6445":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6446":{"position":{"__isSmartRef__":true,"id":6447},"_Extent":{"__isSmartRef__":true,"id":6448},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6449},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6450},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6451},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6447":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6448":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6449":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6450":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6451":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6452":{"x":296.22216522369325,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6453":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6454},{"__isSmartRef__":true,"id":6456},{"__isSmartRef__":true,"id":6458},{"__isSmartRef__":true,"id":6460},{"__isSmartRef__":true,"id":6462},{"__isSmartRef__":true,"id":6464},{"__isSmartRef__":true,"id":6466},{"__isSmartRef__":true,"id":6468},{"__isSmartRef__":true,"id":6470},{"__isSmartRef__":true,"id":6472},{"__isSmartRef__":true,"id":6474},{"__isSmartRef__":true,"id":6476},{"__isSmartRef__":true,"id":6478},{"__isSmartRef__":true,"id":6480},{"__isSmartRef__":true,"id":6482},{"__isSmartRef__":true,"id":6484},{"__isSmartRef__":true,"id":6486},{"__isSmartRef__":true,"id":6488},{"__isSmartRef__":true,"id":6490}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6454":{"date":{"__isSmartRef__":true,"id":6455},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6455":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6456":{"date":{"__isSmartRef__":true,"id":6457},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6457":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6458":{"date":{"__isSmartRef__":true,"id":6459},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6459":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6460":{"date":{"__isSmartRef__":true,"id":6461},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6461":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6462":{"date":{"__isSmartRef__":true,"id":6463},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6463":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6464":{"date":{"__isSmartRef__":true,"id":6465},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6465":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6466":{"date":{"__isSmartRef__":true,"id":6467},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6467":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6468":{"date":{"__isSmartRef__":true,"id":6469},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6469":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6470":{"date":{"__isSmartRef__":true,"id":6471},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6471":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6472":{"date":{"__isSmartRef__":true,"id":6473},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6473":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6474":{"date":{"__isSmartRef__":true,"id":6475},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6475":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6476":{"date":{"__isSmartRef__":true,"id":6477},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6477":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6478":{"date":{"__isSmartRef__":true,"id":6479},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6479":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6480":{"date":{"__isSmartRef__":true,"id":6481},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6481":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6482":{"date":{"__isSmartRef__":true,"id":6483},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6483":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6484":{"date":{"__isSmartRef__":true,"id":6485},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6485":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6486":{"date":{"__isSmartRef__":true,"id":6487},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6487":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6488":{"date":{"__isSmartRef__":true,"id":6489},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6489":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6490":{"date":{"__isSmartRef__":true,"id":6491},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6491":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6492":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6493":{"morph":{"__isSmartRef__":true,"id":6409},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6494":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6495}},"6495":{"test01IsMorph":{"__isSmartRef__":true,"id":6496}},"6496":{"varMapping":{"__isSmartRef__":true,"id":6497},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6498},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6497":{"this":{"__isSmartRef__":true,"id":6494}},"6498":{},"6499":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6500":{"left":0,"up":1,"right":2,"down":3},"6501":{"submorphs":[{"__isSmartRef__":true,"id":6502}],"scripts":[],"id":"2AD10FB5-6966-4073-8ADF-37B8CC37B874","shape":{"__isSmartRef__":true,"id":6564},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6570},"showsHalos":false,"name":"BasicGem56","partsBinMetaInfo":{"__isSmartRef__":true,"id":6571},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6610},"eventHandler":{"__isSmartRef__":true,"id":6611},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6612},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6617},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6618},"neighbours":[{"__isSmartRef__":true,"id":6409},{"__isSmartRef__":true,"id":4781},null,{"__isSmartRef__":true,"id":6619}],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8510},"__LivelyClassName__":"lively.morphic.Box"},"6502":{"submorphs":[{"__isSmartRef__":true,"id":6503},{"__isSmartRef__":true,"id":6514},{"__isSmartRef__":true,"id":6525},{"__isSmartRef__":true,"id":6536}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6547},"derivationIds":[null],"id":"C1FC2DF1-A5CC-4A49-BDF7-D9DF2E8E54D5","renderContextTable":{"__isSmartRef__":true,"id":6561},"eventHandler":{"__isSmartRef__":true,"id":6562},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6501},"_Position":{"__isSmartRef__":true,"id":6563},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6503":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6504},"derivationIds":[null],"id":"C61C472E-80FD-4C4E-8EF5-1E9DF27C3395","renderContextTable":{"__isSmartRef__":true,"id":6512},"eventHandler":{"__isSmartRef__":true,"id":6513},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6502},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6504":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6505},{"__isSmartRef__":true,"id":6506}],"renderContextTable":{"__isSmartRef__":true,"id":6507},"_Position":{"__isSmartRef__":true,"id":6508},"_Extent":{"__isSmartRef__":true,"id":6509},"_Padding":{"__isSmartRef__":true,"id":6510},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6511},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6505":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6506":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6507":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6508":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6509":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6510":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6511":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6512":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6513":{"morph":{"__isSmartRef__":true,"id":6503},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6514":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6515},"derivationIds":[null],"id":"461EB841-4D31-49EB-87C7-D628C323389A","renderContextTable":{"__isSmartRef__":true,"id":6523},"eventHandler":{"__isSmartRef__":true,"id":6524},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6502},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6515":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6516},{"__isSmartRef__":true,"id":6517}],"renderContextTable":{"__isSmartRef__":true,"id":6518},"_Position":{"__isSmartRef__":true,"id":6519},"_Extent":{"__isSmartRef__":true,"id":6520},"_Padding":{"__isSmartRef__":true,"id":6521},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6522},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6516":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6517":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6518":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6519":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6520":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6521":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6522":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6523":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6524":{"morph":{"__isSmartRef__":true,"id":6514},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6525":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6526},"derivationIds":[null],"id":"21733C04-773C-4E4E-8104-0287AD12BE5A","renderContextTable":{"__isSmartRef__":true,"id":6534},"eventHandler":{"__isSmartRef__":true,"id":6535},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6502},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6526":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6527},{"__isSmartRef__":true,"id":6528}],"renderContextTable":{"__isSmartRef__":true,"id":6529},"_Position":{"__isSmartRef__":true,"id":6530},"_Extent":{"__isSmartRef__":true,"id":6531},"_Padding":{"__isSmartRef__":true,"id":6532},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6533},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6527":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6528":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6529":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6530":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6531":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6532":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6533":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6534":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6535":{"morph":{"__isSmartRef__":true,"id":6525},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6536":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6537},"derivationIds":[null],"id":"2C828E83-2959-4430-8900-0933D9A7FEF5","renderContextTable":{"__isSmartRef__":true,"id":6545},"eventHandler":{"__isSmartRef__":true,"id":6546},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6502},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6537":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6538},{"__isSmartRef__":true,"id":6539}],"renderContextTable":{"__isSmartRef__":true,"id":6540},"_Position":{"__isSmartRef__":true,"id":6541},"_Extent":{"__isSmartRef__":true,"id":6542},"_Padding":{"__isSmartRef__":true,"id":6543},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":6544},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6538":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6539":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6540":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6541":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6542":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6543":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6544":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6545":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6546":{"morph":{"__isSmartRef__":true,"id":6536},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6547":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6548},{"__isSmartRef__":true,"id":6549},{"__isSmartRef__":true,"id":6550},{"__isSmartRef__":true,"id":6551},{"__isSmartRef__":true,"id":6552},{"__isSmartRef__":true,"id":6553},{"__isSmartRef__":true,"id":6554},{"__isSmartRef__":true,"id":6555}],"renderContextTable":{"__isSmartRef__":true,"id":6556},"_Position":{"__isSmartRef__":true,"id":6557},"_Extent":{"__isSmartRef__":true,"id":6558},"_Padding":{"__isSmartRef__":true,"id":6559},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6560},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6548":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6549":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6550":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6551":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6552":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6553":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6554":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6555":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6557":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6558":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6559":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6560":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6561":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6562":{"morph":{"__isSmartRef__":true,"id":6502},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6563":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6564":{"position":{"__isSmartRef__":true,"id":6565},"_Extent":{"__isSmartRef__":true,"id":6566},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6567},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6568},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6569},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6565":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6566":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6567":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6568":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6569":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6570":{"x":345.42585942764214,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6571":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6572},{"__isSmartRef__":true,"id":6574},{"__isSmartRef__":true,"id":6576},{"__isSmartRef__":true,"id":6578},{"__isSmartRef__":true,"id":6580},{"__isSmartRef__":true,"id":6582},{"__isSmartRef__":true,"id":6584},{"__isSmartRef__":true,"id":6586},{"__isSmartRef__":true,"id":6588},{"__isSmartRef__":true,"id":6590},{"__isSmartRef__":true,"id":6592},{"__isSmartRef__":true,"id":6594},{"__isSmartRef__":true,"id":6596},{"__isSmartRef__":true,"id":6598},{"__isSmartRef__":true,"id":6600},{"__isSmartRef__":true,"id":6602},{"__isSmartRef__":true,"id":6604},{"__isSmartRef__":true,"id":6606},{"__isSmartRef__":true,"id":6608}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6572":{"date":{"__isSmartRef__":true,"id":6573},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6573":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6574":{"date":{"__isSmartRef__":true,"id":6575},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6575":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6576":{"date":{"__isSmartRef__":true,"id":6577},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6577":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6578":{"date":{"__isSmartRef__":true,"id":6579},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6579":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6580":{"date":{"__isSmartRef__":true,"id":6581},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6581":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6582":{"date":{"__isSmartRef__":true,"id":6583},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6583":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6584":{"date":{"__isSmartRef__":true,"id":6585},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6585":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6586":{"date":{"__isSmartRef__":true,"id":6587},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6587":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6588":{"date":{"__isSmartRef__":true,"id":6589},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6589":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6590":{"date":{"__isSmartRef__":true,"id":6591},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6591":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6592":{"date":{"__isSmartRef__":true,"id":6593},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6593":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6594":{"date":{"__isSmartRef__":true,"id":6595},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6595":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6596":{"date":{"__isSmartRef__":true,"id":6597},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6597":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6598":{"date":{"__isSmartRef__":true,"id":6599},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6599":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6600":{"date":{"__isSmartRef__":true,"id":6601},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6601":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6602":{"date":{"__isSmartRef__":true,"id":6603},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6603":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6604":{"date":{"__isSmartRef__":true,"id":6605},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6605":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6606":{"date":{"__isSmartRef__":true,"id":6607},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6607":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6608":{"date":{"__isSmartRef__":true,"id":6609},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6609":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6610":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6611":{"morph":{"__isSmartRef__":true,"id":6501},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6612":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6613}},"6613":{"test01IsMorph":{"__isSmartRef__":true,"id":6614}},"6614":{"varMapping":{"__isSmartRef__":true,"id":6615},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6616},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6615":{"this":{"__isSmartRef__":true,"id":6612}},"6616":{},"6617":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6618":{"left":0,"up":1,"right":2,"down":3},"6619":{"submorphs":[{"__isSmartRef__":true,"id":6620}],"scripts":[],"id":"829D7F9A-0C9C-4B8A-BBE8-CB33F24EE5A6","shape":{"__isSmartRef__":true,"id":6691},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6697},"showsHalos":false,"name":"BasicGem64","partsBinMetaInfo":{"__isSmartRef__":true,"id":6698},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6737},"eventHandler":{"__isSmartRef__":true,"id":6738},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6739},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6744},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6745},"neighbours":[{"__isSmartRef__":true,"id":6746},{"__isSmartRef__":true,"id":6501},null,null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8381},"__LivelyClassName__":"lively.morphic.Box"},"6620":{"submorphs":[{"__isSmartRef__":true,"id":6621},{"__isSmartRef__":true,"id":6632},{"__isSmartRef__":true,"id":6643},{"__isSmartRef__":true,"id":6654},{"__isSmartRef__":true,"id":6665}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6676},"derivationIds":[null],"id":"AFE26B95-CE86-4335-9187-9D65BB698E19","renderContextTable":{"__isSmartRef__":true,"id":6688},"eventHandler":{"__isSmartRef__":true,"id":6689},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6619},"_Position":{"__isSmartRef__":true,"id":6690},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6621":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6622},"derivationIds":[null],"id":"B90AEAC5-F452-4E82-8407-DD83C1BCEDA2","renderContextTable":{"__isSmartRef__":true,"id":6630},"eventHandler":{"__isSmartRef__":true,"id":6631},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6622":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6623},{"__isSmartRef__":true,"id":6624}],"renderContextTable":{"__isSmartRef__":true,"id":6625},"_Position":{"__isSmartRef__":true,"id":6626},"_Extent":{"__isSmartRef__":true,"id":6627},"_Padding":{"__isSmartRef__":true,"id":6628},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6629},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6623":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6624":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6625":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6626":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6627":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6628":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6629":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6630":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6631":{"morph":{"__isSmartRef__":true,"id":6621},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6632":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6633},"derivationIds":[null],"id":"3CE610A3-3710-4547-ABF3-4FEDB0F7CB19","renderContextTable":{"__isSmartRef__":true,"id":6641},"eventHandler":{"__isSmartRef__":true,"id":6642},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6633":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6634},{"__isSmartRef__":true,"id":6635}],"renderContextTable":{"__isSmartRef__":true,"id":6636},"_Position":{"__isSmartRef__":true,"id":6637},"_Extent":{"__isSmartRef__":true,"id":6638},"_Padding":{"__isSmartRef__":true,"id":6639},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6640},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6634":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6635":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6636":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6637":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6638":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6639":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6640":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6641":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6642":{"morph":{"__isSmartRef__":true,"id":6632},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6643":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6644},"derivationIds":[null],"id":"8DD0B153-E5A6-4DFF-BF40-7830A909B883","renderContextTable":{"__isSmartRef__":true,"id":6652},"eventHandler":{"__isSmartRef__":true,"id":6653},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6644":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6645},{"__isSmartRef__":true,"id":6646}],"renderContextTable":{"__isSmartRef__":true,"id":6647},"_Position":{"__isSmartRef__":true,"id":6648},"_Extent":{"__isSmartRef__":true,"id":6649},"_Padding":{"__isSmartRef__":true,"id":6650},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6651},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6645":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6646":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6647":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6648":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6649":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6650":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6651":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6652":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6653":{"morph":{"__isSmartRef__":true,"id":6643},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6654":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6655},"derivationIds":[null],"id":"9B03DF46-18A2-483A-936A-9C7CA8816416","renderContextTable":{"__isSmartRef__":true,"id":6663},"eventHandler":{"__isSmartRef__":true,"id":6664},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6655":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6656},{"__isSmartRef__":true,"id":6657}],"renderContextTable":{"__isSmartRef__":true,"id":6658},"_Position":{"__isSmartRef__":true,"id":6659},"_Extent":{"__isSmartRef__":true,"id":6660},"_Padding":{"__isSmartRef__":true,"id":6661},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6662},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6656":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6657":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6658":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6659":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6660":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6661":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6662":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6663":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6664":{"morph":{"__isSmartRef__":true,"id":6654},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6665":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6666},"derivationIds":[null],"id":"D9076163-2157-4B11-A37A-DE7E2A62F1A9","renderContextTable":{"__isSmartRef__":true,"id":6674},"eventHandler":{"__isSmartRef__":true,"id":6675},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6620},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6666":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6667},{"__isSmartRef__":true,"id":6668}],"renderContextTable":{"__isSmartRef__":true,"id":6669},"_Position":{"__isSmartRef__":true,"id":6670},"_Extent":{"__isSmartRef__":true,"id":6671},"_Padding":{"__isSmartRef__":true,"id":6672},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6673},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6667":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6668":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6669":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6670":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6671":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6672":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6673":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6674":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6675":{"morph":{"__isSmartRef__":true,"id":6665},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6676":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6677},{"__isSmartRef__":true,"id":6678},{"__isSmartRef__":true,"id":6679},{"__isSmartRef__":true,"id":6680},{"__isSmartRef__":true,"id":6681},{"__isSmartRef__":true,"id":6682}],"renderContextTable":{"__isSmartRef__":true,"id":6683},"_Position":{"__isSmartRef__":true,"id":6684},"_Extent":{"__isSmartRef__":true,"id":6685},"_Padding":{"__isSmartRef__":true,"id":6686},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6687},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6677":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6678":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6679":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6680":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6681":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6682":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6683":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6684":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6685":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6686":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6687":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6688":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6689":{"morph":{"__isSmartRef__":true,"id":6620},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6690":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6691":{"position":{"__isSmartRef__":true,"id":6692},"_Extent":{"__isSmartRef__":true,"id":6693},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6694},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6695},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6696},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6692":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6693":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6694":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6695":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6696":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6697":{"x":345.42585942764214,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6698":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6699},{"__isSmartRef__":true,"id":6701},{"__isSmartRef__":true,"id":6703},{"__isSmartRef__":true,"id":6705},{"__isSmartRef__":true,"id":6707},{"__isSmartRef__":true,"id":6709},{"__isSmartRef__":true,"id":6711},{"__isSmartRef__":true,"id":6713},{"__isSmartRef__":true,"id":6715},{"__isSmartRef__":true,"id":6717},{"__isSmartRef__":true,"id":6719},{"__isSmartRef__":true,"id":6721},{"__isSmartRef__":true,"id":6723},{"__isSmartRef__":true,"id":6725},{"__isSmartRef__":true,"id":6727},{"__isSmartRef__":true,"id":6729},{"__isSmartRef__":true,"id":6731},{"__isSmartRef__":true,"id":6733},{"__isSmartRef__":true,"id":6735}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6699":{"date":{"__isSmartRef__":true,"id":6700},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6700":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6701":{"date":{"__isSmartRef__":true,"id":6702},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6702":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6703":{"date":{"__isSmartRef__":true,"id":6704},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6704":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6705":{"date":{"__isSmartRef__":true,"id":6706},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6706":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6707":{"date":{"__isSmartRef__":true,"id":6708},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6708":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6709":{"date":{"__isSmartRef__":true,"id":6710},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6710":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6711":{"date":{"__isSmartRef__":true,"id":6712},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6712":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6713":{"date":{"__isSmartRef__":true,"id":6714},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6714":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6715":{"date":{"__isSmartRef__":true,"id":6716},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6716":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6717":{"date":{"__isSmartRef__":true,"id":6718},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6718":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6719":{"date":{"__isSmartRef__":true,"id":6720},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6720":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6721":{"date":{"__isSmartRef__":true,"id":6722},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6722":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6723":{"date":{"__isSmartRef__":true,"id":6724},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6724":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6725":{"date":{"__isSmartRef__":true,"id":6726},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6726":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6727":{"date":{"__isSmartRef__":true,"id":6728},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6728":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6729":{"date":{"__isSmartRef__":true,"id":6730},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6730":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6731":{"date":{"__isSmartRef__":true,"id":6732},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6732":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6733":{"date":{"__isSmartRef__":true,"id":6734},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6734":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6735":{"date":{"__isSmartRef__":true,"id":6736},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6736":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6737":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6738":{"morph":{"__isSmartRef__":true,"id":6619},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6739":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6740}},"6740":{"test01IsMorph":{"__isSmartRef__":true,"id":6741}},"6741":{"varMapping":{"__isSmartRef__":true,"id":6742},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6743},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6742":{"this":{"__isSmartRef__":true,"id":6739}},"6743":{},"6744":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6745":{"left":0,"up":1,"right":2,"down":3},"6746":{"submorphs":[{"__isSmartRef__":true,"id":6747}],"scripts":[],"id":"DBA56CDC-F111-4481-8EB4-C30E3F726CD2","shape":{"__isSmartRef__":true,"id":6783},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6789},"showsHalos":false,"name":"BasicGem63","partsBinMetaInfo":{"__isSmartRef__":true,"id":6790},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6829},"eventHandler":{"__isSmartRef__":true,"id":6830},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6831},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6836},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6837},"neighbours":[{"__isSmartRef__":true,"id":6838},{"__isSmartRef__":true,"id":6409},{"__isSmartRef__":true,"id":6619},null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":6789},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8252},"__LivelyClassName__":"lively.morphic.Box"},"6747":{"submorphs":[{"__isSmartRef__":true,"id":6748},{"__isSmartRef__":true,"id":6759}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6770},"derivationIds":[null],"id":"E33E500D-C3FA-484C-8E70-369686AF3D1D","renderContextTable":{"__isSmartRef__":true,"id":6780},"eventHandler":{"__isSmartRef__":true,"id":6781},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6746},"_Position":{"__isSmartRef__":true,"id":6782},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6748":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6749},"derivationIds":[null],"id":"94C9D74C-544C-4F50-AF33-953C398EEAE2","renderContextTable":{"__isSmartRef__":true,"id":6757},"eventHandler":{"__isSmartRef__":true,"id":6758},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6747},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6749":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6750},{"__isSmartRef__":true,"id":6751}],"renderContextTable":{"__isSmartRef__":true,"id":6752},"_Position":{"__isSmartRef__":true,"id":6753},"_Extent":{"__isSmartRef__":true,"id":6754},"_Padding":{"__isSmartRef__":true,"id":6755},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6756},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6750":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6751":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6752":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6753":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6754":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6755":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6756":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6757":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6758":{"morph":{"__isSmartRef__":true,"id":6748},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6759":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6760},"derivationIds":[null],"id":"621336B7-AA09-443C-B27A-DA54FB2F3DC5","renderContextTable":{"__isSmartRef__":true,"id":6768},"eventHandler":{"__isSmartRef__":true,"id":6769},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6747},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6760":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6761},{"__isSmartRef__":true,"id":6762}],"renderContextTable":{"__isSmartRef__":true,"id":6763},"_Position":{"__isSmartRef__":true,"id":6764},"_Extent":{"__isSmartRef__":true,"id":6765},"_Padding":{"__isSmartRef__":true,"id":6766},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":6767},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6761":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6762":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6763":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6764":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6765":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6766":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6767":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6768":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6769":{"morph":{"__isSmartRef__":true,"id":6759},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6770":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6771},{"__isSmartRef__":true,"id":6772},{"__isSmartRef__":true,"id":6773},{"__isSmartRef__":true,"id":6774}],"renderContextTable":{"__isSmartRef__":true,"id":6775},"_Position":{"__isSmartRef__":true,"id":6776},"_Extent":{"__isSmartRef__":true,"id":6777},"_Padding":{"__isSmartRef__":true,"id":6778},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6779},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6771":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6772":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6773":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6774":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6775":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6776":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6777":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6778":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6779":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6780":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6781":{"morph":{"__isSmartRef__":true,"id":6747},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6782":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6783":{"position":{"__isSmartRef__":true,"id":6784},"_Extent":{"__isSmartRef__":true,"id":6785},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6786},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6787},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6788},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6784":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6785":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6786":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6787":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6788":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6789":{"x":296.22216522369325,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6790":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6791},{"__isSmartRef__":true,"id":6793},{"__isSmartRef__":true,"id":6795},{"__isSmartRef__":true,"id":6797},{"__isSmartRef__":true,"id":6799},{"__isSmartRef__":true,"id":6801},{"__isSmartRef__":true,"id":6803},{"__isSmartRef__":true,"id":6805},{"__isSmartRef__":true,"id":6807},{"__isSmartRef__":true,"id":6809},{"__isSmartRef__":true,"id":6811},{"__isSmartRef__":true,"id":6813},{"__isSmartRef__":true,"id":6815},{"__isSmartRef__":true,"id":6817},{"__isSmartRef__":true,"id":6819},{"__isSmartRef__":true,"id":6821},{"__isSmartRef__":true,"id":6823},{"__isSmartRef__":true,"id":6825},{"__isSmartRef__":true,"id":6827}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6791":{"date":{"__isSmartRef__":true,"id":6792},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6792":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6793":{"date":{"__isSmartRef__":true,"id":6794},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6794":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6795":{"date":{"__isSmartRef__":true,"id":6796},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6796":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6797":{"date":{"__isSmartRef__":true,"id":6798},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6798":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6799":{"date":{"__isSmartRef__":true,"id":6800},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6800":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6801":{"date":{"__isSmartRef__":true,"id":6802},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6802":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6803":{"date":{"__isSmartRef__":true,"id":6804},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6804":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6805":{"date":{"__isSmartRef__":true,"id":6806},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6806":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6807":{"date":{"__isSmartRef__":true,"id":6808},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6808":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6809":{"date":{"__isSmartRef__":true,"id":6810},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6810":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6811":{"date":{"__isSmartRef__":true,"id":6812},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6812":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6813":{"date":{"__isSmartRef__":true,"id":6814},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6814":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6815":{"date":{"__isSmartRef__":true,"id":6816},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6816":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6817":{"date":{"__isSmartRef__":true,"id":6818},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6818":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6819":{"date":{"__isSmartRef__":true,"id":6820},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6820":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6821":{"date":{"__isSmartRef__":true,"id":6822},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6822":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6823":{"date":{"__isSmartRef__":true,"id":6824},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6824":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6825":{"date":{"__isSmartRef__":true,"id":6826},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6826":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6827":{"date":{"__isSmartRef__":true,"id":6828},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6828":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6829":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6830":{"morph":{"__isSmartRef__":true,"id":6746},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6831":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6832}},"6832":{"test01IsMorph":{"__isSmartRef__":true,"id":6833}},"6833":{"varMapping":{"__isSmartRef__":true,"id":6834},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6835},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6834":{"this":{"__isSmartRef__":true,"id":6831}},"6835":{},"6836":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6837":{"left":0,"up":1,"right":2,"down":3},"6838":{"submorphs":[{"__isSmartRef__":true,"id":6839}],"scripts":[],"id":"64D5AE6D-9876-4A6A-9652-5C5F6D43906A","shape":{"__isSmartRef__":true,"id":6884},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6890},"showsHalos":false,"name":"BasicGem62","partsBinMetaInfo":{"__isSmartRef__":true,"id":6891},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":6930},"eventHandler":{"__isSmartRef__":true,"id":6931},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":6932},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":6937},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":6938},"neighbours":[{"__isSmartRef__":true,"id":6939},{"__isSmartRef__":true,"id":6317},{"__isSmartRef__":true,"id":6746},null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":6890},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8123},"__LivelyClassName__":"lively.morphic.Box"},"6839":{"submorphs":[{"__isSmartRef__":true,"id":6840},{"__isSmartRef__":true,"id":6850},{"__isSmartRef__":true,"id":6860}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6870},"derivationIds":[null],"id":"F6C55BF9-59C9-4860-892C-AA38BDE9FAFB","renderContextTable":{"__isSmartRef__":true,"id":6881},"eventHandler":{"__isSmartRef__":true,"id":6882},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6838},"_Position":{"__isSmartRef__":true,"id":6883},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6840":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6841},"derivationIds":[null],"id":"D987451D-6464-4D30-BCDC-65BC02D41A7D","renderContextTable":{"__isSmartRef__":true,"id":6848},"eventHandler":{"__isSmartRef__":true,"id":6849},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6839},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6841":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6842},{"__isSmartRef__":true,"id":6843}],"renderContextTable":{"__isSmartRef__":true,"id":6844},"_Position":{"__isSmartRef__":true,"id":6845},"_Extent":{"__isSmartRef__":true,"id":6846},"_Padding":{"__isSmartRef__":true,"id":6847},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6842":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6843":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6844":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6845":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6846":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6847":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6848":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6849":{"morph":{"__isSmartRef__":true,"id":6840},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6850":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6851},"derivationIds":[null],"id":"05ACA5C9-0902-45A9-A2AC-A49AD05F95CD","renderContextTable":{"__isSmartRef__":true,"id":6858},"eventHandler":{"__isSmartRef__":true,"id":6859},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6839},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6851":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6852},{"__isSmartRef__":true,"id":6853}],"renderContextTable":{"__isSmartRef__":true,"id":6854},"_Position":{"__isSmartRef__":true,"id":6855},"_Extent":{"__isSmartRef__":true,"id":6856},"_Padding":{"__isSmartRef__":true,"id":6857},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6852":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6853":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6854":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6855":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6856":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6857":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6858":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6859":{"morph":{"__isSmartRef__":true,"id":6850},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6860":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6861},"derivationIds":[null],"id":"A2A05031-1CB3-4328-A6EF-E3CC8C0AF09C","renderContextTable":{"__isSmartRef__":true,"id":6868},"eventHandler":{"__isSmartRef__":true,"id":6869},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6839},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6861":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6862},{"__isSmartRef__":true,"id":6863}],"renderContextTable":{"__isSmartRef__":true,"id":6864},"_Position":{"__isSmartRef__":true,"id":6865},"_Extent":{"__isSmartRef__":true,"id":6866},"_Padding":{"__isSmartRef__":true,"id":6867},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6862":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6863":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6864":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6865":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6866":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6867":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6868":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6869":{"morph":{"__isSmartRef__":true,"id":6860},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6870":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6871},{"__isSmartRef__":true,"id":6872},{"__isSmartRef__":true,"id":6873},{"__isSmartRef__":true,"id":6874},{"__isSmartRef__":true,"id":6875}],"renderContextTable":{"__isSmartRef__":true,"id":6876},"_Position":{"__isSmartRef__":true,"id":6877},"_Extent":{"__isSmartRef__":true,"id":6878},"_Padding":{"__isSmartRef__":true,"id":6879},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6880},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6871":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6872":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6873":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6874":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6875":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6876":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6877":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6878":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6879":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6880":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6881":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6882":{"morph":{"__isSmartRef__":true,"id":6839},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6883":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6884":{"position":{"__isSmartRef__":true,"id":6885},"_Extent":{"__isSmartRef__":true,"id":6886},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6887},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6888},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6889},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6885":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6886":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6887":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6888":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6889":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6890":{"x":247.0184710197444,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6891":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6892},{"__isSmartRef__":true,"id":6894},{"__isSmartRef__":true,"id":6896},{"__isSmartRef__":true,"id":6898},{"__isSmartRef__":true,"id":6900},{"__isSmartRef__":true,"id":6902},{"__isSmartRef__":true,"id":6904},{"__isSmartRef__":true,"id":6906},{"__isSmartRef__":true,"id":6908},{"__isSmartRef__":true,"id":6910},{"__isSmartRef__":true,"id":6912},{"__isSmartRef__":true,"id":6914},{"__isSmartRef__":true,"id":6916},{"__isSmartRef__":true,"id":6918},{"__isSmartRef__":true,"id":6920},{"__isSmartRef__":true,"id":6922},{"__isSmartRef__":true,"id":6924},{"__isSmartRef__":true,"id":6926},{"__isSmartRef__":true,"id":6928}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6892":{"date":{"__isSmartRef__":true,"id":6893},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6893":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6894":{"date":{"__isSmartRef__":true,"id":6895},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6895":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6896":{"date":{"__isSmartRef__":true,"id":6897},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6897":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6898":{"date":{"__isSmartRef__":true,"id":6899},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"6899":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"6900":{"date":{"__isSmartRef__":true,"id":6901},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"6901":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"6902":{"date":{"__isSmartRef__":true,"id":6903},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"6903":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"6904":{"date":{"__isSmartRef__":true,"id":6905},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"6905":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"6906":{"date":{"__isSmartRef__":true,"id":6907},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"6907":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"6908":{"date":{"__isSmartRef__":true,"id":6909},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"6909":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"6910":{"date":{"__isSmartRef__":true,"id":6911},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"6911":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"6912":{"date":{"__isSmartRef__":true,"id":6913},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"6913":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"6914":{"date":{"__isSmartRef__":true,"id":6915},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"6915":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"6916":{"date":{"__isSmartRef__":true,"id":6917},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"6917":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"6918":{"date":{"__isSmartRef__":true,"id":6919},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"6919":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"6920":{"date":{"__isSmartRef__":true,"id":6921},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"6921":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"6922":{"date":{"__isSmartRef__":true,"id":6923},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"6923":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"6924":{"date":{"__isSmartRef__":true,"id":6925},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"6925":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"6926":{"date":{"__isSmartRef__":true,"id":6927},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"6927":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"6928":{"date":{"__isSmartRef__":true,"id":6929},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"6929":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"6930":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6931":{"morph":{"__isSmartRef__":true,"id":6838},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"6932":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":6933}},"6933":{"test01IsMorph":{"__isSmartRef__":true,"id":6934}},"6934":{"varMapping":{"__isSmartRef__":true,"id":6935},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":6936},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"6935":{"this":{"__isSmartRef__":true,"id":6932}},"6936":{},"6937":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6938":{"left":0,"up":1,"right":2,"down":3},"6939":{"submorphs":[{"__isSmartRef__":true,"id":6940}],"scripts":[],"id":"CB3C1058-B7D2-4BF9-8256-130F7C464091","shape":{"__isSmartRef__":true,"id":6985},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":6991},"showsHalos":false,"name":"BasicGem61","partsBinMetaInfo":{"__isSmartRef__":true,"id":6992},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":7031},"eventHandler":{"__isSmartRef__":true,"id":7032},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":7033},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":7038},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":7039},"neighbours":[{"__isSmartRef__":true,"id":7040},{"__isSmartRef__":true,"id":6199},{"__isSmartRef__":true,"id":6838},null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":6991},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7994},"__LivelyClassName__":"lively.morphic.Box"},"6940":{"submorphs":[{"__isSmartRef__":true,"id":6941},{"__isSmartRef__":true,"id":6951},{"__isSmartRef__":true,"id":6961}],"scripts":[],"shape":{"__isSmartRef__":true,"id":6971},"derivationIds":[null],"id":"7D7C3E91-BFE8-49A4-98C8-757757492682","renderContextTable":{"__isSmartRef__":true,"id":6982},"eventHandler":{"__isSmartRef__":true,"id":6983},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6939},"_Position":{"__isSmartRef__":true,"id":6984},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6941":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6942},"derivationIds":[null],"id":"D31D466A-6013-4CFA-A56B-7066B9F37003","renderContextTable":{"__isSmartRef__":true,"id":6949},"eventHandler":{"__isSmartRef__":true,"id":6950},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6940},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6942":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6943},{"__isSmartRef__":true,"id":6944}],"renderContextTable":{"__isSmartRef__":true,"id":6945},"_Position":{"__isSmartRef__":true,"id":6946},"_Extent":{"__isSmartRef__":true,"id":6947},"_Padding":{"__isSmartRef__":true,"id":6948},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6943":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6944":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6945":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6946":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6947":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6948":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6949":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6950":{"morph":{"__isSmartRef__":true,"id":6941},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6951":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6952},"derivationIds":[null],"id":"322348B3-45C9-4251-AA03-9F16806B6175","renderContextTable":{"__isSmartRef__":true,"id":6959},"eventHandler":{"__isSmartRef__":true,"id":6960},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6940},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6952":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6953},{"__isSmartRef__":true,"id":6954}],"renderContextTable":{"__isSmartRef__":true,"id":6955},"_Position":{"__isSmartRef__":true,"id":6956},"_Extent":{"__isSmartRef__":true,"id":6957},"_Padding":{"__isSmartRef__":true,"id":6958},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6953":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6954":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6955":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6956":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6957":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6958":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6959":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6960":{"morph":{"__isSmartRef__":true,"id":6951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6961":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":6962},"derivationIds":[null],"id":"D04FC046-0898-496F-8AE3-902C809618B7","renderContextTable":{"__isSmartRef__":true,"id":6969},"eventHandler":{"__isSmartRef__":true,"id":6970},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":6940},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"6962":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6963},{"__isSmartRef__":true,"id":6964}],"renderContextTable":{"__isSmartRef__":true,"id":6965},"_Position":{"__isSmartRef__":true,"id":6966},"_Extent":{"__isSmartRef__":true,"id":6967},"_Padding":{"__isSmartRef__":true,"id":6968},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6963":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6964":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6965":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6966":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6967":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6968":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6969":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6970":{"morph":{"__isSmartRef__":true,"id":6961},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6971":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":6972},{"__isSmartRef__":true,"id":6973},{"__isSmartRef__":true,"id":6974},{"__isSmartRef__":true,"id":6975},{"__isSmartRef__":true,"id":6976}],"renderContextTable":{"__isSmartRef__":true,"id":6977},"_Position":{"__isSmartRef__":true,"id":6978},"_Extent":{"__isSmartRef__":true,"id":6979},"_Padding":{"__isSmartRef__":true,"id":6980},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":6981},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6972":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6973":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6974":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6975":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6976":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"6977":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"6978":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6979":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6980":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6981":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6982":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"6983":{"morph":{"__isSmartRef__":true,"id":6940},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"6984":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6985":{"position":{"__isSmartRef__":true,"id":6986},"_Extent":{"__isSmartRef__":true,"id":6987},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":6988},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":6989},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":6990},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"6986":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6987":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"6988":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"6989":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6990":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"6991":{"x":197.8147768157955,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"6992":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":6993},{"__isSmartRef__":true,"id":6995},{"__isSmartRef__":true,"id":6997},{"__isSmartRef__":true,"id":6999},{"__isSmartRef__":true,"id":7001},{"__isSmartRef__":true,"id":7003},{"__isSmartRef__":true,"id":7005},{"__isSmartRef__":true,"id":7007},{"__isSmartRef__":true,"id":7009},{"__isSmartRef__":true,"id":7011},{"__isSmartRef__":true,"id":7013},{"__isSmartRef__":true,"id":7015},{"__isSmartRef__":true,"id":7017},{"__isSmartRef__":true,"id":7019},{"__isSmartRef__":true,"id":7021},{"__isSmartRef__":true,"id":7023},{"__isSmartRef__":true,"id":7025},{"__isSmartRef__":true,"id":7027},{"__isSmartRef__":true,"id":7029}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"6993":{"date":{"__isSmartRef__":true,"id":6994},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"6994":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"6995":{"date":{"__isSmartRef__":true,"id":6996},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"6996":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"6997":{"date":{"__isSmartRef__":true,"id":6998},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"6998":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"6999":{"date":{"__isSmartRef__":true,"id":7000},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"7000":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"7001":{"date":{"__isSmartRef__":true,"id":7002},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"7002":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"7003":{"date":{"__isSmartRef__":true,"id":7004},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"7004":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"7005":{"date":{"__isSmartRef__":true,"id":7006},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"7006":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"7007":{"date":{"__isSmartRef__":true,"id":7008},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"7008":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"7009":{"date":{"__isSmartRef__":true,"id":7010},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7010":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"7011":{"date":{"__isSmartRef__":true,"id":7012},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7012":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"7013":{"date":{"__isSmartRef__":true,"id":7014},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7014":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"7015":{"date":{"__isSmartRef__":true,"id":7016},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7016":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"7017":{"date":{"__isSmartRef__":true,"id":7018},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"7018":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"7019":{"date":{"__isSmartRef__":true,"id":7020},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"7020":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"7021":{"date":{"__isSmartRef__":true,"id":7022},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"7022":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"7023":{"date":{"__isSmartRef__":true,"id":7024},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"7024":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"7025":{"date":{"__isSmartRef__":true,"id":7026},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"7026":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"7027":{"date":{"__isSmartRef__":true,"id":7028},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"7028":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"7029":{"date":{"__isSmartRef__":true,"id":7030},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"7030":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"7031":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7032":{"morph":{"__isSmartRef__":true,"id":6939},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7033":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7034}},"7034":{"test01IsMorph":{"__isSmartRef__":true,"id":7035}},"7035":{"varMapping":{"__isSmartRef__":true,"id":7036},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7037},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7036":{"this":{"__isSmartRef__":true,"id":7033}},"7037":{},"7038":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7039":{"left":0,"up":1,"right":2,"down":3},"7040":{"submorphs":[{"__isSmartRef__":true,"id":7041}],"scripts":[],"id":"64AC45D0-F813-41CD-B142-87584DB02894","shape":{"__isSmartRef__":true,"id":7086},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7092},"showsHalos":false,"name":"BasicGem60","partsBinMetaInfo":{"__isSmartRef__":true,"id":7093},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":7132},"eventHandler":{"__isSmartRef__":true,"id":7133},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":7134},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":7139},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":7140},"neighbours":[{"__isSmartRef__":true,"id":7141},{"__isSmartRef__":true,"id":6067},{"__isSmartRef__":true,"id":6939},null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"ruby","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"originalPosition":{"__isSmartRef__":true,"id":7092},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7865},"__LivelyClassName__":"lively.morphic.Box"},"7041":{"submorphs":[{"__isSmartRef__":true,"id":7042},{"__isSmartRef__":true,"id":7052},{"__isSmartRef__":true,"id":7062}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7072},"derivationIds":[null],"id":"8B9EF91A-2B7B-4555-8F09-457D615DAAAC","renderContextTable":{"__isSmartRef__":true,"id":7083},"eventHandler":{"__isSmartRef__":true,"id":7084},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7040},"_Position":{"__isSmartRef__":true,"id":7085},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7042":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7043},"derivationIds":[null],"id":"26090458-BA1C-4BDF-B5FB-6950FF6C2D5F","renderContextTable":{"__isSmartRef__":true,"id":7050},"eventHandler":{"__isSmartRef__":true,"id":7051},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7041},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7043":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7044},{"__isSmartRef__":true,"id":7045}],"renderContextTable":{"__isSmartRef__":true,"id":7046},"_Position":{"__isSmartRef__":true,"id":7047},"_Extent":{"__isSmartRef__":true,"id":7048},"_Padding":{"__isSmartRef__":true,"id":7049},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7044":{"isAbsolute":true,"x":25,"y":8,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7045":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7046":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7047":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7048":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7049":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7050":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7051":{"morph":{"__isSmartRef__":true,"id":7042},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7052":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7053},"derivationIds":[null],"id":"61E62E22-2D3B-42C7-B450-3B18FC1921ED","renderContextTable":{"__isSmartRef__":true,"id":7060},"eventHandler":{"__isSmartRef__":true,"id":7061},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7041},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7053":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7054},{"__isSmartRef__":true,"id":7055}],"renderContextTable":{"__isSmartRef__":true,"id":7056},"_Position":{"__isSmartRef__":true,"id":7057},"_Extent":{"__isSmartRef__":true,"id":7058},"_Padding":{"__isSmartRef__":true,"id":7059},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7054":{"isAbsolute":true,"x":9,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7055":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7057":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7058":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7059":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7061":{"morph":{"__isSmartRef__":true,"id":7052},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7062":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7063},"derivationIds":[null],"id":"D0FADF66-9E41-49AF-9164-759583C2B346","renderContextTable":{"__isSmartRef__":true,"id":7070},"eventHandler":{"__isSmartRef__":true,"id":7071},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7041},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7063":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7064},{"__isSmartRef__":true,"id":7065}],"renderContextTable":{"__isSmartRef__":true,"id":7066},"_Position":{"__isSmartRef__":true,"id":7067},"_Extent":{"__isSmartRef__":true,"id":7068},"_Padding":{"__isSmartRef__":true,"id":7069},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7064":{"isAbsolute":true,"x":41,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7065":{"isAbsolute":true,"x":25,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7066":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7067":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7068":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7069":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7070":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7071":{"morph":{"__isSmartRef__":true,"id":7062},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7072":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7073},{"__isSmartRef__":true,"id":7074},{"__isSmartRef__":true,"id":7075},{"__isSmartRef__":true,"id":7076},{"__isSmartRef__":true,"id":7077}],"renderContextTable":{"__isSmartRef__":true,"id":7078},"_Position":{"__isSmartRef__":true,"id":7079},"_Extent":{"__isSmartRef__":true,"id":7080},"_Padding":{"__isSmartRef__":true,"id":7081},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":7082},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7073":{"isAbsolute":true,"x":25,"y":9,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7074":{"isAbsolute":true,"x":38,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7075":{"isAbsolute":true,"x":30,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7076":{"isAbsolute":true,"x":20,"y":41,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7077":{"isAbsolute":true,"x":12,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7078":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7079":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7080":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7081":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7082":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7083":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7084":{"morph":{"__isSmartRef__":true,"id":7041},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7085":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7086":{"position":{"__isSmartRef__":true,"id":7087},"_Extent":{"__isSmartRef__":true,"id":7088},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":7089},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7090},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7091},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7087":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7088":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7089":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7090":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7091":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7092":{"x":148.61108261184663,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7093":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":7094},{"__isSmartRef__":true,"id":7096},{"__isSmartRef__":true,"id":7098},{"__isSmartRef__":true,"id":7100},{"__isSmartRef__":true,"id":7102},{"__isSmartRef__":true,"id":7104},{"__isSmartRef__":true,"id":7106},{"__isSmartRef__":true,"id":7108},{"__isSmartRef__":true,"id":7110},{"__isSmartRef__":true,"id":7112},{"__isSmartRef__":true,"id":7114},{"__isSmartRef__":true,"id":7116},{"__isSmartRef__":true,"id":7118},{"__isSmartRef__":true,"id":7120},{"__isSmartRef__":true,"id":7122},{"__isSmartRef__":true,"id":7124},{"__isSmartRef__":true,"id":7126},{"__isSmartRef__":true,"id":7128},{"__isSmartRef__":true,"id":7130}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7094":{"date":{"__isSmartRef__":true,"id":7095},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"7095":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"7096":{"date":{"__isSmartRef__":true,"id":7097},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"7097":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"7098":{"date":{"__isSmartRef__":true,"id":7099},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"7099":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"7100":{"date":{"__isSmartRef__":true,"id":7101},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"7101":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"7102":{"date":{"__isSmartRef__":true,"id":7103},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"7103":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"7104":{"date":{"__isSmartRef__":true,"id":7105},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"7105":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"7106":{"date":{"__isSmartRef__":true,"id":7107},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"7107":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"7108":{"date":{"__isSmartRef__":true,"id":7109},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"7109":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"7110":{"date":{"__isSmartRef__":true,"id":7111},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7111":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"7112":{"date":{"__isSmartRef__":true,"id":7113},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7113":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"7114":{"date":{"__isSmartRef__":true,"id":7115},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7115":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"7116":{"date":{"__isSmartRef__":true,"id":7117},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7117":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"7118":{"date":{"__isSmartRef__":true,"id":7119},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"7119":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"7120":{"date":{"__isSmartRef__":true,"id":7121},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"7121":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"7122":{"date":{"__isSmartRef__":true,"id":7123},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"7123":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"7124":{"date":{"__isSmartRef__":true,"id":7125},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"7125":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"7126":{"date":{"__isSmartRef__":true,"id":7127},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"7127":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"7128":{"date":{"__isSmartRef__":true,"id":7129},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"7129":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"7130":{"date":{"__isSmartRef__":true,"id":7131},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"7131":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"7132":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7133":{"morph":{"__isSmartRef__":true,"id":7040},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7134":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7135}},"7135":{"test01IsMorph":{"__isSmartRef__":true,"id":7136}},"7136":{"varMapping":{"__isSmartRef__":true,"id":7137},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7137":{"this":{"__isSmartRef__":true,"id":7134}},"7138":{},"7139":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7140":{"left":0,"up":1,"right":2,"down":3},"7141":{"submorphs":[{"__isSmartRef__":true,"id":7142}],"scripts":[],"id":"9111C07F-DAD4-41E7-822E-C9BFA3B515D5","shape":{"__isSmartRef__":true,"id":7178},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7184},"showsHalos":false,"name":"BasicGem59","partsBinMetaInfo":{"__isSmartRef__":true,"id":7185},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":7224},"eventHandler":{"__isSmartRef__":true,"id":7225},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":7226},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":7231},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":7232},"neighbours":[{"__isSmartRef__":true,"id":7233},{"__isSmartRef__":true,"id":5949},{"__isSmartRef__":true,"id":7040},null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"citrine","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7736},"__LivelyClassName__":"lively.morphic.Box"},"7142":{"submorphs":[{"__isSmartRef__":true,"id":7143},{"__isSmartRef__":true,"id":7154}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7165},"derivationIds":[null],"id":"25D4219A-26E5-4EFC-9735-40CDC095B6FF","renderContextTable":{"__isSmartRef__":true,"id":7175},"eventHandler":{"__isSmartRef__":true,"id":7176},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7141},"_Position":{"__isSmartRef__":true,"id":7177},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7143":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7144},"derivationIds":[null],"id":"716D7691-D279-4457-8FE1-DF1201ACCCDD","renderContextTable":{"__isSmartRef__":true,"id":7152},"eventHandler":{"__isSmartRef__":true,"id":7153},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7142},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7144":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7145},{"__isSmartRef__":true,"id":7146}],"renderContextTable":{"__isSmartRef__":true,"id":7147},"_Position":{"__isSmartRef__":true,"id":7148},"_Extent":{"__isSmartRef__":true,"id":7149},"_Padding":{"__isSmartRef__":true,"id":7150},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":7151},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7145":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7146":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7147":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7148":{"x":23,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7149":{"x":3,"y":43,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7150":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7151":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7152":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7153":{"morph":{"__isSmartRef__":true,"id":7143},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7154":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7155},"derivationIds":[null],"id":"EDA61161-605C-425A-8870-EFD988DB6F51","renderContextTable":{"__isSmartRef__":true,"id":7163},"eventHandler":{"__isSmartRef__":true,"id":7164},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7142},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7155":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7156},{"__isSmartRef__":true,"id":7157}],"renderContextTable":{"__isSmartRef__":true,"id":7158},"_Position":{"__isSmartRef__":true,"id":7159},"_Extent":{"__isSmartRef__":true,"id":7160},"_Padding":{"__isSmartRef__":true,"id":7161},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":7162},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7156":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7157":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7158":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7159":{"x":11,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7160":{"x":27,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7161":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7162":{"r":1,"g":1,"b":0.5882352941176471,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7163":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7164":{"morph":{"__isSmartRef__":true,"id":7154},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7165":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7166},{"__isSmartRef__":true,"id":7167},{"__isSmartRef__":true,"id":7168},{"__isSmartRef__":true,"id":7169}],"renderContextTable":{"__isSmartRef__":true,"id":7170},"_Position":{"__isSmartRef__":true,"id":7171},"_Extent":{"__isSmartRef__":true,"id":7172},"_Padding":{"__isSmartRef__":true,"id":7173},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":7174},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7166":{"isAbsolute":true,"x":25,"y":5,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7167":{"isAbsolute":true,"x":13,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7168":{"isAbsolute":true,"x":25,"y":45,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7169":{"isAbsolute":true,"x":37,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7170":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7171":{"x":12,"y":4,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7172":{"x":25,"y":41,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7173":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7174":{"r":1,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7175":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7176":{"morph":{"__isSmartRef__":true,"id":7142},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7177":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7178":{"position":{"__isSmartRef__":true,"id":7179},"_Extent":{"__isSmartRef__":true,"id":7180},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":7181},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7182},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7183},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7180":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7181":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7182":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7183":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7184":{"x":99.40738840789776,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7185":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":7186},{"__isSmartRef__":true,"id":7188},{"__isSmartRef__":true,"id":7190},{"__isSmartRef__":true,"id":7192},{"__isSmartRef__":true,"id":7194},{"__isSmartRef__":true,"id":7196},{"__isSmartRef__":true,"id":7198},{"__isSmartRef__":true,"id":7200},{"__isSmartRef__":true,"id":7202},{"__isSmartRef__":true,"id":7204},{"__isSmartRef__":true,"id":7206},{"__isSmartRef__":true,"id":7208},{"__isSmartRef__":true,"id":7210},{"__isSmartRef__":true,"id":7212},{"__isSmartRef__":true,"id":7214},{"__isSmartRef__":true,"id":7216},{"__isSmartRef__":true,"id":7218},{"__isSmartRef__":true,"id":7220},{"__isSmartRef__":true,"id":7222}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7186":{"date":{"__isSmartRef__":true,"id":7187},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"7187":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"7188":{"date":{"__isSmartRef__":true,"id":7189},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"7189":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"7190":{"date":{"__isSmartRef__":true,"id":7191},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"7191":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"7192":{"date":{"__isSmartRef__":true,"id":7193},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"7193":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"7194":{"date":{"__isSmartRef__":true,"id":7195},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"7195":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"7196":{"date":{"__isSmartRef__":true,"id":7197},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"7197":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"7198":{"date":{"__isSmartRef__":true,"id":7199},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"7199":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"7200":{"date":{"__isSmartRef__":true,"id":7201},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"7201":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"7202":{"date":{"__isSmartRef__":true,"id":7203},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7203":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"7204":{"date":{"__isSmartRef__":true,"id":7205},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7205":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"7206":{"date":{"__isSmartRef__":true,"id":7207},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7207":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"7208":{"date":{"__isSmartRef__":true,"id":7209},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7209":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"7210":{"date":{"__isSmartRef__":true,"id":7211},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"7211":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"7212":{"date":{"__isSmartRef__":true,"id":7213},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"7213":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"7214":{"date":{"__isSmartRef__":true,"id":7215},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"7215":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"7216":{"date":{"__isSmartRef__":true,"id":7217},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"7217":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"7218":{"date":{"__isSmartRef__":true,"id":7219},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"7219":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"7220":{"date":{"__isSmartRef__":true,"id":7221},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"7221":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"7222":{"date":{"__isSmartRef__":true,"id":7223},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"7223":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"7224":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7225":{"morph":{"__isSmartRef__":true,"id":7141},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7226":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7227}},"7227":{"test01IsMorph":{"__isSmartRef__":true,"id":7228}},"7228":{"varMapping":{"__isSmartRef__":true,"id":7229},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7230},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7229":{"this":{"__isSmartRef__":true,"id":7226}},"7230":{},"7231":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7232":{"left":0,"up":1,"right":2,"down":3},"7233":{"submorphs":[{"__isSmartRef__":true,"id":7234}],"scripts":[],"id":"128232C4-DD2E-4E09-A7B4-5C1C147DC47A","shape":{"__isSmartRef__":true,"id":7305},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7311},"showsHalos":false,"name":"BasicGem58","partsBinMetaInfo":{"__isSmartRef__":true,"id":7312},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":7351},"eventHandler":{"__isSmartRef__":true,"id":7352},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":7353},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":7358},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":7359},"neighbours":[{"__isSmartRef__":true,"id":7360},{"__isSmartRef__":true,"id":5822},{"__isSmartRef__":true,"id":7141},null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"diopside","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7607},"__LivelyClassName__":"lively.morphic.Box"},"7234":{"submorphs":[{"__isSmartRef__":true,"id":7235},{"__isSmartRef__":true,"id":7246},{"__isSmartRef__":true,"id":7257},{"__isSmartRef__":true,"id":7268},{"__isSmartRef__":true,"id":7279}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7290},"derivationIds":[null],"id":"9C93C98D-35B8-4A92-9DEA-0A5C4A7A9821","renderContextTable":{"__isSmartRef__":true,"id":7302},"eventHandler":{"__isSmartRef__":true,"id":7303},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7233},"_Position":{"__isSmartRef__":true,"id":7304},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7235":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7236},"derivationIds":[null],"id":"FF35A6B2-24DB-4E0A-892B-971199B8655A","renderContextTable":{"__isSmartRef__":true,"id":7244},"eventHandler":{"__isSmartRef__":true,"id":7245},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7236":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7237},{"__isSmartRef__":true,"id":7238}],"renderContextTable":{"__isSmartRef__":true,"id":7239},"_Position":{"__isSmartRef__":true,"id":7240},"_Extent":{"__isSmartRef__":true,"id":7241},"_Padding":{"__isSmartRef__":true,"id":7242},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":7243},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7237":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7238":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7239":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7240":{"x":17,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7241":{"x":15,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7242":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7243":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7244":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7245":{"morph":{"__isSmartRef__":true,"id":7235},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7246":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7247},"derivationIds":[null],"id":"56560FAD-3C1F-4784-A673-DAA57FBA60E9","renderContextTable":{"__isSmartRef__":true,"id":7255},"eventHandler":{"__isSmartRef__":true,"id":7256},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7247":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7248},{"__isSmartRef__":true,"id":7249}],"renderContextTable":{"__isSmartRef__":true,"id":7250},"_Position":{"__isSmartRef__":true,"id":7251},"_Extent":{"__isSmartRef__":true,"id":7252},"_Padding":{"__isSmartRef__":true,"id":7253},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":7254},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7248":{"isAbsolute":true,"x":16,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7249":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7250":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7251":{"x":14,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7252":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7253":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7254":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7255":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7256":{"morph":{"__isSmartRef__":true,"id":7246},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7257":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7258},"derivationIds":[null],"id":"5CFBAD35-F1DC-4D23-AC72-C596EAB581E4","renderContextTable":{"__isSmartRef__":true,"id":7266},"eventHandler":{"__isSmartRef__":true,"id":7267},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7258":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7259},{"__isSmartRef__":true,"id":7260}],"renderContextTable":{"__isSmartRef__":true,"id":7261},"_Position":{"__isSmartRef__":true,"id":7262},"_Extent":{"__isSmartRef__":true,"id":7263},"_Padding":{"__isSmartRef__":true,"id":7264},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":7265},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7259":{"isAbsolute":true,"x":16,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7260":{"isAbsolute":true,"x":19,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7261":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7262":{"x":14,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7263":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7264":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7265":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7266":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7267":{"morph":{"__isSmartRef__":true,"id":7257},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7268":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7269},"derivationIds":[null],"id":"568F2F76-D940-4CB3-B86A-43F77ADEA9BE","renderContextTable":{"__isSmartRef__":true,"id":7277},"eventHandler":{"__isSmartRef__":true,"id":7278},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7269":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7270},{"__isSmartRef__":true,"id":7271}],"renderContextTable":{"__isSmartRef__":true,"id":7272},"_Position":{"__isSmartRef__":true,"id":7273},"_Extent":{"__isSmartRef__":true,"id":7274},"_Padding":{"__isSmartRef__":true,"id":7275},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":7276},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7270":{"isAbsolute":true,"x":34,"y":16,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7271":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7272":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7273":{"x":29,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7274":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7276":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7277":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7278":{"morph":{"__isSmartRef__":true,"id":7268},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7279":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7280},"derivationIds":[null],"id":"F5C6510D-3C41-482A-BBA7-E4D7AC4817C3","renderContextTable":{"__isSmartRef__":true,"id":7288},"eventHandler":{"__isSmartRef__":true,"id":7289},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7234},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7280":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7281},{"__isSmartRef__":true,"id":7282}],"renderContextTable":{"__isSmartRef__":true,"id":7283},"_Position":{"__isSmartRef__":true,"id":7284},"_Extent":{"__isSmartRef__":true,"id":7285},"_Padding":{"__isSmartRef__":true,"id":7286},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":7287},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7281":{"isAbsolute":true,"x":34,"y":34,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7282":{"isAbsolute":true,"x":31,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7283":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7284":{"x":29,"y":23,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7285":{"x":6,"y":12,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7286":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7287":{"r":0.39215686274509803,"g":0.7843137254901961,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7288":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7289":{"morph":{"__isSmartRef__":true,"id":7279},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7290":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7291},{"__isSmartRef__":true,"id":7292},{"__isSmartRef__":true,"id":7293},{"__isSmartRef__":true,"id":7294},{"__isSmartRef__":true,"id":7295},{"__isSmartRef__":true,"id":7296}],"renderContextTable":{"__isSmartRef__":true,"id":7297},"_Position":{"__isSmartRef__":true,"id":7298},"_Extent":{"__isSmartRef__":true,"id":7299},"_Padding":{"__isSmartRef__":true,"id":7300},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":7301},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7291":{"isAbsolute":true,"x":9,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7292":{"isAbsolute":true,"x":15,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7293":{"isAbsolute":true,"x":35,"y":15,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7294":{"isAbsolute":true,"x":41,"y":25,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7295":{"isAbsolute":true,"x":35,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7296":{"isAbsolute":true,"x":15,"y":35,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7297":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7298":{"x":8,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7299":{"x":33,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7300":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7301":{"r":0.1843137254901961,"g":0.3607843137254902,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7302":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7303":{"morph":{"__isSmartRef__":true,"id":7234},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7304":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7305":{"position":{"__isSmartRef__":true,"id":7306},"_Extent":{"__isSmartRef__":true,"id":7307},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":7308},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7309},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7310},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7306":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7307":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7308":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7309":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7310":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7311":{"x":50.20369420394888,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7312":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":7313},{"__isSmartRef__":true,"id":7315},{"__isSmartRef__":true,"id":7317},{"__isSmartRef__":true,"id":7319},{"__isSmartRef__":true,"id":7321},{"__isSmartRef__":true,"id":7323},{"__isSmartRef__":true,"id":7325},{"__isSmartRef__":true,"id":7327},{"__isSmartRef__":true,"id":7329},{"__isSmartRef__":true,"id":7331},{"__isSmartRef__":true,"id":7333},{"__isSmartRef__":true,"id":7335},{"__isSmartRef__":true,"id":7337},{"__isSmartRef__":true,"id":7339},{"__isSmartRef__":true,"id":7341},{"__isSmartRef__":true,"id":7343},{"__isSmartRef__":true,"id":7345},{"__isSmartRef__":true,"id":7347},{"__isSmartRef__":true,"id":7349}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7313":{"date":{"__isSmartRef__":true,"id":7314},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"7314":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"7315":{"date":{"__isSmartRef__":true,"id":7316},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"7316":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"7317":{"date":{"__isSmartRef__":true,"id":7318},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"7318":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"7319":{"date":{"__isSmartRef__":true,"id":7320},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"7320":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"7321":{"date":{"__isSmartRef__":true,"id":7322},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"7322":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"7323":{"date":{"__isSmartRef__":true,"id":7324},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"7324":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"7325":{"date":{"__isSmartRef__":true,"id":7326},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"7326":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"7327":{"date":{"__isSmartRef__":true,"id":7328},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"7328":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"7329":{"date":{"__isSmartRef__":true,"id":7330},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7330":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"7331":{"date":{"__isSmartRef__":true,"id":7332},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7332":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"7333":{"date":{"__isSmartRef__":true,"id":7334},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7334":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"7335":{"date":{"__isSmartRef__":true,"id":7336},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7336":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"7337":{"date":{"__isSmartRef__":true,"id":7338},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"7338":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"7339":{"date":{"__isSmartRef__":true,"id":7340},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"7340":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"7341":{"date":{"__isSmartRef__":true,"id":7342},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"7342":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"7343":{"date":{"__isSmartRef__":true,"id":7344},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"7344":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"7345":{"date":{"__isSmartRef__":true,"id":7346},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"7346":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"7347":{"date":{"__isSmartRef__":true,"id":7348},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"7348":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"7349":{"date":{"__isSmartRef__":true,"id":7350},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"7350":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"7351":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7352":{"morph":{"__isSmartRef__":true,"id":7233},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7353":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7354}},"7354":{"test01IsMorph":{"__isSmartRef__":true,"id":7355}},"7355":{"varMapping":{"__isSmartRef__":true,"id":7356},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7356":{"this":{"__isSmartRef__":true,"id":7353}},"7357":{},"7358":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7359":{"left":0,"up":1,"right":2,"down":3},"7360":{"submorphs":[{"__isSmartRef__":true,"id":7361}],"scripts":[],"id":"31EBB1DC-3D06-45CE-858C-1C594D3EABAA","shape":{"__isSmartRef__":true,"id":7423},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7429},"showsHalos":false,"name":"BasicGem57","partsBinMetaInfo":{"__isSmartRef__":true,"id":7430},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":7469},"eventHandler":{"__isSmartRef__":true,"id":7470},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF","9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB"],"partTests":{"__isSmartRef__":true,"id":7471},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":7476},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":7477},"neighbours":[null,{"__isSmartRef__":true,"id":5704},{"__isSmartRef__":true,"id":7233},null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"prehnite","shouldBeDeleted":false,"prevScroll":[0,0],"_Rotation":0,"_Scale":1.0040100200350572,"owner":null,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7478},"__LivelyClassName__":"lively.morphic.Box"},"7361":{"submorphs":[{"__isSmartRef__":true,"id":7362},{"__isSmartRef__":true,"id":7373},{"__isSmartRef__":true,"id":7384},{"__isSmartRef__":true,"id":7395}],"scripts":[],"shape":{"__isSmartRef__":true,"id":7406},"derivationIds":[null],"id":"A0EA660C-8EF5-4FDD-AD0F-729C993A5BFE","renderContextTable":{"__isSmartRef__":true,"id":7420},"eventHandler":{"__isSmartRef__":true,"id":7421},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7360},"_Position":{"__isSmartRef__":true,"id":7422},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7362":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7363},"derivationIds":[null],"id":"70FA7639-35BF-4C4E-88F6-F8B96A89DCA1","renderContextTable":{"__isSmartRef__":true,"id":7371},"eventHandler":{"__isSmartRef__":true,"id":7372},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7363":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7364},{"__isSmartRef__":true,"id":7365}],"renderContextTable":{"__isSmartRef__":true,"id":7366},"_Position":{"__isSmartRef__":true,"id":7367},"_Extent":{"__isSmartRef__":true,"id":7368},"_Padding":{"__isSmartRef__":true,"id":7369},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":7370},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7364":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7365":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7366":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7367":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7368":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7369":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7370":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7371":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7372":{"morph":{"__isSmartRef__":true,"id":7362},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7373":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7374},"derivationIds":[null],"id":"9C148657-8810-448B-839D-9B1D94009F44","renderContextTable":{"__isSmartRef__":true,"id":7382},"eventHandler":{"__isSmartRef__":true,"id":7383},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7374":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7375},{"__isSmartRef__":true,"id":7376}],"renderContextTable":{"__isSmartRef__":true,"id":7377},"_Position":{"__isSmartRef__":true,"id":7378},"_Extent":{"__isSmartRef__":true,"id":7379},"_Padding":{"__isSmartRef__":true,"id":7380},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":7381},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7375":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7376":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7377":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7378":{"x":9,"y":19,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7379":{"x":31,"y":11,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7380":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7381":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7382":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7383":{"morph":{"__isSmartRef__":true,"id":7373},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7384":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7385},"derivationIds":[null],"id":"0697B4FE-5277-4242-AEEC-8A1D02AB98B0","renderContextTable":{"__isSmartRef__":true,"id":7393},"eventHandler":{"__isSmartRef__":true,"id":7394},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7385":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7386},{"__isSmartRef__":true,"id":7387}],"renderContextTable":{"__isSmartRef__":true,"id":7388},"_Position":{"__isSmartRef__":true,"id":7389},"_Extent":{"__isSmartRef__":true,"id":7390},"_Padding":{"__isSmartRef__":true,"id":7391},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":7392},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7386":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7387":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7388":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7389":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7390":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7391":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7392":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7393":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7394":{"morph":{"__isSmartRef__":true,"id":7384},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7395":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":7396},"derivationIds":[null],"id":"58EF0594-4BDF-41F5-9E28-5FD6A41E6777","renderContextTable":{"__isSmartRef__":true,"id":7404},"eventHandler":{"__isSmartRef__":true,"id":7405},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":7361},"grabbingEnabled":false,"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"7396":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7397},{"__isSmartRef__":true,"id":7398}],"renderContextTable":{"__isSmartRef__":true,"id":7399},"_Position":{"__isSmartRef__":true,"id":7400},"_Extent":{"__isSmartRef__":true,"id":7401},"_Padding":{"__isSmartRef__":true,"id":7402},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":7403},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7397":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7398":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7399":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7400":{"x":19,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7401":{"x":11,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7402":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7403":{"r":0.8431372549019608,"g":1,"b":0.9019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7404":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7405":{"morph":{"__isSmartRef__":true,"id":7395},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7406":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":7407},{"__isSmartRef__":true,"id":7408},{"__isSmartRef__":true,"id":7409},{"__isSmartRef__":true,"id":7410},{"__isSmartRef__":true,"id":7411},{"__isSmartRef__":true,"id":7412},{"__isSmartRef__":true,"id":7413},{"__isSmartRef__":true,"id":7414}],"renderContextTable":{"__isSmartRef__":true,"id":7415},"_Position":{"__isSmartRef__":true,"id":7416},"_Extent":{"__isSmartRef__":true,"id":7417},"_Padding":{"__isSmartRef__":true,"id":7418},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":156},"_Fill":{"__isSmartRef__":true,"id":7419},"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7407":{"isAbsolute":true,"x":20,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7408":{"isAbsolute":true,"x":30,"y":10,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7409":{"isAbsolute":true,"x":40,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7410":{"isAbsolute":true,"x":40,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7411":{"isAbsolute":true,"x":30,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7412":{"isAbsolute":true,"x":20,"y":40,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7413":{"isAbsolute":true,"x":10,"y":30,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7414":{"isAbsolute":true,"x":10,"y":20,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"7415":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"7416":{"x":9,"y":9,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7417":{"x":31,"y":31,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7418":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7419":{"r":0.6274509803921569,"g":0.9803921568627451,"b":0.7843137254901961,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7420":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7421":{"morph":{"__isSmartRef__":true,"id":7361},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"7422":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7423":{"position":{"__isSmartRef__":true,"id":7424},"_Extent":{"__isSmartRef__":true,"id":7425},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":7426},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":7427},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":7428},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"7424":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7425":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7426":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"7427":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7428":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"7429":{"x":1,"y":359.36994337165544,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"7430":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":7431},{"__isSmartRef__":true,"id":7433},{"__isSmartRef__":true,"id":7435},{"__isSmartRef__":true,"id":7437},{"__isSmartRef__":true,"id":7439},{"__isSmartRef__":true,"id":7441},{"__isSmartRef__":true,"id":7443},{"__isSmartRef__":true,"id":7445},{"__isSmartRef__":true,"id":7447},{"__isSmartRef__":true,"id":7449},{"__isSmartRef__":true,"id":7451},{"__isSmartRef__":true,"id":7453},{"__isSmartRef__":true,"id":7455},{"__isSmartRef__":true,"id":7457},{"__isSmartRef__":true,"id":7459},{"__isSmartRef__":true,"id":7461},{"__isSmartRef__":true,"id":7463},{"__isSmartRef__":true,"id":7465},{"__isSmartRef__":true,"id":7467}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"7431":{"date":{"__isSmartRef__":true,"id":7432},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"7432":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"7433":{"date":{"__isSmartRef__":true,"id":7434},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"7434":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"7435":{"date":{"__isSmartRef__":true,"id":7436},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"7436":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"7437":{"date":{"__isSmartRef__":true,"id":7438},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"7438":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"7439":{"date":{"__isSmartRef__":true,"id":7440},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"7440":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"7441":{"date":{"__isSmartRef__":true,"id":7442},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"7442":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"7443":{"date":{"__isSmartRef__":true,"id":7444},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"7444":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"7445":{"date":{"__isSmartRef__":true,"id":7446},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"7446":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"7447":{"date":{"__isSmartRef__":true,"id":7448},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"7448":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"7449":{"date":{"__isSmartRef__":true,"id":7450},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"7450":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"7451":{"date":{"__isSmartRef__":true,"id":7452},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"7452":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"7453":{"date":{"__isSmartRef__":true,"id":7454},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"7454":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"7455":{"date":{"__isSmartRef__":true,"id":7456},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"7456":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"7457":{"date":{"__isSmartRef__":true,"id":7458},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"7458":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"7459":{"date":{"__isSmartRef__":true,"id":7460},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"7460":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"7461":{"date":{"__isSmartRef__":true,"id":7462},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"7462":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"7463":{"date":{"__isSmartRef__":true,"id":7464},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"7464":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"7465":{"date":{"__isSmartRef__":true,"id":7466},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"7466":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"7467":{"date":{"__isSmartRef__":true,"id":7468},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"7468":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"7469":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"7470":{"morph":{"__isSmartRef__":true,"id":7360},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"7471":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7472}},"7472":{"test01IsMorph":{"__isSmartRef__":true,"id":7473}},"7473":{"varMapping":{"__isSmartRef__":true,"id":7474},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":7475},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7474":{"this":{"__isSmartRef__":true,"id":7471}},"7475":{},"7476":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"7477":{"left":0,"up":1,"right":2,"down":3},"7478":{"become":{"__isSmartRef__":true,"id":7479},"onMouseDown":{"__isSmartRef__":true,"id":7483},"updatePicture":{"__isSmartRef__":true,"id":7491},"ruby":{"__isSmartRef__":true,"id":7495},"switchPositionWith":{"__isSmartRef__":true,"id":7499},"addNeighbour":{"__isSmartRef__":true,"id":7503},"amethyst":{"__isSmartRef__":true,"id":7507},"diopside":{"__isSmartRef__":true,"id":7511},"gemTypes":{"__isSmartRef__":true,"id":7515},"becomeRandomGem":{"__isSmartRef__":true,"id":7519},"mark":{"__isSmartRef__":true,"id":7523},"unmark":{"__isSmartRef__":true,"id":7527},"hasNeighbour":{"__isSmartRef__":true,"id":7531},"debugMarkNeighbours":{"__isSmartRef__":true,"id":7535},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":7539},"disappear":{"__isSmartRef__":true,"id":7543},"findStreakStart":{"__isSmartRef__":true,"id":7547},"buildStreak":{"__isSmartRef__":true,"id":7551},"scoreStreak":{"__isSmartRef__":true,"id":7555},"tryToStreak":{"__isSmartRef__":true,"id":7559},"blueDiamond":{"__isSmartRef__":true,"id":7563},"prehnite":{"__isSmartRef__":true,"id":7567},"debugUnmark":{"__isSmartRef__":true,"id":7571},"debugMark":{"__isSmartRef__":true,"id":7575},"citrine":{"__isSmartRef__":true,"id":7579},"move":{"__isSmartRef__":true,"id":7583},"performMovement":{"__isSmartRef__":true,"id":7587},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":7591},"zircon":{"__isSmartRef__":true,"id":7595},"emerald":{"__isSmartRef__":true,"id":7599},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":7603}},"7479":{"varMapping":{"__isSmartRef__":true,"id":7480},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7481},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7480":{"this":{"__isSmartRef__":true,"id":7360}},"7481":{"timestamp":{"__isSmartRef__":true,"id":7482},"user":"josi","tags":[]},"7482":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"7483":{"varMapping":{"__isSmartRef__":true,"id":7484},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":7489},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7484":{"this":{"__isSmartRef__":true,"id":7360},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7485}},"7485":{"$super":{"__isSmartRef__":true,"id":7486}},"7486":{"varMapping":{"__isSmartRef__":true,"id":7487},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7488},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7487":{"obj":{"__isSmartRef__":true,"id":7360},"name":"onMouseDown"},"7488":{},"7489":{"timestamp":{"__isSmartRef__":true,"id":7490},"user":"soergel","tags":[]},"7490":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"7491":{"varMapping":{"__isSmartRef__":true,"id":7492},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":7493},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7492":{"this":{"__isSmartRef__":true,"id":7360}},"7493":{"timestamp":{"__isSmartRef__":true,"id":7494},"user":"soergel","tags":[]},"7494":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"7495":{"varMapping":{"__isSmartRef__":true,"id":7496},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":7497},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7496":{"this":{"__isSmartRef__":true,"id":7360}},"7497":{"timestamp":{"__isSmartRef__":true,"id":7498},"user":"josi","tags":["gemtypes"]},"7498":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"7499":{"varMapping":{"__isSmartRef__":true,"id":7500},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7501},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7500":{"this":{"__isSmartRef__":true,"id":7360}},"7501":{"timestamp":{"__isSmartRef__":true,"id":7502},"user":"jan.sandbrink","tags":[]},"7502":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"7503":{"varMapping":{"__isSmartRef__":true,"id":7504},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7505},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7504":{"this":{"__isSmartRef__":true,"id":7360}},"7505":{"timestamp":{"__isSmartRef__":true,"id":7506},"user":"jan.sandbrink","tags":[]},"7506":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"7507":{"varMapping":{"__isSmartRef__":true,"id":7508},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":7509},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7508":{"this":{"__isSmartRef__":true,"id":7360}},"7509":{"timestamp":{"__isSmartRef__":true,"id":7510},"user":"josi","tags":["gemtypes"]},"7510":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"7511":{"varMapping":{"__isSmartRef__":true,"id":7512},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":7513},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7512":{"this":{"__isSmartRef__":true,"id":7360}},"7513":{"timestamp":{"__isSmartRef__":true,"id":7514},"user":"josi","tags":["gemtypes"]},"7514":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"7515":{"varMapping":{"__isSmartRef__":true,"id":7516},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":7517},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7516":{"this":{"__isSmartRef__":true,"id":7360}},"7517":{"timestamp":{"__isSmartRef__":true,"id":7518},"user":"josi","tags":[]},"7518":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"7519":{"varMapping":{"__isSmartRef__":true,"id":7520},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":7521},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7520":{"this":{"__isSmartRef__":true,"id":7360}},"7521":{"timestamp":{"__isSmartRef__":true,"id":7522},"user":"josi","tags":[]},"7522":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"7523":{"varMapping":{"__isSmartRef__":true,"id":7524},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7525},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7524":{"this":{"__isSmartRef__":true,"id":7360}},"7525":{"timestamp":{"__isSmartRef__":true,"id":7526},"user":"soergel","tags":[]},"7526":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"7527":{"varMapping":{"__isSmartRef__":true,"id":7528},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":7529},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7528":{"this":{"__isSmartRef__":true,"id":7360}},"7529":{"timestamp":{"__isSmartRef__":true,"id":7530},"user":"soergel","tags":[]},"7530":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"7531":{"varMapping":{"__isSmartRef__":true,"id":7532},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":7533},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7532":{"this":{"__isSmartRef__":true,"id":7360}},"7533":{"timestamp":{"__isSmartRef__":true,"id":7534},"user":"soergel","tags":[]},"7534":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"7535":{"varMapping":{"__isSmartRef__":true,"id":7536},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7537},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7536":{"this":{"__isSmartRef__":true,"id":7360}},"7537":{"timestamp":{"__isSmartRef__":true,"id":7538},"user":"soergel","tags":["debug"]},"7538":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"7539":{"varMapping":{"__isSmartRef__":true,"id":7540},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7541},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7540":{"this":{"__isSmartRef__":true,"id":7360}},"7541":{"timestamp":{"__isSmartRef__":true,"id":7542},"user":"soergel","tags":["debug"]},"7542":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"7543":{"varMapping":{"__isSmartRef__":true,"id":7544},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7545},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7544":{"this":{"__isSmartRef__":true,"id":7360}},"7545":{"timestamp":{"__isSmartRef__":true,"id":7546},"user":"soergel","tags":[]},"7546":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"7547":{"varMapping":{"__isSmartRef__":true,"id":7548},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7549},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7548":{"this":{"__isSmartRef__":true,"id":7360}},"7549":{"timestamp":{"__isSmartRef__":true,"id":7550},"user":"jan.sandbrink","tags":[]},"7550":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"7551":{"varMapping":{"__isSmartRef__":true,"id":7552},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":7553},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7552":{"this":{"__isSmartRef__":true,"id":7360}},"7553":{"timestamp":{"__isSmartRef__":true,"id":7554},"user":"jan.sandbrink","tags":[]},"7554":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"7555":{"varMapping":{"__isSmartRef__":true,"id":7556},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7557},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7556":{"this":{"__isSmartRef__":true,"id":7360}},"7557":{"timestamp":{"__isSmartRef__":true,"id":7558},"user":"jan.sandbrink","tags":[]},"7558":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"7559":{"varMapping":{"__isSmartRef__":true,"id":7560},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":7561},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7560":{"this":{"__isSmartRef__":true,"id":7360}},"7561":{"timestamp":{"__isSmartRef__":true,"id":7562},"user":"jan.sandbrink","tags":[]},"7562":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"7563":{"varMapping":{"__isSmartRef__":true,"id":7564},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":7565},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7564":{"this":{"__isSmartRef__":true,"id":7360}},"7565":{"timestamp":{"__isSmartRef__":true,"id":7566},"user":"josi","tags":["gemtypes"]},"7566":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"7567":{"varMapping":{"__isSmartRef__":true,"id":7568},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":7569},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7568":{"this":{"__isSmartRef__":true,"id":7360}},"7569":{"timestamp":{"__isSmartRef__":true,"id":7570},"user":"josi","tags":["gemtypes"]},"7570":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"7571":{"varMapping":{"__isSmartRef__":true,"id":7572},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7573},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7572":{"this":{"__isSmartRef__":true,"id":7360}},"7573":{"timestamp":{"__isSmartRef__":true,"id":7574},"user":"soergel","tags":["debug"]},"7574":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"7575":{"varMapping":{"__isSmartRef__":true,"id":7576},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7577},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7576":{"this":{"__isSmartRef__":true,"id":7360}},"7577":{"timestamp":{"__isSmartRef__":true,"id":7578},"user":"soergel","tags":["debug"]},"7578":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"7579":{"varMapping":{"__isSmartRef__":true,"id":7580},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":7581},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7580":{"this":{"__isSmartRef__":true,"id":7360}},"7581":{"timestamp":{"__isSmartRef__":true,"id":7582},"user":"josi","tags":["gemtypes"]},"7582":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"7583":{"varMapping":{"__isSmartRef__":true,"id":7584},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":7585},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7584":{"this":{"__isSmartRef__":true,"id":7360}},"7585":{"timestamp":{"__isSmartRef__":true,"id":7586},"user":"soergel","tags":[]},"7586":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"7587":{"varMapping":{"__isSmartRef__":true,"id":7588},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":7589},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7588":{"this":{"__isSmartRef__":true,"id":7360}},"7589":{"timestamp":{"__isSmartRef__":true,"id":7590},"user":"soergel","tags":[]},"7590":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"7591":{"varMapping":{"__isSmartRef__":true,"id":7592},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":7593},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7592":{"this":{"__isSmartRef__":true,"id":7360}},"7593":{"timestamp":{"__isSmartRef__":true,"id":7594},"user":"soergel","tags":[]},"7594":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"7595":{"varMapping":{"__isSmartRef__":true,"id":7596},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":7597},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7596":{"this":{"__isSmartRef__":true,"id":7360}},"7597":{"timestamp":{"__isSmartRef__":true,"id":7598},"user":"josi","tags":["gemtypes"]},"7598":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"7599":{"varMapping":{"__isSmartRef__":true,"id":7600},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":7601},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7600":{"this":{"__isSmartRef__":true,"id":7360}},"7601":{"timestamp":{"__isSmartRef__":true,"id":7602},"user":"josi","tags":["gemtypes"]},"7602":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"7603":{"varMapping":{"__isSmartRef__":true,"id":7604},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":7605},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7604":{"this":{"__isSmartRef__":true,"id":7360}},"7605":{"timestamp":{"__isSmartRef__":true,"id":7606},"user":"jan.sandbrink","tags":[]},"7606":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"7607":{"become":{"__isSmartRef__":true,"id":7608},"onMouseDown":{"__isSmartRef__":true,"id":7612},"updatePicture":{"__isSmartRef__":true,"id":7620},"ruby":{"__isSmartRef__":true,"id":7624},"switchPositionWith":{"__isSmartRef__":true,"id":7628},"addNeighbour":{"__isSmartRef__":true,"id":7632},"amethyst":{"__isSmartRef__":true,"id":7636},"diopside":{"__isSmartRef__":true,"id":7640},"gemTypes":{"__isSmartRef__":true,"id":7644},"becomeRandomGem":{"__isSmartRef__":true,"id":7648},"mark":{"__isSmartRef__":true,"id":7652},"unmark":{"__isSmartRef__":true,"id":7656},"hasNeighbour":{"__isSmartRef__":true,"id":7660},"debugMarkNeighbours":{"__isSmartRef__":true,"id":7664},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":7668},"disappear":{"__isSmartRef__":true,"id":7672},"findStreakStart":{"__isSmartRef__":true,"id":7676},"buildStreak":{"__isSmartRef__":true,"id":7680},"scoreStreak":{"__isSmartRef__":true,"id":7684},"tryToStreak":{"__isSmartRef__":true,"id":7688},"blueDiamond":{"__isSmartRef__":true,"id":7692},"prehnite":{"__isSmartRef__":true,"id":7696},"debugUnmark":{"__isSmartRef__":true,"id":7700},"debugMark":{"__isSmartRef__":true,"id":7704},"citrine":{"__isSmartRef__":true,"id":7708},"move":{"__isSmartRef__":true,"id":7712},"performMovement":{"__isSmartRef__":true,"id":7716},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":7720},"zircon":{"__isSmartRef__":true,"id":7724},"emerald":{"__isSmartRef__":true,"id":7728},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":7732}},"7608":{"varMapping":{"__isSmartRef__":true,"id":7609},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7610},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7609":{"this":{"__isSmartRef__":true,"id":7233}},"7610":{"timestamp":{"__isSmartRef__":true,"id":7611},"user":"josi","tags":[]},"7611":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"7612":{"varMapping":{"__isSmartRef__":true,"id":7613},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":7618},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7613":{"this":{"__isSmartRef__":true,"id":7233},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7614}},"7614":{"$super":{"__isSmartRef__":true,"id":7615}},"7615":{"varMapping":{"__isSmartRef__":true,"id":7616},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7617},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7616":{"obj":{"__isSmartRef__":true,"id":7233},"name":"onMouseDown"},"7617":{},"7618":{"timestamp":{"__isSmartRef__":true,"id":7619},"user":"soergel","tags":[]},"7619":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"7620":{"varMapping":{"__isSmartRef__":true,"id":7621},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":7622},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7621":{"this":{"__isSmartRef__":true,"id":7233}},"7622":{"timestamp":{"__isSmartRef__":true,"id":7623},"user":"soergel","tags":[]},"7623":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"7624":{"varMapping":{"__isSmartRef__":true,"id":7625},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":7626},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7625":{"this":{"__isSmartRef__":true,"id":7233}},"7626":{"timestamp":{"__isSmartRef__":true,"id":7627},"user":"josi","tags":["gemtypes"]},"7627":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"7628":{"varMapping":{"__isSmartRef__":true,"id":7629},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7630},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7629":{"this":{"__isSmartRef__":true,"id":7233}},"7630":{"timestamp":{"__isSmartRef__":true,"id":7631},"user":"jan.sandbrink","tags":[]},"7631":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"7632":{"varMapping":{"__isSmartRef__":true,"id":7633},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7634},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7633":{"this":{"__isSmartRef__":true,"id":7233}},"7634":{"timestamp":{"__isSmartRef__":true,"id":7635},"user":"jan.sandbrink","tags":[]},"7635":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"7636":{"varMapping":{"__isSmartRef__":true,"id":7637},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":7638},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7637":{"this":{"__isSmartRef__":true,"id":7233}},"7638":{"timestamp":{"__isSmartRef__":true,"id":7639},"user":"josi","tags":["gemtypes"]},"7639":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"7640":{"varMapping":{"__isSmartRef__":true,"id":7641},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":7642},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7641":{"this":{"__isSmartRef__":true,"id":7233}},"7642":{"timestamp":{"__isSmartRef__":true,"id":7643},"user":"josi","tags":["gemtypes"]},"7643":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"7644":{"varMapping":{"__isSmartRef__":true,"id":7645},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":7646},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7645":{"this":{"__isSmartRef__":true,"id":7233}},"7646":{"timestamp":{"__isSmartRef__":true,"id":7647},"user":"josi","tags":[]},"7647":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"7648":{"varMapping":{"__isSmartRef__":true,"id":7649},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":7650},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7649":{"this":{"__isSmartRef__":true,"id":7233}},"7650":{"timestamp":{"__isSmartRef__":true,"id":7651},"user":"josi","tags":[]},"7651":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"7652":{"varMapping":{"__isSmartRef__":true,"id":7653},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7654},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7653":{"this":{"__isSmartRef__":true,"id":7233}},"7654":{"timestamp":{"__isSmartRef__":true,"id":7655},"user":"soergel","tags":[]},"7655":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"7656":{"varMapping":{"__isSmartRef__":true,"id":7657},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":7658},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7657":{"this":{"__isSmartRef__":true,"id":7233}},"7658":{"timestamp":{"__isSmartRef__":true,"id":7659},"user":"soergel","tags":[]},"7659":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"7660":{"varMapping":{"__isSmartRef__":true,"id":7661},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":7662},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7661":{"this":{"__isSmartRef__":true,"id":7233}},"7662":{"timestamp":{"__isSmartRef__":true,"id":7663},"user":"soergel","tags":[]},"7663":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"7664":{"varMapping":{"__isSmartRef__":true,"id":7665},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7666},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7665":{"this":{"__isSmartRef__":true,"id":7233}},"7666":{"timestamp":{"__isSmartRef__":true,"id":7667},"user":"soergel","tags":["debug"]},"7667":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"7668":{"varMapping":{"__isSmartRef__":true,"id":7669},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7670},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7669":{"this":{"__isSmartRef__":true,"id":7233}},"7670":{"timestamp":{"__isSmartRef__":true,"id":7671},"user":"soergel","tags":["debug"]},"7671":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"7672":{"varMapping":{"__isSmartRef__":true,"id":7673},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7674},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7673":{"this":{"__isSmartRef__":true,"id":7233}},"7674":{"timestamp":{"__isSmartRef__":true,"id":7675},"user":"soergel","tags":[]},"7675":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"7676":{"varMapping":{"__isSmartRef__":true,"id":7677},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7678},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7677":{"this":{"__isSmartRef__":true,"id":7233}},"7678":{"timestamp":{"__isSmartRef__":true,"id":7679},"user":"jan.sandbrink","tags":[]},"7679":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"7680":{"varMapping":{"__isSmartRef__":true,"id":7681},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":7682},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7681":{"this":{"__isSmartRef__":true,"id":7233}},"7682":{"timestamp":{"__isSmartRef__":true,"id":7683},"user":"jan.sandbrink","tags":[]},"7683":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"7684":{"varMapping":{"__isSmartRef__":true,"id":7685},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7686},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7685":{"this":{"__isSmartRef__":true,"id":7233}},"7686":{"timestamp":{"__isSmartRef__":true,"id":7687},"user":"jan.sandbrink","tags":[]},"7687":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"7688":{"varMapping":{"__isSmartRef__":true,"id":7689},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":7690},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7689":{"this":{"__isSmartRef__":true,"id":7233}},"7690":{"timestamp":{"__isSmartRef__":true,"id":7691},"user":"jan.sandbrink","tags":[]},"7691":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"7692":{"varMapping":{"__isSmartRef__":true,"id":7693},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":7694},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7693":{"this":{"__isSmartRef__":true,"id":7233}},"7694":{"timestamp":{"__isSmartRef__":true,"id":7695},"user":"josi","tags":["gemtypes"]},"7695":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"7696":{"varMapping":{"__isSmartRef__":true,"id":7697},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":7698},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7697":{"this":{"__isSmartRef__":true,"id":7233}},"7698":{"timestamp":{"__isSmartRef__":true,"id":7699},"user":"josi","tags":["gemtypes"]},"7699":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"7700":{"varMapping":{"__isSmartRef__":true,"id":7701},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7702},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7701":{"this":{"__isSmartRef__":true,"id":7233}},"7702":{"timestamp":{"__isSmartRef__":true,"id":7703},"user":"soergel","tags":["debug"]},"7703":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"7704":{"varMapping":{"__isSmartRef__":true,"id":7705},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7706},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7705":{"this":{"__isSmartRef__":true,"id":7233}},"7706":{"timestamp":{"__isSmartRef__":true,"id":7707},"user":"soergel","tags":["debug"]},"7707":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"7708":{"varMapping":{"__isSmartRef__":true,"id":7709},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":7710},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7709":{"this":{"__isSmartRef__":true,"id":7233}},"7710":{"timestamp":{"__isSmartRef__":true,"id":7711},"user":"josi","tags":["gemtypes"]},"7711":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"7712":{"varMapping":{"__isSmartRef__":true,"id":7713},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":7714},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7713":{"this":{"__isSmartRef__":true,"id":7233}},"7714":{"timestamp":{"__isSmartRef__":true,"id":7715},"user":"soergel","tags":[]},"7715":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"7716":{"varMapping":{"__isSmartRef__":true,"id":7717},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":7718},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7717":{"this":{"__isSmartRef__":true,"id":7233}},"7718":{"timestamp":{"__isSmartRef__":true,"id":7719},"user":"soergel","tags":[]},"7719":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"7720":{"varMapping":{"__isSmartRef__":true,"id":7721},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":7722},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7721":{"this":{"__isSmartRef__":true,"id":7233}},"7722":{"timestamp":{"__isSmartRef__":true,"id":7723},"user":"soergel","tags":[]},"7723":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"7724":{"varMapping":{"__isSmartRef__":true,"id":7725},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":7726},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7725":{"this":{"__isSmartRef__":true,"id":7233}},"7726":{"timestamp":{"__isSmartRef__":true,"id":7727},"user":"josi","tags":["gemtypes"]},"7727":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"7728":{"varMapping":{"__isSmartRef__":true,"id":7729},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":7730},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7729":{"this":{"__isSmartRef__":true,"id":7233}},"7730":{"timestamp":{"__isSmartRef__":true,"id":7731},"user":"josi","tags":["gemtypes"]},"7731":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"7732":{"varMapping":{"__isSmartRef__":true,"id":7733},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":7734},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7733":{"this":{"__isSmartRef__":true,"id":7233}},"7734":{"timestamp":{"__isSmartRef__":true,"id":7735},"user":"jan.sandbrink","tags":[]},"7735":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"7736":{"become":{"__isSmartRef__":true,"id":7737},"onMouseDown":{"__isSmartRef__":true,"id":7741},"updatePicture":{"__isSmartRef__":true,"id":7749},"ruby":{"__isSmartRef__":true,"id":7753},"switchPositionWith":{"__isSmartRef__":true,"id":7757},"addNeighbour":{"__isSmartRef__":true,"id":7761},"amethyst":{"__isSmartRef__":true,"id":7765},"diopside":{"__isSmartRef__":true,"id":7769},"gemTypes":{"__isSmartRef__":true,"id":7773},"becomeRandomGem":{"__isSmartRef__":true,"id":7777},"mark":{"__isSmartRef__":true,"id":7781},"unmark":{"__isSmartRef__":true,"id":7785},"hasNeighbour":{"__isSmartRef__":true,"id":7789},"debugMarkNeighbours":{"__isSmartRef__":true,"id":7793},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":7797},"disappear":{"__isSmartRef__":true,"id":7801},"findStreakStart":{"__isSmartRef__":true,"id":7805},"buildStreak":{"__isSmartRef__":true,"id":7809},"scoreStreak":{"__isSmartRef__":true,"id":7813},"tryToStreak":{"__isSmartRef__":true,"id":7817},"blueDiamond":{"__isSmartRef__":true,"id":7821},"prehnite":{"__isSmartRef__":true,"id":7825},"debugUnmark":{"__isSmartRef__":true,"id":7829},"debugMark":{"__isSmartRef__":true,"id":7833},"citrine":{"__isSmartRef__":true,"id":7837},"move":{"__isSmartRef__":true,"id":7841},"performMovement":{"__isSmartRef__":true,"id":7845},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":7849},"zircon":{"__isSmartRef__":true,"id":7853},"emerald":{"__isSmartRef__":true,"id":7857},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":7861}},"7737":{"varMapping":{"__isSmartRef__":true,"id":7738},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7739},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7738":{"this":{"__isSmartRef__":true,"id":7141}},"7739":{"timestamp":{"__isSmartRef__":true,"id":7740},"user":"josi","tags":[]},"7740":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"7741":{"varMapping":{"__isSmartRef__":true,"id":7742},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":7747},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7742":{"this":{"__isSmartRef__":true,"id":7141},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7743}},"7743":{"$super":{"__isSmartRef__":true,"id":7744}},"7744":{"varMapping":{"__isSmartRef__":true,"id":7745},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7746},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7745":{"obj":{"__isSmartRef__":true,"id":7141},"name":"onMouseDown"},"7746":{},"7747":{"timestamp":{"__isSmartRef__":true,"id":7748},"user":"soergel","tags":[]},"7748":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"7749":{"varMapping":{"__isSmartRef__":true,"id":7750},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":7751},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7750":{"this":{"__isSmartRef__":true,"id":7141}},"7751":{"timestamp":{"__isSmartRef__":true,"id":7752},"user":"soergel","tags":[]},"7752":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"7753":{"varMapping":{"__isSmartRef__":true,"id":7754},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":7755},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7754":{"this":{"__isSmartRef__":true,"id":7141}},"7755":{"timestamp":{"__isSmartRef__":true,"id":7756},"user":"josi","tags":["gemtypes"]},"7756":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"7757":{"varMapping":{"__isSmartRef__":true,"id":7758},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7759},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7758":{"this":{"__isSmartRef__":true,"id":7141}},"7759":{"timestamp":{"__isSmartRef__":true,"id":7760},"user":"jan.sandbrink","tags":[]},"7760":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"7761":{"varMapping":{"__isSmartRef__":true,"id":7762},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7763},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7762":{"this":{"__isSmartRef__":true,"id":7141}},"7763":{"timestamp":{"__isSmartRef__":true,"id":7764},"user":"jan.sandbrink","tags":[]},"7764":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"7765":{"varMapping":{"__isSmartRef__":true,"id":7766},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":7767},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7766":{"this":{"__isSmartRef__":true,"id":7141}},"7767":{"timestamp":{"__isSmartRef__":true,"id":7768},"user":"josi","tags":["gemtypes"]},"7768":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"7769":{"varMapping":{"__isSmartRef__":true,"id":7770},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":7771},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7770":{"this":{"__isSmartRef__":true,"id":7141}},"7771":{"timestamp":{"__isSmartRef__":true,"id":7772},"user":"josi","tags":["gemtypes"]},"7772":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"7773":{"varMapping":{"__isSmartRef__":true,"id":7774},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":7775},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7774":{"this":{"__isSmartRef__":true,"id":7141}},"7775":{"timestamp":{"__isSmartRef__":true,"id":7776},"user":"josi","tags":[]},"7776":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"7777":{"varMapping":{"__isSmartRef__":true,"id":7778},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":7779},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7778":{"this":{"__isSmartRef__":true,"id":7141}},"7779":{"timestamp":{"__isSmartRef__":true,"id":7780},"user":"josi","tags":[]},"7780":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"7781":{"varMapping":{"__isSmartRef__":true,"id":7782},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7783},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7782":{"this":{"__isSmartRef__":true,"id":7141}},"7783":{"timestamp":{"__isSmartRef__":true,"id":7784},"user":"soergel","tags":[]},"7784":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"7785":{"varMapping":{"__isSmartRef__":true,"id":7786},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":7787},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7786":{"this":{"__isSmartRef__":true,"id":7141}},"7787":{"timestamp":{"__isSmartRef__":true,"id":7788},"user":"soergel","tags":[]},"7788":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"7789":{"varMapping":{"__isSmartRef__":true,"id":7790},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":7791},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7790":{"this":{"__isSmartRef__":true,"id":7141}},"7791":{"timestamp":{"__isSmartRef__":true,"id":7792},"user":"soergel","tags":[]},"7792":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"7793":{"varMapping":{"__isSmartRef__":true,"id":7794},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7795},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7794":{"this":{"__isSmartRef__":true,"id":7141}},"7795":{"timestamp":{"__isSmartRef__":true,"id":7796},"user":"soergel","tags":["debug"]},"7796":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"7797":{"varMapping":{"__isSmartRef__":true,"id":7798},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7799},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7798":{"this":{"__isSmartRef__":true,"id":7141}},"7799":{"timestamp":{"__isSmartRef__":true,"id":7800},"user":"soergel","tags":["debug"]},"7800":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"7801":{"varMapping":{"__isSmartRef__":true,"id":7802},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7803},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7802":{"this":{"__isSmartRef__":true,"id":7141}},"7803":{"timestamp":{"__isSmartRef__":true,"id":7804},"user":"soergel","tags":[]},"7804":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"7805":{"varMapping":{"__isSmartRef__":true,"id":7806},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7807},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7806":{"this":{"__isSmartRef__":true,"id":7141}},"7807":{"timestamp":{"__isSmartRef__":true,"id":7808},"user":"jan.sandbrink","tags":[]},"7808":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"7809":{"varMapping":{"__isSmartRef__":true,"id":7810},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":7811},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7810":{"this":{"__isSmartRef__":true,"id":7141}},"7811":{"timestamp":{"__isSmartRef__":true,"id":7812},"user":"jan.sandbrink","tags":[]},"7812":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"7813":{"varMapping":{"__isSmartRef__":true,"id":7814},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7815},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7814":{"this":{"__isSmartRef__":true,"id":7141}},"7815":{"timestamp":{"__isSmartRef__":true,"id":7816},"user":"jan.sandbrink","tags":[]},"7816":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"7817":{"varMapping":{"__isSmartRef__":true,"id":7818},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":7819},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7818":{"this":{"__isSmartRef__":true,"id":7141}},"7819":{"timestamp":{"__isSmartRef__":true,"id":7820},"user":"jan.sandbrink","tags":[]},"7820":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"7821":{"varMapping":{"__isSmartRef__":true,"id":7822},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":7823},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7822":{"this":{"__isSmartRef__":true,"id":7141}},"7823":{"timestamp":{"__isSmartRef__":true,"id":7824},"user":"josi","tags":["gemtypes"]},"7824":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"7825":{"varMapping":{"__isSmartRef__":true,"id":7826},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":7827},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7826":{"this":{"__isSmartRef__":true,"id":7141}},"7827":{"timestamp":{"__isSmartRef__":true,"id":7828},"user":"josi","tags":["gemtypes"]},"7828":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"7829":{"varMapping":{"__isSmartRef__":true,"id":7830},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7831},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7830":{"this":{"__isSmartRef__":true,"id":7141}},"7831":{"timestamp":{"__isSmartRef__":true,"id":7832},"user":"soergel","tags":["debug"]},"7832":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"7833":{"varMapping":{"__isSmartRef__":true,"id":7834},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7835},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7834":{"this":{"__isSmartRef__":true,"id":7141}},"7835":{"timestamp":{"__isSmartRef__":true,"id":7836},"user":"soergel","tags":["debug"]},"7836":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"7837":{"varMapping":{"__isSmartRef__":true,"id":7838},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":7839},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7838":{"this":{"__isSmartRef__":true,"id":7141}},"7839":{"timestamp":{"__isSmartRef__":true,"id":7840},"user":"josi","tags":["gemtypes"]},"7840":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"7841":{"varMapping":{"__isSmartRef__":true,"id":7842},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":7843},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7842":{"this":{"__isSmartRef__":true,"id":7141}},"7843":{"timestamp":{"__isSmartRef__":true,"id":7844},"user":"soergel","tags":[]},"7844":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"7845":{"varMapping":{"__isSmartRef__":true,"id":7846},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":7847},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7846":{"this":{"__isSmartRef__":true,"id":7141}},"7847":{"timestamp":{"__isSmartRef__":true,"id":7848},"user":"soergel","tags":[]},"7848":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"7849":{"varMapping":{"__isSmartRef__":true,"id":7850},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":7851},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7850":{"this":{"__isSmartRef__":true,"id":7141}},"7851":{"timestamp":{"__isSmartRef__":true,"id":7852},"user":"soergel","tags":[]},"7852":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"7853":{"varMapping":{"__isSmartRef__":true,"id":7854},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":7855},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7854":{"this":{"__isSmartRef__":true,"id":7141}},"7855":{"timestamp":{"__isSmartRef__":true,"id":7856},"user":"josi","tags":["gemtypes"]},"7856":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"7857":{"varMapping":{"__isSmartRef__":true,"id":7858},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":7859},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7858":{"this":{"__isSmartRef__":true,"id":7141}},"7859":{"timestamp":{"__isSmartRef__":true,"id":7860},"user":"josi","tags":["gemtypes"]},"7860":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"7861":{"varMapping":{"__isSmartRef__":true,"id":7862},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":7863},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7862":{"this":{"__isSmartRef__":true,"id":7141}},"7863":{"timestamp":{"__isSmartRef__":true,"id":7864},"user":"jan.sandbrink","tags":[]},"7864":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"7865":{"become":{"__isSmartRef__":true,"id":7866},"onMouseDown":{"__isSmartRef__":true,"id":7870},"updatePicture":{"__isSmartRef__":true,"id":7878},"ruby":{"__isSmartRef__":true,"id":7882},"switchPositionWith":{"__isSmartRef__":true,"id":7886},"addNeighbour":{"__isSmartRef__":true,"id":7890},"amethyst":{"__isSmartRef__":true,"id":7894},"diopside":{"__isSmartRef__":true,"id":7898},"gemTypes":{"__isSmartRef__":true,"id":7902},"becomeRandomGem":{"__isSmartRef__":true,"id":7906},"mark":{"__isSmartRef__":true,"id":7910},"unmark":{"__isSmartRef__":true,"id":7914},"hasNeighbour":{"__isSmartRef__":true,"id":7918},"debugMarkNeighbours":{"__isSmartRef__":true,"id":7922},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":7926},"disappear":{"__isSmartRef__":true,"id":7930},"findStreakStart":{"__isSmartRef__":true,"id":7934},"buildStreak":{"__isSmartRef__":true,"id":7938},"scoreStreak":{"__isSmartRef__":true,"id":7942},"tryToStreak":{"__isSmartRef__":true,"id":7946},"blueDiamond":{"__isSmartRef__":true,"id":7950},"prehnite":{"__isSmartRef__":true,"id":7954},"debugUnmark":{"__isSmartRef__":true,"id":7958},"debugMark":{"__isSmartRef__":true,"id":7962},"citrine":{"__isSmartRef__":true,"id":7966},"move":{"__isSmartRef__":true,"id":7970},"performMovement":{"__isSmartRef__":true,"id":7974},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":7978},"zircon":{"__isSmartRef__":true,"id":7982},"emerald":{"__isSmartRef__":true,"id":7986},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":7990}},"7866":{"varMapping":{"__isSmartRef__":true,"id":7867},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7868},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7867":{"this":{"__isSmartRef__":true,"id":7040}},"7868":{"timestamp":{"__isSmartRef__":true,"id":7869},"user":"josi","tags":[]},"7869":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"7870":{"varMapping":{"__isSmartRef__":true,"id":7871},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":7876},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7871":{"this":{"__isSmartRef__":true,"id":7040},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":7872}},"7872":{"$super":{"__isSmartRef__":true,"id":7873}},"7873":{"varMapping":{"__isSmartRef__":true,"id":7874},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":7875},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7874":{"obj":{"__isSmartRef__":true,"id":7040},"name":"onMouseDown"},"7875":{},"7876":{"timestamp":{"__isSmartRef__":true,"id":7877},"user":"soergel","tags":[]},"7877":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"7878":{"varMapping":{"__isSmartRef__":true,"id":7879},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":7880},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7879":{"this":{"__isSmartRef__":true,"id":7040}},"7880":{"timestamp":{"__isSmartRef__":true,"id":7881},"user":"soergel","tags":[]},"7881":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"7882":{"varMapping":{"__isSmartRef__":true,"id":7883},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":7884},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7883":{"this":{"__isSmartRef__":true,"id":7040}},"7884":{"timestamp":{"__isSmartRef__":true,"id":7885},"user":"josi","tags":["gemtypes"]},"7885":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"7886":{"varMapping":{"__isSmartRef__":true,"id":7887},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7888},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7887":{"this":{"__isSmartRef__":true,"id":7040}},"7888":{"timestamp":{"__isSmartRef__":true,"id":7889},"user":"jan.sandbrink","tags":[]},"7889":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"7890":{"varMapping":{"__isSmartRef__":true,"id":7891},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7892},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7891":{"this":{"__isSmartRef__":true,"id":7040}},"7892":{"timestamp":{"__isSmartRef__":true,"id":7893},"user":"jan.sandbrink","tags":[]},"7893":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"7894":{"varMapping":{"__isSmartRef__":true,"id":7895},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":7896},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7895":{"this":{"__isSmartRef__":true,"id":7040}},"7896":{"timestamp":{"__isSmartRef__":true,"id":7897},"user":"josi","tags":["gemtypes"]},"7897":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"7898":{"varMapping":{"__isSmartRef__":true,"id":7899},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":7900},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7899":{"this":{"__isSmartRef__":true,"id":7040}},"7900":{"timestamp":{"__isSmartRef__":true,"id":7901},"user":"josi","tags":["gemtypes"]},"7901":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"7902":{"varMapping":{"__isSmartRef__":true,"id":7903},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":7904},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7903":{"this":{"__isSmartRef__":true,"id":7040}},"7904":{"timestamp":{"__isSmartRef__":true,"id":7905},"user":"josi","tags":[]},"7905":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"7906":{"varMapping":{"__isSmartRef__":true,"id":7907},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":7908},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7907":{"this":{"__isSmartRef__":true,"id":7040}},"7908":{"timestamp":{"__isSmartRef__":true,"id":7909},"user":"josi","tags":[]},"7909":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"7910":{"varMapping":{"__isSmartRef__":true,"id":7911},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":7912},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7911":{"this":{"__isSmartRef__":true,"id":7040}},"7912":{"timestamp":{"__isSmartRef__":true,"id":7913},"user":"soergel","tags":[]},"7913":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"7914":{"varMapping":{"__isSmartRef__":true,"id":7915},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":7916},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7915":{"this":{"__isSmartRef__":true,"id":7040}},"7916":{"timestamp":{"__isSmartRef__":true,"id":7917},"user":"soergel","tags":[]},"7917":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"7918":{"varMapping":{"__isSmartRef__":true,"id":7919},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":7920},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7919":{"this":{"__isSmartRef__":true,"id":7040}},"7920":{"timestamp":{"__isSmartRef__":true,"id":7921},"user":"soergel","tags":[]},"7921":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"7922":{"varMapping":{"__isSmartRef__":true,"id":7923},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7924},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7923":{"this":{"__isSmartRef__":true,"id":7040}},"7924":{"timestamp":{"__isSmartRef__":true,"id":7925},"user":"soergel","tags":["debug"]},"7925":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"7926":{"varMapping":{"__isSmartRef__":true,"id":7927},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":7928},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7927":{"this":{"__isSmartRef__":true,"id":7040}},"7928":{"timestamp":{"__isSmartRef__":true,"id":7929},"user":"soergel","tags":["debug"]},"7929":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"7930":{"varMapping":{"__isSmartRef__":true,"id":7931},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7932},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7931":{"this":{"__isSmartRef__":true,"id":7040}},"7932":{"timestamp":{"__isSmartRef__":true,"id":7933},"user":"soergel","tags":[]},"7933":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"7934":{"varMapping":{"__isSmartRef__":true,"id":7935},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7936},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7935":{"this":{"__isSmartRef__":true,"id":7040}},"7936":{"timestamp":{"__isSmartRef__":true,"id":7937},"user":"jan.sandbrink","tags":[]},"7937":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"7938":{"varMapping":{"__isSmartRef__":true,"id":7939},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":7940},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7939":{"this":{"__isSmartRef__":true,"id":7040}},"7940":{"timestamp":{"__isSmartRef__":true,"id":7941},"user":"jan.sandbrink","tags":[]},"7941":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"7942":{"varMapping":{"__isSmartRef__":true,"id":7943},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":7944},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7943":{"this":{"__isSmartRef__":true,"id":7040}},"7944":{"timestamp":{"__isSmartRef__":true,"id":7945},"user":"jan.sandbrink","tags":[]},"7945":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"7946":{"varMapping":{"__isSmartRef__":true,"id":7947},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":7948},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7947":{"this":{"__isSmartRef__":true,"id":7040}},"7948":{"timestamp":{"__isSmartRef__":true,"id":7949},"user":"jan.sandbrink","tags":[]},"7949":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"7950":{"varMapping":{"__isSmartRef__":true,"id":7951},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":7952},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7951":{"this":{"__isSmartRef__":true,"id":7040}},"7952":{"timestamp":{"__isSmartRef__":true,"id":7953},"user":"josi","tags":["gemtypes"]},"7953":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"7954":{"varMapping":{"__isSmartRef__":true,"id":7955},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":7956},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7955":{"this":{"__isSmartRef__":true,"id":7040}},"7956":{"timestamp":{"__isSmartRef__":true,"id":7957},"user":"josi","tags":["gemtypes"]},"7957":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"7958":{"varMapping":{"__isSmartRef__":true,"id":7959},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":7960},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7959":{"this":{"__isSmartRef__":true,"id":7040}},"7960":{"timestamp":{"__isSmartRef__":true,"id":7961},"user":"soergel","tags":["debug"]},"7961":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"7962":{"varMapping":{"__isSmartRef__":true,"id":7963},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":7964},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7963":{"this":{"__isSmartRef__":true,"id":7040}},"7964":{"timestamp":{"__isSmartRef__":true,"id":7965},"user":"soergel","tags":["debug"]},"7965":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"7966":{"varMapping":{"__isSmartRef__":true,"id":7967},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":7968},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7967":{"this":{"__isSmartRef__":true,"id":7040}},"7968":{"timestamp":{"__isSmartRef__":true,"id":7969},"user":"josi","tags":["gemtypes"]},"7969":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"7970":{"varMapping":{"__isSmartRef__":true,"id":7971},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":7972},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7971":{"this":{"__isSmartRef__":true,"id":7040}},"7972":{"timestamp":{"__isSmartRef__":true,"id":7973},"user":"soergel","tags":[]},"7973":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"7974":{"varMapping":{"__isSmartRef__":true,"id":7975},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":7976},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7975":{"this":{"__isSmartRef__":true,"id":7040}},"7976":{"timestamp":{"__isSmartRef__":true,"id":7977},"user":"soergel","tags":[]},"7977":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"7978":{"varMapping":{"__isSmartRef__":true,"id":7979},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":7980},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7979":{"this":{"__isSmartRef__":true,"id":7040}},"7980":{"timestamp":{"__isSmartRef__":true,"id":7981},"user":"soergel","tags":[]},"7981":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"7982":{"varMapping":{"__isSmartRef__":true,"id":7983},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":7984},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7983":{"this":{"__isSmartRef__":true,"id":7040}},"7984":{"timestamp":{"__isSmartRef__":true,"id":7985},"user":"josi","tags":["gemtypes"]},"7985":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"7986":{"varMapping":{"__isSmartRef__":true,"id":7987},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":7988},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7987":{"this":{"__isSmartRef__":true,"id":7040}},"7988":{"timestamp":{"__isSmartRef__":true,"id":7989},"user":"josi","tags":["gemtypes"]},"7989":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"7990":{"varMapping":{"__isSmartRef__":true,"id":7991},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":7992},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7991":{"this":{"__isSmartRef__":true,"id":7040}},"7992":{"timestamp":{"__isSmartRef__":true,"id":7993},"user":"jan.sandbrink","tags":[]},"7993":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"7994":{"become":{"__isSmartRef__":true,"id":7995},"onMouseDown":{"__isSmartRef__":true,"id":7999},"updatePicture":{"__isSmartRef__":true,"id":8007},"ruby":{"__isSmartRef__":true,"id":8011},"switchPositionWith":{"__isSmartRef__":true,"id":8015},"addNeighbour":{"__isSmartRef__":true,"id":8019},"amethyst":{"__isSmartRef__":true,"id":8023},"diopside":{"__isSmartRef__":true,"id":8027},"gemTypes":{"__isSmartRef__":true,"id":8031},"becomeRandomGem":{"__isSmartRef__":true,"id":8035},"mark":{"__isSmartRef__":true,"id":8039},"unmark":{"__isSmartRef__":true,"id":8043},"hasNeighbour":{"__isSmartRef__":true,"id":8047},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8051},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8055},"disappear":{"__isSmartRef__":true,"id":8059},"findStreakStart":{"__isSmartRef__":true,"id":8063},"buildStreak":{"__isSmartRef__":true,"id":8067},"scoreStreak":{"__isSmartRef__":true,"id":8071},"tryToStreak":{"__isSmartRef__":true,"id":8075},"blueDiamond":{"__isSmartRef__":true,"id":8079},"prehnite":{"__isSmartRef__":true,"id":8083},"debugUnmark":{"__isSmartRef__":true,"id":8087},"debugMark":{"__isSmartRef__":true,"id":8091},"citrine":{"__isSmartRef__":true,"id":8095},"move":{"__isSmartRef__":true,"id":8099},"performMovement":{"__isSmartRef__":true,"id":8103},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":8107},"zircon":{"__isSmartRef__":true,"id":8111},"emerald":{"__isSmartRef__":true,"id":8115},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":8119}},"7995":{"varMapping":{"__isSmartRef__":true,"id":7996},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":7997},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"7996":{"this":{"__isSmartRef__":true,"id":6939}},"7997":{"timestamp":{"__isSmartRef__":true,"id":7998},"user":"josi","tags":[]},"7998":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"7999":{"varMapping":{"__isSmartRef__":true,"id":8000},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8005},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8000":{"this":{"__isSmartRef__":true,"id":6939},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8001}},"8001":{"$super":{"__isSmartRef__":true,"id":8002}},"8002":{"varMapping":{"__isSmartRef__":true,"id":8003},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8004},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8003":{"obj":{"__isSmartRef__":true,"id":6939},"name":"onMouseDown"},"8004":{},"8005":{"timestamp":{"__isSmartRef__":true,"id":8006},"user":"soergel","tags":[]},"8006":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8007":{"varMapping":{"__isSmartRef__":true,"id":8008},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8009},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8008":{"this":{"__isSmartRef__":true,"id":6939}},"8009":{"timestamp":{"__isSmartRef__":true,"id":8010},"user":"soergel","tags":[]},"8010":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8011":{"varMapping":{"__isSmartRef__":true,"id":8012},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8013},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8012":{"this":{"__isSmartRef__":true,"id":6939}},"8013":{"timestamp":{"__isSmartRef__":true,"id":8014},"user":"josi","tags":["gemtypes"]},"8014":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8015":{"varMapping":{"__isSmartRef__":true,"id":8016},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8017},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8016":{"this":{"__isSmartRef__":true,"id":6939}},"8017":{"timestamp":{"__isSmartRef__":true,"id":8018},"user":"jan.sandbrink","tags":[]},"8018":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8019":{"varMapping":{"__isSmartRef__":true,"id":8020},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8021},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8020":{"this":{"__isSmartRef__":true,"id":6939}},"8021":{"timestamp":{"__isSmartRef__":true,"id":8022},"user":"jan.sandbrink","tags":[]},"8022":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8023":{"varMapping":{"__isSmartRef__":true,"id":8024},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8025},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8024":{"this":{"__isSmartRef__":true,"id":6939}},"8025":{"timestamp":{"__isSmartRef__":true,"id":8026},"user":"josi","tags":["gemtypes"]},"8026":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8027":{"varMapping":{"__isSmartRef__":true,"id":8028},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8029},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8028":{"this":{"__isSmartRef__":true,"id":6939}},"8029":{"timestamp":{"__isSmartRef__":true,"id":8030},"user":"josi","tags":["gemtypes"]},"8030":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8031":{"varMapping":{"__isSmartRef__":true,"id":8032},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8033},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8032":{"this":{"__isSmartRef__":true,"id":6939}},"8033":{"timestamp":{"__isSmartRef__":true,"id":8034},"user":"josi","tags":[]},"8034":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8035":{"varMapping":{"__isSmartRef__":true,"id":8036},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8037},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8036":{"this":{"__isSmartRef__":true,"id":6939}},"8037":{"timestamp":{"__isSmartRef__":true,"id":8038},"user":"josi","tags":[]},"8038":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8039":{"varMapping":{"__isSmartRef__":true,"id":8040},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8041},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8040":{"this":{"__isSmartRef__":true,"id":6939}},"8041":{"timestamp":{"__isSmartRef__":true,"id":8042},"user":"soergel","tags":[]},"8042":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8043":{"varMapping":{"__isSmartRef__":true,"id":8044},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8045},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8044":{"this":{"__isSmartRef__":true,"id":6939}},"8045":{"timestamp":{"__isSmartRef__":true,"id":8046},"user":"soergel","tags":[]},"8046":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8047":{"varMapping":{"__isSmartRef__":true,"id":8048},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8049},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8048":{"this":{"__isSmartRef__":true,"id":6939}},"8049":{"timestamp":{"__isSmartRef__":true,"id":8050},"user":"soergel","tags":[]},"8050":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8051":{"varMapping":{"__isSmartRef__":true,"id":8052},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8053},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8052":{"this":{"__isSmartRef__":true,"id":6939}},"8053":{"timestamp":{"__isSmartRef__":true,"id":8054},"user":"soergel","tags":["debug"]},"8054":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8055":{"varMapping":{"__isSmartRef__":true,"id":8056},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8057},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8056":{"this":{"__isSmartRef__":true,"id":6939}},"8057":{"timestamp":{"__isSmartRef__":true,"id":8058},"user":"soergel","tags":["debug"]},"8058":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8059":{"varMapping":{"__isSmartRef__":true,"id":8060},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8061},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8060":{"this":{"__isSmartRef__":true,"id":6939}},"8061":{"timestamp":{"__isSmartRef__":true,"id":8062},"user":"soergel","tags":[]},"8062":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8063":{"varMapping":{"__isSmartRef__":true,"id":8064},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8065},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8064":{"this":{"__isSmartRef__":true,"id":6939}},"8065":{"timestamp":{"__isSmartRef__":true,"id":8066},"user":"jan.sandbrink","tags":[]},"8066":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8067":{"varMapping":{"__isSmartRef__":true,"id":8068},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8069},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8068":{"this":{"__isSmartRef__":true,"id":6939}},"8069":{"timestamp":{"__isSmartRef__":true,"id":8070},"user":"jan.sandbrink","tags":[]},"8070":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8071":{"varMapping":{"__isSmartRef__":true,"id":8072},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8073},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8072":{"this":{"__isSmartRef__":true,"id":6939}},"8073":{"timestamp":{"__isSmartRef__":true,"id":8074},"user":"jan.sandbrink","tags":[]},"8074":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8075":{"varMapping":{"__isSmartRef__":true,"id":8076},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8077},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8076":{"this":{"__isSmartRef__":true,"id":6939}},"8077":{"timestamp":{"__isSmartRef__":true,"id":8078},"user":"jan.sandbrink","tags":[]},"8078":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8079":{"varMapping":{"__isSmartRef__":true,"id":8080},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8081},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8080":{"this":{"__isSmartRef__":true,"id":6939}},"8081":{"timestamp":{"__isSmartRef__":true,"id":8082},"user":"josi","tags":["gemtypes"]},"8082":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8083":{"varMapping":{"__isSmartRef__":true,"id":8084},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8085},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8084":{"this":{"__isSmartRef__":true,"id":6939}},"8085":{"timestamp":{"__isSmartRef__":true,"id":8086},"user":"josi","tags":["gemtypes"]},"8086":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8087":{"varMapping":{"__isSmartRef__":true,"id":8088},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8089},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8088":{"this":{"__isSmartRef__":true,"id":6939}},"8089":{"timestamp":{"__isSmartRef__":true,"id":8090},"user":"soergel","tags":["debug"]},"8090":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8091":{"varMapping":{"__isSmartRef__":true,"id":8092},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8093},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8092":{"this":{"__isSmartRef__":true,"id":6939}},"8093":{"timestamp":{"__isSmartRef__":true,"id":8094},"user":"soergel","tags":["debug"]},"8094":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8095":{"varMapping":{"__isSmartRef__":true,"id":8096},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":8097},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8096":{"this":{"__isSmartRef__":true,"id":6939}},"8097":{"timestamp":{"__isSmartRef__":true,"id":8098},"user":"josi","tags":["gemtypes"]},"8098":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"8099":{"varMapping":{"__isSmartRef__":true,"id":8100},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":8101},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8100":{"this":{"__isSmartRef__":true,"id":6939}},"8101":{"timestamp":{"__isSmartRef__":true,"id":8102},"user":"soergel","tags":[]},"8102":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"8103":{"varMapping":{"__isSmartRef__":true,"id":8104},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8105},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8104":{"this":{"__isSmartRef__":true,"id":6939}},"8105":{"timestamp":{"__isSmartRef__":true,"id":8106},"user":"soergel","tags":[]},"8106":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"8107":{"varMapping":{"__isSmartRef__":true,"id":8108},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":8109},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8108":{"this":{"__isSmartRef__":true,"id":6939}},"8109":{"timestamp":{"__isSmartRef__":true,"id":8110},"user":"soergel","tags":[]},"8110":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"8111":{"varMapping":{"__isSmartRef__":true,"id":8112},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":8113},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8112":{"this":{"__isSmartRef__":true,"id":6939}},"8113":{"timestamp":{"__isSmartRef__":true,"id":8114},"user":"josi","tags":["gemtypes"]},"8114":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"8115":{"varMapping":{"__isSmartRef__":true,"id":8116},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":8117},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8116":{"this":{"__isSmartRef__":true,"id":6939}},"8117":{"timestamp":{"__isSmartRef__":true,"id":8118},"user":"josi","tags":["gemtypes"]},"8118":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"8119":{"varMapping":{"__isSmartRef__":true,"id":8120},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":8121},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8120":{"this":{"__isSmartRef__":true,"id":6939}},"8121":{"timestamp":{"__isSmartRef__":true,"id":8122},"user":"jan.sandbrink","tags":[]},"8122":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"8123":{"become":{"__isSmartRef__":true,"id":8124},"onMouseDown":{"__isSmartRef__":true,"id":8128},"updatePicture":{"__isSmartRef__":true,"id":8136},"ruby":{"__isSmartRef__":true,"id":8140},"switchPositionWith":{"__isSmartRef__":true,"id":8144},"addNeighbour":{"__isSmartRef__":true,"id":8148},"amethyst":{"__isSmartRef__":true,"id":8152},"diopside":{"__isSmartRef__":true,"id":8156},"gemTypes":{"__isSmartRef__":true,"id":8160},"becomeRandomGem":{"__isSmartRef__":true,"id":8164},"mark":{"__isSmartRef__":true,"id":8168},"unmark":{"__isSmartRef__":true,"id":8172},"hasNeighbour":{"__isSmartRef__":true,"id":8176},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8180},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8184},"disappear":{"__isSmartRef__":true,"id":8188},"findStreakStart":{"__isSmartRef__":true,"id":8192},"buildStreak":{"__isSmartRef__":true,"id":8196},"scoreStreak":{"__isSmartRef__":true,"id":8200},"tryToStreak":{"__isSmartRef__":true,"id":8204},"blueDiamond":{"__isSmartRef__":true,"id":8208},"prehnite":{"__isSmartRef__":true,"id":8212},"debugUnmark":{"__isSmartRef__":true,"id":8216},"debugMark":{"__isSmartRef__":true,"id":8220},"citrine":{"__isSmartRef__":true,"id":8224},"move":{"__isSmartRef__":true,"id":8228},"performMovement":{"__isSmartRef__":true,"id":8232},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":8236},"zircon":{"__isSmartRef__":true,"id":8240},"emerald":{"__isSmartRef__":true,"id":8244},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":8248}},"8124":{"varMapping":{"__isSmartRef__":true,"id":8125},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8126},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8125":{"this":{"__isSmartRef__":true,"id":6838}},"8126":{"timestamp":{"__isSmartRef__":true,"id":8127},"user":"josi","tags":[]},"8127":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"8128":{"varMapping":{"__isSmartRef__":true,"id":8129},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8134},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8129":{"this":{"__isSmartRef__":true,"id":6838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8130}},"8130":{"$super":{"__isSmartRef__":true,"id":8131}},"8131":{"varMapping":{"__isSmartRef__":true,"id":8132},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8133},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8132":{"obj":{"__isSmartRef__":true,"id":6838},"name":"onMouseDown"},"8133":{},"8134":{"timestamp":{"__isSmartRef__":true,"id":8135},"user":"soergel","tags":[]},"8135":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8136":{"varMapping":{"__isSmartRef__":true,"id":8137},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8137":{"this":{"__isSmartRef__":true,"id":6838}},"8138":{"timestamp":{"__isSmartRef__":true,"id":8139},"user":"soergel","tags":[]},"8139":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8140":{"varMapping":{"__isSmartRef__":true,"id":8141},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8142},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8141":{"this":{"__isSmartRef__":true,"id":6838}},"8142":{"timestamp":{"__isSmartRef__":true,"id":8143},"user":"josi","tags":["gemtypes"]},"8143":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8144":{"varMapping":{"__isSmartRef__":true,"id":8145},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8146},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8145":{"this":{"__isSmartRef__":true,"id":6838}},"8146":{"timestamp":{"__isSmartRef__":true,"id":8147},"user":"jan.sandbrink","tags":[]},"8147":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8148":{"varMapping":{"__isSmartRef__":true,"id":8149},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8150},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8149":{"this":{"__isSmartRef__":true,"id":6838}},"8150":{"timestamp":{"__isSmartRef__":true,"id":8151},"user":"jan.sandbrink","tags":[]},"8151":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8152":{"varMapping":{"__isSmartRef__":true,"id":8153},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8154},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8153":{"this":{"__isSmartRef__":true,"id":6838}},"8154":{"timestamp":{"__isSmartRef__":true,"id":8155},"user":"josi","tags":["gemtypes"]},"8155":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8156":{"varMapping":{"__isSmartRef__":true,"id":8157},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8158},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8157":{"this":{"__isSmartRef__":true,"id":6838}},"8158":{"timestamp":{"__isSmartRef__":true,"id":8159},"user":"josi","tags":["gemtypes"]},"8159":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8160":{"varMapping":{"__isSmartRef__":true,"id":8161},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8162},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8161":{"this":{"__isSmartRef__":true,"id":6838}},"8162":{"timestamp":{"__isSmartRef__":true,"id":8163},"user":"josi","tags":[]},"8163":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8164":{"varMapping":{"__isSmartRef__":true,"id":8165},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8166},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8165":{"this":{"__isSmartRef__":true,"id":6838}},"8166":{"timestamp":{"__isSmartRef__":true,"id":8167},"user":"josi","tags":[]},"8167":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8168":{"varMapping":{"__isSmartRef__":true,"id":8169},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8170},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8169":{"this":{"__isSmartRef__":true,"id":6838}},"8170":{"timestamp":{"__isSmartRef__":true,"id":8171},"user":"soergel","tags":[]},"8171":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8172":{"varMapping":{"__isSmartRef__":true,"id":8173},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8174},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8173":{"this":{"__isSmartRef__":true,"id":6838}},"8174":{"timestamp":{"__isSmartRef__":true,"id":8175},"user":"soergel","tags":[]},"8175":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8176":{"varMapping":{"__isSmartRef__":true,"id":8177},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8178},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8177":{"this":{"__isSmartRef__":true,"id":6838}},"8178":{"timestamp":{"__isSmartRef__":true,"id":8179},"user":"soergel","tags":[]},"8179":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8180":{"varMapping":{"__isSmartRef__":true,"id":8181},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8182},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8181":{"this":{"__isSmartRef__":true,"id":6838}},"8182":{"timestamp":{"__isSmartRef__":true,"id":8183},"user":"soergel","tags":["debug"]},"8183":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8184":{"varMapping":{"__isSmartRef__":true,"id":8185},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8186},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8185":{"this":{"__isSmartRef__":true,"id":6838}},"8186":{"timestamp":{"__isSmartRef__":true,"id":8187},"user":"soergel","tags":["debug"]},"8187":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8188":{"varMapping":{"__isSmartRef__":true,"id":8189},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8190},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8189":{"this":{"__isSmartRef__":true,"id":6838}},"8190":{"timestamp":{"__isSmartRef__":true,"id":8191},"user":"soergel","tags":[]},"8191":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8192":{"varMapping":{"__isSmartRef__":true,"id":8193},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8194},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8193":{"this":{"__isSmartRef__":true,"id":6838}},"8194":{"timestamp":{"__isSmartRef__":true,"id":8195},"user":"jan.sandbrink","tags":[]},"8195":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8196":{"varMapping":{"__isSmartRef__":true,"id":8197},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8198},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8197":{"this":{"__isSmartRef__":true,"id":6838}},"8198":{"timestamp":{"__isSmartRef__":true,"id":8199},"user":"jan.sandbrink","tags":[]},"8199":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8200":{"varMapping":{"__isSmartRef__":true,"id":8201},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8202},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8201":{"this":{"__isSmartRef__":true,"id":6838}},"8202":{"timestamp":{"__isSmartRef__":true,"id":8203},"user":"jan.sandbrink","tags":[]},"8203":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8204":{"varMapping":{"__isSmartRef__":true,"id":8205},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8206},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8205":{"this":{"__isSmartRef__":true,"id":6838}},"8206":{"timestamp":{"__isSmartRef__":true,"id":8207},"user":"jan.sandbrink","tags":[]},"8207":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8208":{"varMapping":{"__isSmartRef__":true,"id":8209},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8210},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8209":{"this":{"__isSmartRef__":true,"id":6838}},"8210":{"timestamp":{"__isSmartRef__":true,"id":8211},"user":"josi","tags":["gemtypes"]},"8211":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8212":{"varMapping":{"__isSmartRef__":true,"id":8213},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8214},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8213":{"this":{"__isSmartRef__":true,"id":6838}},"8214":{"timestamp":{"__isSmartRef__":true,"id":8215},"user":"josi","tags":["gemtypes"]},"8215":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8216":{"varMapping":{"__isSmartRef__":true,"id":8217},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8218},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8217":{"this":{"__isSmartRef__":true,"id":6838}},"8218":{"timestamp":{"__isSmartRef__":true,"id":8219},"user":"soergel","tags":["debug"]},"8219":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8220":{"varMapping":{"__isSmartRef__":true,"id":8221},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8222},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8221":{"this":{"__isSmartRef__":true,"id":6838}},"8222":{"timestamp":{"__isSmartRef__":true,"id":8223},"user":"soergel","tags":["debug"]},"8223":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8224":{"varMapping":{"__isSmartRef__":true,"id":8225},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":8226},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8225":{"this":{"__isSmartRef__":true,"id":6838}},"8226":{"timestamp":{"__isSmartRef__":true,"id":8227},"user":"josi","tags":["gemtypes"]},"8227":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"8228":{"varMapping":{"__isSmartRef__":true,"id":8229},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":8230},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8229":{"this":{"__isSmartRef__":true,"id":6838}},"8230":{"timestamp":{"__isSmartRef__":true,"id":8231},"user":"soergel","tags":[]},"8231":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"8232":{"varMapping":{"__isSmartRef__":true,"id":8233},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8234},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8233":{"this":{"__isSmartRef__":true,"id":6838}},"8234":{"timestamp":{"__isSmartRef__":true,"id":8235},"user":"soergel","tags":[]},"8235":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"8236":{"varMapping":{"__isSmartRef__":true,"id":8237},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":8238},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8237":{"this":{"__isSmartRef__":true,"id":6838}},"8238":{"timestamp":{"__isSmartRef__":true,"id":8239},"user":"soergel","tags":[]},"8239":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"8240":{"varMapping":{"__isSmartRef__":true,"id":8241},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":8242},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8241":{"this":{"__isSmartRef__":true,"id":6838}},"8242":{"timestamp":{"__isSmartRef__":true,"id":8243},"user":"josi","tags":["gemtypes"]},"8243":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"8244":{"varMapping":{"__isSmartRef__":true,"id":8245},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":8246},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8245":{"this":{"__isSmartRef__":true,"id":6838}},"8246":{"timestamp":{"__isSmartRef__":true,"id":8247},"user":"josi","tags":["gemtypes"]},"8247":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"8248":{"varMapping":{"__isSmartRef__":true,"id":8249},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":8250},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8249":{"this":{"__isSmartRef__":true,"id":6838}},"8250":{"timestamp":{"__isSmartRef__":true,"id":8251},"user":"jan.sandbrink","tags":[]},"8251":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"8252":{"become":{"__isSmartRef__":true,"id":8253},"onMouseDown":{"__isSmartRef__":true,"id":8257},"updatePicture":{"__isSmartRef__":true,"id":8265},"ruby":{"__isSmartRef__":true,"id":8269},"switchPositionWith":{"__isSmartRef__":true,"id":8273},"addNeighbour":{"__isSmartRef__":true,"id":8277},"amethyst":{"__isSmartRef__":true,"id":8281},"diopside":{"__isSmartRef__":true,"id":8285},"gemTypes":{"__isSmartRef__":true,"id":8289},"becomeRandomGem":{"__isSmartRef__":true,"id":8293},"mark":{"__isSmartRef__":true,"id":8297},"unmark":{"__isSmartRef__":true,"id":8301},"hasNeighbour":{"__isSmartRef__":true,"id":8305},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8309},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8313},"disappear":{"__isSmartRef__":true,"id":8317},"findStreakStart":{"__isSmartRef__":true,"id":8321},"buildStreak":{"__isSmartRef__":true,"id":8325},"scoreStreak":{"__isSmartRef__":true,"id":8329},"tryToStreak":{"__isSmartRef__":true,"id":8333},"blueDiamond":{"__isSmartRef__":true,"id":8337},"prehnite":{"__isSmartRef__":true,"id":8341},"debugUnmark":{"__isSmartRef__":true,"id":8345},"debugMark":{"__isSmartRef__":true,"id":8349},"citrine":{"__isSmartRef__":true,"id":8353},"move":{"__isSmartRef__":true,"id":8357},"performMovement":{"__isSmartRef__":true,"id":8361},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":8365},"zircon":{"__isSmartRef__":true,"id":8369},"emerald":{"__isSmartRef__":true,"id":8373},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":8377}},"8253":{"varMapping":{"__isSmartRef__":true,"id":8254},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8255},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8254":{"this":{"__isSmartRef__":true,"id":6746}},"8255":{"timestamp":{"__isSmartRef__":true,"id":8256},"user":"josi","tags":[]},"8256":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"8257":{"varMapping":{"__isSmartRef__":true,"id":8258},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8263},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8258":{"this":{"__isSmartRef__":true,"id":6746},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8259}},"8259":{"$super":{"__isSmartRef__":true,"id":8260}},"8260":{"varMapping":{"__isSmartRef__":true,"id":8261},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8262},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8261":{"obj":{"__isSmartRef__":true,"id":6746},"name":"onMouseDown"},"8262":{},"8263":{"timestamp":{"__isSmartRef__":true,"id":8264},"user":"soergel","tags":[]},"8264":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8265":{"varMapping":{"__isSmartRef__":true,"id":8266},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8267},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8266":{"this":{"__isSmartRef__":true,"id":6746}},"8267":{"timestamp":{"__isSmartRef__":true,"id":8268},"user":"soergel","tags":[]},"8268":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8269":{"varMapping":{"__isSmartRef__":true,"id":8270},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8271},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8270":{"this":{"__isSmartRef__":true,"id":6746}},"8271":{"timestamp":{"__isSmartRef__":true,"id":8272},"user":"josi","tags":["gemtypes"]},"8272":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8273":{"varMapping":{"__isSmartRef__":true,"id":8274},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8275},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8274":{"this":{"__isSmartRef__":true,"id":6746}},"8275":{"timestamp":{"__isSmartRef__":true,"id":8276},"user":"jan.sandbrink","tags":[]},"8276":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8277":{"varMapping":{"__isSmartRef__":true,"id":8278},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8279},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8278":{"this":{"__isSmartRef__":true,"id":6746}},"8279":{"timestamp":{"__isSmartRef__":true,"id":8280},"user":"jan.sandbrink","tags":[]},"8280":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8281":{"varMapping":{"__isSmartRef__":true,"id":8282},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8283},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8282":{"this":{"__isSmartRef__":true,"id":6746}},"8283":{"timestamp":{"__isSmartRef__":true,"id":8284},"user":"josi","tags":["gemtypes"]},"8284":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8285":{"varMapping":{"__isSmartRef__":true,"id":8286},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8287},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8286":{"this":{"__isSmartRef__":true,"id":6746}},"8287":{"timestamp":{"__isSmartRef__":true,"id":8288},"user":"josi","tags":["gemtypes"]},"8288":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8289":{"varMapping":{"__isSmartRef__":true,"id":8290},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8291},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8290":{"this":{"__isSmartRef__":true,"id":6746}},"8291":{"timestamp":{"__isSmartRef__":true,"id":8292},"user":"josi","tags":[]},"8292":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8293":{"varMapping":{"__isSmartRef__":true,"id":8294},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8295},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8294":{"this":{"__isSmartRef__":true,"id":6746}},"8295":{"timestamp":{"__isSmartRef__":true,"id":8296},"user":"josi","tags":[]},"8296":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8297":{"varMapping":{"__isSmartRef__":true,"id":8298},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8299},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8298":{"this":{"__isSmartRef__":true,"id":6746}},"8299":{"timestamp":{"__isSmartRef__":true,"id":8300},"user":"soergel","tags":[]},"8300":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8301":{"varMapping":{"__isSmartRef__":true,"id":8302},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8303},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8302":{"this":{"__isSmartRef__":true,"id":6746}},"8303":{"timestamp":{"__isSmartRef__":true,"id":8304},"user":"soergel","tags":[]},"8304":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8305":{"varMapping":{"__isSmartRef__":true,"id":8306},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8307},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8306":{"this":{"__isSmartRef__":true,"id":6746}},"8307":{"timestamp":{"__isSmartRef__":true,"id":8308},"user":"soergel","tags":[]},"8308":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8309":{"varMapping":{"__isSmartRef__":true,"id":8310},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8311},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8310":{"this":{"__isSmartRef__":true,"id":6746}},"8311":{"timestamp":{"__isSmartRef__":true,"id":8312},"user":"soergel","tags":["debug"]},"8312":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8313":{"varMapping":{"__isSmartRef__":true,"id":8314},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8315},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8314":{"this":{"__isSmartRef__":true,"id":6746}},"8315":{"timestamp":{"__isSmartRef__":true,"id":8316},"user":"soergel","tags":["debug"]},"8316":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8317":{"varMapping":{"__isSmartRef__":true,"id":8318},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8319},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8318":{"this":{"__isSmartRef__":true,"id":6746}},"8319":{"timestamp":{"__isSmartRef__":true,"id":8320},"user":"soergel","tags":[]},"8320":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8321":{"varMapping":{"__isSmartRef__":true,"id":8322},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8323},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8322":{"this":{"__isSmartRef__":true,"id":6746}},"8323":{"timestamp":{"__isSmartRef__":true,"id":8324},"user":"jan.sandbrink","tags":[]},"8324":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8325":{"varMapping":{"__isSmartRef__":true,"id":8326},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8327},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8326":{"this":{"__isSmartRef__":true,"id":6746}},"8327":{"timestamp":{"__isSmartRef__":true,"id":8328},"user":"jan.sandbrink","tags":[]},"8328":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8329":{"varMapping":{"__isSmartRef__":true,"id":8330},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8331},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8330":{"this":{"__isSmartRef__":true,"id":6746}},"8331":{"timestamp":{"__isSmartRef__":true,"id":8332},"user":"jan.sandbrink","tags":[]},"8332":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8333":{"varMapping":{"__isSmartRef__":true,"id":8334},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8335},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8334":{"this":{"__isSmartRef__":true,"id":6746}},"8335":{"timestamp":{"__isSmartRef__":true,"id":8336},"user":"jan.sandbrink","tags":[]},"8336":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8337":{"varMapping":{"__isSmartRef__":true,"id":8338},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8339},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8338":{"this":{"__isSmartRef__":true,"id":6746}},"8339":{"timestamp":{"__isSmartRef__":true,"id":8340},"user":"josi","tags":["gemtypes"]},"8340":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8341":{"varMapping":{"__isSmartRef__":true,"id":8342},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8343},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8342":{"this":{"__isSmartRef__":true,"id":6746}},"8343":{"timestamp":{"__isSmartRef__":true,"id":8344},"user":"josi","tags":["gemtypes"]},"8344":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8345":{"varMapping":{"__isSmartRef__":true,"id":8346},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8347},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8346":{"this":{"__isSmartRef__":true,"id":6746}},"8347":{"timestamp":{"__isSmartRef__":true,"id":8348},"user":"soergel","tags":["debug"]},"8348":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8349":{"varMapping":{"__isSmartRef__":true,"id":8350},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8351},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8350":{"this":{"__isSmartRef__":true,"id":6746}},"8351":{"timestamp":{"__isSmartRef__":true,"id":8352},"user":"soergel","tags":["debug"]},"8352":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8353":{"varMapping":{"__isSmartRef__":true,"id":8354},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":8355},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8354":{"this":{"__isSmartRef__":true,"id":6746}},"8355":{"timestamp":{"__isSmartRef__":true,"id":8356},"user":"josi","tags":["gemtypes"]},"8356":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"8357":{"varMapping":{"__isSmartRef__":true,"id":8358},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":8359},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8358":{"this":{"__isSmartRef__":true,"id":6746}},"8359":{"timestamp":{"__isSmartRef__":true,"id":8360},"user":"soergel","tags":[]},"8360":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"8361":{"varMapping":{"__isSmartRef__":true,"id":8362},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8363},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8362":{"this":{"__isSmartRef__":true,"id":6746}},"8363":{"timestamp":{"__isSmartRef__":true,"id":8364},"user":"soergel","tags":[]},"8364":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"8365":{"varMapping":{"__isSmartRef__":true,"id":8366},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":8367},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8366":{"this":{"__isSmartRef__":true,"id":6746}},"8367":{"timestamp":{"__isSmartRef__":true,"id":8368},"user":"soergel","tags":[]},"8368":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"8369":{"varMapping":{"__isSmartRef__":true,"id":8370},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":8371},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8370":{"this":{"__isSmartRef__":true,"id":6746}},"8371":{"timestamp":{"__isSmartRef__":true,"id":8372},"user":"josi","tags":["gemtypes"]},"8372":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"8373":{"varMapping":{"__isSmartRef__":true,"id":8374},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":8375},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8374":{"this":{"__isSmartRef__":true,"id":6746}},"8375":{"timestamp":{"__isSmartRef__":true,"id":8376},"user":"josi","tags":["gemtypes"]},"8376":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"8377":{"varMapping":{"__isSmartRef__":true,"id":8378},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":8379},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8378":{"this":{"__isSmartRef__":true,"id":6746}},"8379":{"timestamp":{"__isSmartRef__":true,"id":8380},"user":"jan.sandbrink","tags":[]},"8380":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"8381":{"become":{"__isSmartRef__":true,"id":8382},"onMouseDown":{"__isSmartRef__":true,"id":8386},"updatePicture":{"__isSmartRef__":true,"id":8394},"ruby":{"__isSmartRef__":true,"id":8398},"switchPositionWith":{"__isSmartRef__":true,"id":8402},"addNeighbour":{"__isSmartRef__":true,"id":8406},"amethyst":{"__isSmartRef__":true,"id":8410},"diopside":{"__isSmartRef__":true,"id":8414},"gemTypes":{"__isSmartRef__":true,"id":8418},"becomeRandomGem":{"__isSmartRef__":true,"id":8422},"mark":{"__isSmartRef__":true,"id":8426},"unmark":{"__isSmartRef__":true,"id":8430},"hasNeighbour":{"__isSmartRef__":true,"id":8434},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8438},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8442},"disappear":{"__isSmartRef__":true,"id":8446},"findStreakStart":{"__isSmartRef__":true,"id":8450},"buildStreak":{"__isSmartRef__":true,"id":8454},"scoreStreak":{"__isSmartRef__":true,"id":8458},"tryToStreak":{"__isSmartRef__":true,"id":8462},"blueDiamond":{"__isSmartRef__":true,"id":8466},"prehnite":{"__isSmartRef__":true,"id":8470},"debugUnmark":{"__isSmartRef__":true,"id":8474},"debugMark":{"__isSmartRef__":true,"id":8478},"citrine":{"__isSmartRef__":true,"id":8482},"move":{"__isSmartRef__":true,"id":8486},"performMovement":{"__isSmartRef__":true,"id":8490},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":8494},"zircon":{"__isSmartRef__":true,"id":8498},"emerald":{"__isSmartRef__":true,"id":8502},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":8506}},"8382":{"varMapping":{"__isSmartRef__":true,"id":8383},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8384},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8383":{"this":{"__isSmartRef__":true,"id":6619}},"8384":{"timestamp":{"__isSmartRef__":true,"id":8385},"user":"josi","tags":[]},"8385":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"8386":{"varMapping":{"__isSmartRef__":true,"id":8387},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8392},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8387":{"this":{"__isSmartRef__":true,"id":6619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8388}},"8388":{"$super":{"__isSmartRef__":true,"id":8389}},"8389":{"varMapping":{"__isSmartRef__":true,"id":8390},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8391},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8390":{"obj":{"__isSmartRef__":true,"id":6619},"name":"onMouseDown"},"8391":{},"8392":{"timestamp":{"__isSmartRef__":true,"id":8393},"user":"soergel","tags":[]},"8393":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8394":{"varMapping":{"__isSmartRef__":true,"id":8395},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8396},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8395":{"this":{"__isSmartRef__":true,"id":6619}},"8396":{"timestamp":{"__isSmartRef__":true,"id":8397},"user":"soergel","tags":[]},"8397":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8398":{"varMapping":{"__isSmartRef__":true,"id":8399},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8400},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8399":{"this":{"__isSmartRef__":true,"id":6619}},"8400":{"timestamp":{"__isSmartRef__":true,"id":8401},"user":"josi","tags":["gemtypes"]},"8401":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8402":{"varMapping":{"__isSmartRef__":true,"id":8403},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8404},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8403":{"this":{"__isSmartRef__":true,"id":6619}},"8404":{"timestamp":{"__isSmartRef__":true,"id":8405},"user":"jan.sandbrink","tags":[]},"8405":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8406":{"varMapping":{"__isSmartRef__":true,"id":8407},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8408},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8407":{"this":{"__isSmartRef__":true,"id":6619}},"8408":{"timestamp":{"__isSmartRef__":true,"id":8409},"user":"jan.sandbrink","tags":[]},"8409":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8410":{"varMapping":{"__isSmartRef__":true,"id":8411},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8412},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8411":{"this":{"__isSmartRef__":true,"id":6619}},"8412":{"timestamp":{"__isSmartRef__":true,"id":8413},"user":"josi","tags":["gemtypes"]},"8413":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8414":{"varMapping":{"__isSmartRef__":true,"id":8415},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8416},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8415":{"this":{"__isSmartRef__":true,"id":6619}},"8416":{"timestamp":{"__isSmartRef__":true,"id":8417},"user":"josi","tags":["gemtypes"]},"8417":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8418":{"varMapping":{"__isSmartRef__":true,"id":8419},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8420},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8419":{"this":{"__isSmartRef__":true,"id":6619}},"8420":{"timestamp":{"__isSmartRef__":true,"id":8421},"user":"josi","tags":[]},"8421":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8422":{"varMapping":{"__isSmartRef__":true,"id":8423},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8424},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8423":{"this":{"__isSmartRef__":true,"id":6619}},"8424":{"timestamp":{"__isSmartRef__":true,"id":8425},"user":"josi","tags":[]},"8425":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8426":{"varMapping":{"__isSmartRef__":true,"id":8427},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8428},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8427":{"this":{"__isSmartRef__":true,"id":6619}},"8428":{"timestamp":{"__isSmartRef__":true,"id":8429},"user":"soergel","tags":[]},"8429":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8430":{"varMapping":{"__isSmartRef__":true,"id":8431},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8432},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8431":{"this":{"__isSmartRef__":true,"id":6619}},"8432":{"timestamp":{"__isSmartRef__":true,"id":8433},"user":"soergel","tags":[]},"8433":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8434":{"varMapping":{"__isSmartRef__":true,"id":8435},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8436},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8435":{"this":{"__isSmartRef__":true,"id":6619}},"8436":{"timestamp":{"__isSmartRef__":true,"id":8437},"user":"soergel","tags":[]},"8437":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8438":{"varMapping":{"__isSmartRef__":true,"id":8439},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8440},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8439":{"this":{"__isSmartRef__":true,"id":6619}},"8440":{"timestamp":{"__isSmartRef__":true,"id":8441},"user":"soergel","tags":["debug"]},"8441":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8442":{"varMapping":{"__isSmartRef__":true,"id":8443},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8444},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8443":{"this":{"__isSmartRef__":true,"id":6619}},"8444":{"timestamp":{"__isSmartRef__":true,"id":8445},"user":"soergel","tags":["debug"]},"8445":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8446":{"varMapping":{"__isSmartRef__":true,"id":8447},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8448},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8447":{"this":{"__isSmartRef__":true,"id":6619}},"8448":{"timestamp":{"__isSmartRef__":true,"id":8449},"user":"soergel","tags":[]},"8449":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8450":{"varMapping":{"__isSmartRef__":true,"id":8451},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8452},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8451":{"this":{"__isSmartRef__":true,"id":6619}},"8452":{"timestamp":{"__isSmartRef__":true,"id":8453},"user":"jan.sandbrink","tags":[]},"8453":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8454":{"varMapping":{"__isSmartRef__":true,"id":8455},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8456},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8455":{"this":{"__isSmartRef__":true,"id":6619}},"8456":{"timestamp":{"__isSmartRef__":true,"id":8457},"user":"jan.sandbrink","tags":[]},"8457":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8458":{"varMapping":{"__isSmartRef__":true,"id":8459},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8460},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8459":{"this":{"__isSmartRef__":true,"id":6619}},"8460":{"timestamp":{"__isSmartRef__":true,"id":8461},"user":"jan.sandbrink","tags":[]},"8461":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8462":{"varMapping":{"__isSmartRef__":true,"id":8463},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8464},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8463":{"this":{"__isSmartRef__":true,"id":6619}},"8464":{"timestamp":{"__isSmartRef__":true,"id":8465},"user":"jan.sandbrink","tags":[]},"8465":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8466":{"varMapping":{"__isSmartRef__":true,"id":8467},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8468},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8467":{"this":{"__isSmartRef__":true,"id":6619}},"8468":{"timestamp":{"__isSmartRef__":true,"id":8469},"user":"josi","tags":["gemtypes"]},"8469":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8470":{"varMapping":{"__isSmartRef__":true,"id":8471},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8472},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8471":{"this":{"__isSmartRef__":true,"id":6619}},"8472":{"timestamp":{"__isSmartRef__":true,"id":8473},"user":"josi","tags":["gemtypes"]},"8473":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8474":{"varMapping":{"__isSmartRef__":true,"id":8475},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8476},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8475":{"this":{"__isSmartRef__":true,"id":6619}},"8476":{"timestamp":{"__isSmartRef__":true,"id":8477},"user":"soergel","tags":["debug"]},"8477":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8478":{"varMapping":{"__isSmartRef__":true,"id":8479},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8480},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8479":{"this":{"__isSmartRef__":true,"id":6619}},"8480":{"timestamp":{"__isSmartRef__":true,"id":8481},"user":"soergel","tags":["debug"]},"8481":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8482":{"varMapping":{"__isSmartRef__":true,"id":8483},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":8484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8483":{"this":{"__isSmartRef__":true,"id":6619}},"8484":{"timestamp":{"__isSmartRef__":true,"id":8485},"user":"josi","tags":["gemtypes"]},"8485":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"8486":{"varMapping":{"__isSmartRef__":true,"id":8487},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":8488},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8487":{"this":{"__isSmartRef__":true,"id":6619}},"8488":{"timestamp":{"__isSmartRef__":true,"id":8489},"user":"soergel","tags":[]},"8489":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"8490":{"varMapping":{"__isSmartRef__":true,"id":8491},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8492},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8491":{"this":{"__isSmartRef__":true,"id":6619}},"8492":{"timestamp":{"__isSmartRef__":true,"id":8493},"user":"soergel","tags":[]},"8493":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"8494":{"varMapping":{"__isSmartRef__":true,"id":8495},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":8496},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8495":{"this":{"__isSmartRef__":true,"id":6619}},"8496":{"timestamp":{"__isSmartRef__":true,"id":8497},"user":"soergel","tags":[]},"8497":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"8498":{"varMapping":{"__isSmartRef__":true,"id":8499},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":8500},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8499":{"this":{"__isSmartRef__":true,"id":6619}},"8500":{"timestamp":{"__isSmartRef__":true,"id":8501},"user":"josi","tags":["gemtypes"]},"8501":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"8502":{"varMapping":{"__isSmartRef__":true,"id":8503},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":8504},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8503":{"this":{"__isSmartRef__":true,"id":6619}},"8504":{"timestamp":{"__isSmartRef__":true,"id":8505},"user":"josi","tags":["gemtypes"]},"8505":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"8506":{"varMapping":{"__isSmartRef__":true,"id":8507},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":8508},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8507":{"this":{"__isSmartRef__":true,"id":6619}},"8508":{"timestamp":{"__isSmartRef__":true,"id":8509},"user":"jan.sandbrink","tags":[]},"8509":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"8510":{"become":{"__isSmartRef__":true,"id":8511},"onMouseDown":{"__isSmartRef__":true,"id":8515},"updatePicture":{"__isSmartRef__":true,"id":8523},"ruby":{"__isSmartRef__":true,"id":8527},"switchPositionWith":{"__isSmartRef__":true,"id":8531},"addNeighbour":{"__isSmartRef__":true,"id":8535},"amethyst":{"__isSmartRef__":true,"id":8539},"diopside":{"__isSmartRef__":true,"id":8543},"gemTypes":{"__isSmartRef__":true,"id":8547},"becomeRandomGem":{"__isSmartRef__":true,"id":8551},"mark":{"__isSmartRef__":true,"id":8555},"unmark":{"__isSmartRef__":true,"id":8559},"hasNeighbour":{"__isSmartRef__":true,"id":8563},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8567},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8571},"disappear":{"__isSmartRef__":true,"id":8575},"findStreakStart":{"__isSmartRef__":true,"id":8579},"buildStreak":{"__isSmartRef__":true,"id":8583},"scoreStreak":{"__isSmartRef__":true,"id":8587},"tryToStreak":{"__isSmartRef__":true,"id":8591},"blueDiamond":{"__isSmartRef__":true,"id":8595},"prehnite":{"__isSmartRef__":true,"id":8599},"debugUnmark":{"__isSmartRef__":true,"id":8603},"debugMark":{"__isSmartRef__":true,"id":8607},"citrine":{"__isSmartRef__":true,"id":8611},"move":{"__isSmartRef__":true,"id":8615},"performMovement":{"__isSmartRef__":true,"id":8619},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":8623},"zircon":{"__isSmartRef__":true,"id":8627},"emerald":{"__isSmartRef__":true,"id":8631},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":8635}},"8511":{"varMapping":{"__isSmartRef__":true,"id":8512},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8513},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8512":{"this":{"__isSmartRef__":true,"id":6501}},"8513":{"timestamp":{"__isSmartRef__":true,"id":8514},"user":"josi","tags":[]},"8514":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"8515":{"varMapping":{"__isSmartRef__":true,"id":8516},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8521},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8516":{"this":{"__isSmartRef__":true,"id":6501},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8517}},"8517":{"$super":{"__isSmartRef__":true,"id":8518}},"8518":{"varMapping":{"__isSmartRef__":true,"id":8519},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8520},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8519":{"obj":{"__isSmartRef__":true,"id":6501},"name":"onMouseDown"},"8520":{},"8521":{"timestamp":{"__isSmartRef__":true,"id":8522},"user":"soergel","tags":[]},"8522":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8523":{"varMapping":{"__isSmartRef__":true,"id":8524},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8525},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8524":{"this":{"__isSmartRef__":true,"id":6501}},"8525":{"timestamp":{"__isSmartRef__":true,"id":8526},"user":"soergel","tags":[]},"8526":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8527":{"varMapping":{"__isSmartRef__":true,"id":8528},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8529},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8528":{"this":{"__isSmartRef__":true,"id":6501}},"8529":{"timestamp":{"__isSmartRef__":true,"id":8530},"user":"josi","tags":["gemtypes"]},"8530":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8531":{"varMapping":{"__isSmartRef__":true,"id":8532},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8533},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8532":{"this":{"__isSmartRef__":true,"id":6501}},"8533":{"timestamp":{"__isSmartRef__":true,"id":8534},"user":"jan.sandbrink","tags":[]},"8534":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8535":{"varMapping":{"__isSmartRef__":true,"id":8536},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8537},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8536":{"this":{"__isSmartRef__":true,"id":6501}},"8537":{"timestamp":{"__isSmartRef__":true,"id":8538},"user":"jan.sandbrink","tags":[]},"8538":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8539":{"varMapping":{"__isSmartRef__":true,"id":8540},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8541},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8540":{"this":{"__isSmartRef__":true,"id":6501}},"8541":{"timestamp":{"__isSmartRef__":true,"id":8542},"user":"josi","tags":["gemtypes"]},"8542":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8543":{"varMapping":{"__isSmartRef__":true,"id":8544},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8545},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8544":{"this":{"__isSmartRef__":true,"id":6501}},"8545":{"timestamp":{"__isSmartRef__":true,"id":8546},"user":"josi","tags":["gemtypes"]},"8546":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8547":{"varMapping":{"__isSmartRef__":true,"id":8548},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8549},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8548":{"this":{"__isSmartRef__":true,"id":6501}},"8549":{"timestamp":{"__isSmartRef__":true,"id":8550},"user":"josi","tags":[]},"8550":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8551":{"varMapping":{"__isSmartRef__":true,"id":8552},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8553},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8552":{"this":{"__isSmartRef__":true,"id":6501}},"8553":{"timestamp":{"__isSmartRef__":true,"id":8554},"user":"josi","tags":[]},"8554":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8555":{"varMapping":{"__isSmartRef__":true,"id":8556},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8557},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8556":{"this":{"__isSmartRef__":true,"id":6501}},"8557":{"timestamp":{"__isSmartRef__":true,"id":8558},"user":"soergel","tags":[]},"8558":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8559":{"varMapping":{"__isSmartRef__":true,"id":8560},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8561},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8560":{"this":{"__isSmartRef__":true,"id":6501}},"8561":{"timestamp":{"__isSmartRef__":true,"id":8562},"user":"soergel","tags":[]},"8562":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8563":{"varMapping":{"__isSmartRef__":true,"id":8564},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8565},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8564":{"this":{"__isSmartRef__":true,"id":6501}},"8565":{"timestamp":{"__isSmartRef__":true,"id":8566},"user":"soergel","tags":[]},"8566":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8567":{"varMapping":{"__isSmartRef__":true,"id":8568},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8569},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8568":{"this":{"__isSmartRef__":true,"id":6501}},"8569":{"timestamp":{"__isSmartRef__":true,"id":8570},"user":"soergel","tags":["debug"]},"8570":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8571":{"varMapping":{"__isSmartRef__":true,"id":8572},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8573},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8572":{"this":{"__isSmartRef__":true,"id":6501}},"8573":{"timestamp":{"__isSmartRef__":true,"id":8574},"user":"soergel","tags":["debug"]},"8574":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8575":{"varMapping":{"__isSmartRef__":true,"id":8576},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8577},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8576":{"this":{"__isSmartRef__":true,"id":6501}},"8577":{"timestamp":{"__isSmartRef__":true,"id":8578},"user":"soergel","tags":[]},"8578":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8579":{"varMapping":{"__isSmartRef__":true,"id":8580},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8581},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8580":{"this":{"__isSmartRef__":true,"id":6501}},"8581":{"timestamp":{"__isSmartRef__":true,"id":8582},"user":"jan.sandbrink","tags":[]},"8582":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8583":{"varMapping":{"__isSmartRef__":true,"id":8584},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8585},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8584":{"this":{"__isSmartRef__":true,"id":6501}},"8585":{"timestamp":{"__isSmartRef__":true,"id":8586},"user":"jan.sandbrink","tags":[]},"8586":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8587":{"varMapping":{"__isSmartRef__":true,"id":8588},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8589},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8588":{"this":{"__isSmartRef__":true,"id":6501}},"8589":{"timestamp":{"__isSmartRef__":true,"id":8590},"user":"jan.sandbrink","tags":[]},"8590":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8591":{"varMapping":{"__isSmartRef__":true,"id":8592},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8593},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8592":{"this":{"__isSmartRef__":true,"id":6501}},"8593":{"timestamp":{"__isSmartRef__":true,"id":8594},"user":"jan.sandbrink","tags":[]},"8594":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8595":{"varMapping":{"__isSmartRef__":true,"id":8596},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8597},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8596":{"this":{"__isSmartRef__":true,"id":6501}},"8597":{"timestamp":{"__isSmartRef__":true,"id":8598},"user":"josi","tags":["gemtypes"]},"8598":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8599":{"varMapping":{"__isSmartRef__":true,"id":8600},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8601},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8600":{"this":{"__isSmartRef__":true,"id":6501}},"8601":{"timestamp":{"__isSmartRef__":true,"id":8602},"user":"josi","tags":["gemtypes"]},"8602":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8603":{"varMapping":{"__isSmartRef__":true,"id":8604},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8605},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8604":{"this":{"__isSmartRef__":true,"id":6501}},"8605":{"timestamp":{"__isSmartRef__":true,"id":8606},"user":"soergel","tags":["debug"]},"8606":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8607":{"varMapping":{"__isSmartRef__":true,"id":8608},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8609},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8608":{"this":{"__isSmartRef__":true,"id":6501}},"8609":{"timestamp":{"__isSmartRef__":true,"id":8610},"user":"soergel","tags":["debug"]},"8610":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8611":{"varMapping":{"__isSmartRef__":true,"id":8612},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":8613},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8612":{"this":{"__isSmartRef__":true,"id":6501}},"8613":{"timestamp":{"__isSmartRef__":true,"id":8614},"user":"josi","tags":["gemtypes"]},"8614":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"8615":{"varMapping":{"__isSmartRef__":true,"id":8616},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":8617},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8616":{"this":{"__isSmartRef__":true,"id":6501}},"8617":{"timestamp":{"__isSmartRef__":true,"id":8618},"user":"soergel","tags":[]},"8618":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"8619":{"varMapping":{"__isSmartRef__":true,"id":8620},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8621},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8620":{"this":{"__isSmartRef__":true,"id":6501}},"8621":{"timestamp":{"__isSmartRef__":true,"id":8622},"user":"soergel","tags":[]},"8622":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"8623":{"varMapping":{"__isSmartRef__":true,"id":8624},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":8625},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8624":{"this":{"__isSmartRef__":true,"id":6501}},"8625":{"timestamp":{"__isSmartRef__":true,"id":8626},"user":"soergel","tags":[]},"8626":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"8627":{"varMapping":{"__isSmartRef__":true,"id":8628},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":8629},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8628":{"this":{"__isSmartRef__":true,"id":6501}},"8629":{"timestamp":{"__isSmartRef__":true,"id":8630},"user":"josi","tags":["gemtypes"]},"8630":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"8631":{"varMapping":{"__isSmartRef__":true,"id":8632},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":8633},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8632":{"this":{"__isSmartRef__":true,"id":6501}},"8633":{"timestamp":{"__isSmartRef__":true,"id":8634},"user":"josi","tags":["gemtypes"]},"8634":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"8635":{"varMapping":{"__isSmartRef__":true,"id":8636},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":8637},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8636":{"this":{"__isSmartRef__":true,"id":6501}},"8637":{"timestamp":{"__isSmartRef__":true,"id":8638},"user":"jan.sandbrink","tags":[]},"8638":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"8639":{"become":{"__isSmartRef__":true,"id":8640},"onMouseDown":{"__isSmartRef__":true,"id":8644},"updatePicture":{"__isSmartRef__":true,"id":8652},"ruby":{"__isSmartRef__":true,"id":8656},"switchPositionWith":{"__isSmartRef__":true,"id":8660},"addNeighbour":{"__isSmartRef__":true,"id":8664},"amethyst":{"__isSmartRef__":true,"id":8668},"diopside":{"__isSmartRef__":true,"id":8672},"gemTypes":{"__isSmartRef__":true,"id":8676},"becomeRandomGem":{"__isSmartRef__":true,"id":8680},"mark":{"__isSmartRef__":true,"id":8684},"unmark":{"__isSmartRef__":true,"id":8688},"hasNeighbour":{"__isSmartRef__":true,"id":8692},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8696},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8700},"disappear":{"__isSmartRef__":true,"id":8704},"findStreakStart":{"__isSmartRef__":true,"id":8708},"buildStreak":{"__isSmartRef__":true,"id":8712},"scoreStreak":{"__isSmartRef__":true,"id":8716},"tryToStreak":{"__isSmartRef__":true,"id":8720},"blueDiamond":{"__isSmartRef__":true,"id":8724},"prehnite":{"__isSmartRef__":true,"id":8728},"debugUnmark":{"__isSmartRef__":true,"id":8732},"debugMark":{"__isSmartRef__":true,"id":8736},"citrine":{"__isSmartRef__":true,"id":8740},"move":{"__isSmartRef__":true,"id":8744},"performMovement":{"__isSmartRef__":true,"id":8748},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":8752},"zircon":{"__isSmartRef__":true,"id":8756},"emerald":{"__isSmartRef__":true,"id":8760},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":8764}},"8640":{"varMapping":{"__isSmartRef__":true,"id":8641},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8642},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8641":{"this":{"__isSmartRef__":true,"id":6409}},"8642":{"timestamp":{"__isSmartRef__":true,"id":8643},"user":"josi","tags":[]},"8643":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"8644":{"varMapping":{"__isSmartRef__":true,"id":8645},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8650},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8645":{"this":{"__isSmartRef__":true,"id":6409},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8646}},"8646":{"$super":{"__isSmartRef__":true,"id":8647}},"8647":{"varMapping":{"__isSmartRef__":true,"id":8648},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8649},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8648":{"obj":{"__isSmartRef__":true,"id":6409},"name":"onMouseDown"},"8649":{},"8650":{"timestamp":{"__isSmartRef__":true,"id":8651},"user":"soergel","tags":[]},"8651":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8652":{"varMapping":{"__isSmartRef__":true,"id":8653},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8654},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8653":{"this":{"__isSmartRef__":true,"id":6409}},"8654":{"timestamp":{"__isSmartRef__":true,"id":8655},"user":"soergel","tags":[]},"8655":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8656":{"varMapping":{"__isSmartRef__":true,"id":8657},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8658},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8657":{"this":{"__isSmartRef__":true,"id":6409}},"8658":{"timestamp":{"__isSmartRef__":true,"id":8659},"user":"josi","tags":["gemtypes"]},"8659":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8660":{"varMapping":{"__isSmartRef__":true,"id":8661},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8662},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8661":{"this":{"__isSmartRef__":true,"id":6409}},"8662":{"timestamp":{"__isSmartRef__":true,"id":8663},"user":"jan.sandbrink","tags":[]},"8663":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8664":{"varMapping":{"__isSmartRef__":true,"id":8665},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8666},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8665":{"this":{"__isSmartRef__":true,"id":6409}},"8666":{"timestamp":{"__isSmartRef__":true,"id":8667},"user":"jan.sandbrink","tags":[]},"8667":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8668":{"varMapping":{"__isSmartRef__":true,"id":8669},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8670},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8669":{"this":{"__isSmartRef__":true,"id":6409}},"8670":{"timestamp":{"__isSmartRef__":true,"id":8671},"user":"josi","tags":["gemtypes"]},"8671":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8672":{"varMapping":{"__isSmartRef__":true,"id":8673},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8674},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8673":{"this":{"__isSmartRef__":true,"id":6409}},"8674":{"timestamp":{"__isSmartRef__":true,"id":8675},"user":"josi","tags":["gemtypes"]},"8675":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8676":{"varMapping":{"__isSmartRef__":true,"id":8677},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8678},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8677":{"this":{"__isSmartRef__":true,"id":6409}},"8678":{"timestamp":{"__isSmartRef__":true,"id":8679},"user":"josi","tags":[]},"8679":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8680":{"varMapping":{"__isSmartRef__":true,"id":8681},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8682},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8681":{"this":{"__isSmartRef__":true,"id":6409}},"8682":{"timestamp":{"__isSmartRef__":true,"id":8683},"user":"josi","tags":[]},"8683":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8684":{"varMapping":{"__isSmartRef__":true,"id":8685},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8686},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8685":{"this":{"__isSmartRef__":true,"id":6409}},"8686":{"timestamp":{"__isSmartRef__":true,"id":8687},"user":"soergel","tags":[]},"8687":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8688":{"varMapping":{"__isSmartRef__":true,"id":8689},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8690},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8689":{"this":{"__isSmartRef__":true,"id":6409}},"8690":{"timestamp":{"__isSmartRef__":true,"id":8691},"user":"soergel","tags":[]},"8691":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8692":{"varMapping":{"__isSmartRef__":true,"id":8693},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8694},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8693":{"this":{"__isSmartRef__":true,"id":6409}},"8694":{"timestamp":{"__isSmartRef__":true,"id":8695},"user":"soergel","tags":[]},"8695":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8696":{"varMapping":{"__isSmartRef__":true,"id":8697},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8698},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8697":{"this":{"__isSmartRef__":true,"id":6409}},"8698":{"timestamp":{"__isSmartRef__":true,"id":8699},"user":"soergel","tags":["debug"]},"8699":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8700":{"varMapping":{"__isSmartRef__":true,"id":8701},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8702},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8701":{"this":{"__isSmartRef__":true,"id":6409}},"8702":{"timestamp":{"__isSmartRef__":true,"id":8703},"user":"soergel","tags":["debug"]},"8703":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8704":{"varMapping":{"__isSmartRef__":true,"id":8705},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8706},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8705":{"this":{"__isSmartRef__":true,"id":6409}},"8706":{"timestamp":{"__isSmartRef__":true,"id":8707},"user":"soergel","tags":[]},"8707":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8708":{"varMapping":{"__isSmartRef__":true,"id":8709},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8710},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8709":{"this":{"__isSmartRef__":true,"id":6409}},"8710":{"timestamp":{"__isSmartRef__":true,"id":8711},"user":"jan.sandbrink","tags":[]},"8711":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8712":{"varMapping":{"__isSmartRef__":true,"id":8713},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8714},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8713":{"this":{"__isSmartRef__":true,"id":6409}},"8714":{"timestamp":{"__isSmartRef__":true,"id":8715},"user":"jan.sandbrink","tags":[]},"8715":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8716":{"varMapping":{"__isSmartRef__":true,"id":8717},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8718},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8717":{"this":{"__isSmartRef__":true,"id":6409}},"8718":{"timestamp":{"__isSmartRef__":true,"id":8719},"user":"jan.sandbrink","tags":[]},"8719":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8720":{"varMapping":{"__isSmartRef__":true,"id":8721},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8722},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8721":{"this":{"__isSmartRef__":true,"id":6409}},"8722":{"timestamp":{"__isSmartRef__":true,"id":8723},"user":"jan.sandbrink","tags":[]},"8723":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8724":{"varMapping":{"__isSmartRef__":true,"id":8725},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8726},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8725":{"this":{"__isSmartRef__":true,"id":6409}},"8726":{"timestamp":{"__isSmartRef__":true,"id":8727},"user":"josi","tags":["gemtypes"]},"8727":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8728":{"varMapping":{"__isSmartRef__":true,"id":8729},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8730},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8729":{"this":{"__isSmartRef__":true,"id":6409}},"8730":{"timestamp":{"__isSmartRef__":true,"id":8731},"user":"josi","tags":["gemtypes"]},"8731":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8732":{"varMapping":{"__isSmartRef__":true,"id":8733},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8734},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8733":{"this":{"__isSmartRef__":true,"id":6409}},"8734":{"timestamp":{"__isSmartRef__":true,"id":8735},"user":"soergel","tags":["debug"]},"8735":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8736":{"varMapping":{"__isSmartRef__":true,"id":8737},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8738},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8737":{"this":{"__isSmartRef__":true,"id":6409}},"8738":{"timestamp":{"__isSmartRef__":true,"id":8739},"user":"soergel","tags":["debug"]},"8739":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8740":{"varMapping":{"__isSmartRef__":true,"id":8741},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":8742},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8741":{"this":{"__isSmartRef__":true,"id":6409}},"8742":{"timestamp":{"__isSmartRef__":true,"id":8743},"user":"josi","tags":["gemtypes"]},"8743":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"8744":{"varMapping":{"__isSmartRef__":true,"id":8745},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":8746},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8745":{"this":{"__isSmartRef__":true,"id":6409}},"8746":{"timestamp":{"__isSmartRef__":true,"id":8747},"user":"soergel","tags":[]},"8747":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"8748":{"varMapping":{"__isSmartRef__":true,"id":8749},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8750},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8749":{"this":{"__isSmartRef__":true,"id":6409}},"8750":{"timestamp":{"__isSmartRef__":true,"id":8751},"user":"soergel","tags":[]},"8751":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"8752":{"varMapping":{"__isSmartRef__":true,"id":8753},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":8754},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8753":{"this":{"__isSmartRef__":true,"id":6409}},"8754":{"timestamp":{"__isSmartRef__":true,"id":8755},"user":"soergel","tags":[]},"8755":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"8756":{"varMapping":{"__isSmartRef__":true,"id":8757},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":8758},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8757":{"this":{"__isSmartRef__":true,"id":6409}},"8758":{"timestamp":{"__isSmartRef__":true,"id":8759},"user":"josi","tags":["gemtypes"]},"8759":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"8760":{"varMapping":{"__isSmartRef__":true,"id":8761},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":8762},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8761":{"this":{"__isSmartRef__":true,"id":6409}},"8762":{"timestamp":{"__isSmartRef__":true,"id":8763},"user":"josi","tags":["gemtypes"]},"8763":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"8764":{"varMapping":{"__isSmartRef__":true,"id":8765},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":8766},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8765":{"this":{"__isSmartRef__":true,"id":6409}},"8766":{"timestamp":{"__isSmartRef__":true,"id":8767},"user":"jan.sandbrink","tags":[]},"8767":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"8768":{"x":247.0184710197444,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"8769":{"become":{"__isSmartRef__":true,"id":8770},"onMouseDown":{"__isSmartRef__":true,"id":8774},"updatePicture":{"__isSmartRef__":true,"id":8782},"ruby":{"__isSmartRef__":true,"id":8786},"switchPositionWith":{"__isSmartRef__":true,"id":8790},"addNeighbour":{"__isSmartRef__":true,"id":8794},"amethyst":{"__isSmartRef__":true,"id":8798},"diopside":{"__isSmartRef__":true,"id":8802},"gemTypes":{"__isSmartRef__":true,"id":8806},"becomeRandomGem":{"__isSmartRef__":true,"id":8810},"mark":{"__isSmartRef__":true,"id":8814},"unmark":{"__isSmartRef__":true,"id":8818},"hasNeighbour":{"__isSmartRef__":true,"id":8822},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8826},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8830},"disappear":{"__isSmartRef__":true,"id":8834},"findStreakStart":{"__isSmartRef__":true,"id":8838},"buildStreak":{"__isSmartRef__":true,"id":8842},"scoreStreak":{"__isSmartRef__":true,"id":8846},"tryToStreak":{"__isSmartRef__":true,"id":8850},"blueDiamond":{"__isSmartRef__":true,"id":8854},"prehnite":{"__isSmartRef__":true,"id":8858},"debugUnmark":{"__isSmartRef__":true,"id":8862},"debugMark":{"__isSmartRef__":true,"id":8866},"citrine":{"__isSmartRef__":true,"id":8870},"move":{"__isSmartRef__":true,"id":8874},"performMovement":{"__isSmartRef__":true,"id":8878},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":8882},"zircon":{"__isSmartRef__":true,"id":8886},"emerald":{"__isSmartRef__":true,"id":8890},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":8894}},"8770":{"varMapping":{"__isSmartRef__":true,"id":8771},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8772},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8771":{"this":{"__isSmartRef__":true,"id":6317}},"8772":{"timestamp":{"__isSmartRef__":true,"id":8773},"user":"josi","tags":[]},"8773":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"8774":{"varMapping":{"__isSmartRef__":true,"id":8775},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8780},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8775":{"this":{"__isSmartRef__":true,"id":6317},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8776}},"8776":{"$super":{"__isSmartRef__":true,"id":8777}},"8777":{"varMapping":{"__isSmartRef__":true,"id":8778},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8779},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8778":{"obj":{"__isSmartRef__":true,"id":6317},"name":"onMouseDown"},"8779":{},"8780":{"timestamp":{"__isSmartRef__":true,"id":8781},"user":"soergel","tags":[]},"8781":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8782":{"varMapping":{"__isSmartRef__":true,"id":8783},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8784},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8783":{"this":{"__isSmartRef__":true,"id":6317}},"8784":{"timestamp":{"__isSmartRef__":true,"id":8785},"user":"soergel","tags":[]},"8785":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8786":{"varMapping":{"__isSmartRef__":true,"id":8787},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8788},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8787":{"this":{"__isSmartRef__":true,"id":6317}},"8788":{"timestamp":{"__isSmartRef__":true,"id":8789},"user":"josi","tags":["gemtypes"]},"8789":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8790":{"varMapping":{"__isSmartRef__":true,"id":8791},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8792},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8791":{"this":{"__isSmartRef__":true,"id":6317}},"8792":{"timestamp":{"__isSmartRef__":true,"id":8793},"user":"jan.sandbrink","tags":[]},"8793":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8794":{"varMapping":{"__isSmartRef__":true,"id":8795},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8796},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8795":{"this":{"__isSmartRef__":true,"id":6317}},"8796":{"timestamp":{"__isSmartRef__":true,"id":8797},"user":"jan.sandbrink","tags":[]},"8797":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8798":{"varMapping":{"__isSmartRef__":true,"id":8799},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8800},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8799":{"this":{"__isSmartRef__":true,"id":6317}},"8800":{"timestamp":{"__isSmartRef__":true,"id":8801},"user":"josi","tags":["gemtypes"]},"8801":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8802":{"varMapping":{"__isSmartRef__":true,"id":8803},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8804},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8803":{"this":{"__isSmartRef__":true,"id":6317}},"8804":{"timestamp":{"__isSmartRef__":true,"id":8805},"user":"josi","tags":["gemtypes"]},"8805":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8806":{"varMapping":{"__isSmartRef__":true,"id":8807},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8808},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8807":{"this":{"__isSmartRef__":true,"id":6317}},"8808":{"timestamp":{"__isSmartRef__":true,"id":8809},"user":"josi","tags":[]},"8809":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8810":{"varMapping":{"__isSmartRef__":true,"id":8811},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8812},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8811":{"this":{"__isSmartRef__":true,"id":6317}},"8812":{"timestamp":{"__isSmartRef__":true,"id":8813},"user":"josi","tags":[]},"8813":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8814":{"varMapping":{"__isSmartRef__":true,"id":8815},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8816},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8815":{"this":{"__isSmartRef__":true,"id":6317}},"8816":{"timestamp":{"__isSmartRef__":true,"id":8817},"user":"soergel","tags":[]},"8817":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8818":{"varMapping":{"__isSmartRef__":true,"id":8819},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8820},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8819":{"this":{"__isSmartRef__":true,"id":6317}},"8820":{"timestamp":{"__isSmartRef__":true,"id":8821},"user":"soergel","tags":[]},"8821":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8822":{"varMapping":{"__isSmartRef__":true,"id":8823},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8824},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8823":{"this":{"__isSmartRef__":true,"id":6317}},"8824":{"timestamp":{"__isSmartRef__":true,"id":8825},"user":"soergel","tags":[]},"8825":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8826":{"varMapping":{"__isSmartRef__":true,"id":8827},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8828},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8827":{"this":{"__isSmartRef__":true,"id":6317}},"8828":{"timestamp":{"__isSmartRef__":true,"id":8829},"user":"soergel","tags":["debug"]},"8829":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8830":{"varMapping":{"__isSmartRef__":true,"id":8831},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8832},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8831":{"this":{"__isSmartRef__":true,"id":6317}},"8832":{"timestamp":{"__isSmartRef__":true,"id":8833},"user":"soergel","tags":["debug"]},"8833":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8834":{"varMapping":{"__isSmartRef__":true,"id":8835},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8836},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8835":{"this":{"__isSmartRef__":true,"id":6317}},"8836":{"timestamp":{"__isSmartRef__":true,"id":8837},"user":"soergel","tags":[]},"8837":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8838":{"varMapping":{"__isSmartRef__":true,"id":8839},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8840},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8839":{"this":{"__isSmartRef__":true,"id":6317}},"8840":{"timestamp":{"__isSmartRef__":true,"id":8841},"user":"jan.sandbrink","tags":[]},"8841":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8842":{"varMapping":{"__isSmartRef__":true,"id":8843},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8844},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8843":{"this":{"__isSmartRef__":true,"id":6317}},"8844":{"timestamp":{"__isSmartRef__":true,"id":8845},"user":"jan.sandbrink","tags":[]},"8845":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8846":{"varMapping":{"__isSmartRef__":true,"id":8847},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8848},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8847":{"this":{"__isSmartRef__":true,"id":6317}},"8848":{"timestamp":{"__isSmartRef__":true,"id":8849},"user":"jan.sandbrink","tags":[]},"8849":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8850":{"varMapping":{"__isSmartRef__":true,"id":8851},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8852},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8851":{"this":{"__isSmartRef__":true,"id":6317}},"8852":{"timestamp":{"__isSmartRef__":true,"id":8853},"user":"jan.sandbrink","tags":[]},"8853":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8854":{"varMapping":{"__isSmartRef__":true,"id":8855},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8856},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8855":{"this":{"__isSmartRef__":true,"id":6317}},"8856":{"timestamp":{"__isSmartRef__":true,"id":8857},"user":"josi","tags":["gemtypes"]},"8857":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8858":{"varMapping":{"__isSmartRef__":true,"id":8859},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8860},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8859":{"this":{"__isSmartRef__":true,"id":6317}},"8860":{"timestamp":{"__isSmartRef__":true,"id":8861},"user":"josi","tags":["gemtypes"]},"8861":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8862":{"varMapping":{"__isSmartRef__":true,"id":8863},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8864},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8863":{"this":{"__isSmartRef__":true,"id":6317}},"8864":{"timestamp":{"__isSmartRef__":true,"id":8865},"user":"soergel","tags":["debug"]},"8865":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8866":{"varMapping":{"__isSmartRef__":true,"id":8867},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8868},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8867":{"this":{"__isSmartRef__":true,"id":6317}},"8868":{"timestamp":{"__isSmartRef__":true,"id":8869},"user":"soergel","tags":["debug"]},"8869":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8870":{"varMapping":{"__isSmartRef__":true,"id":8871},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":8872},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8871":{"this":{"__isSmartRef__":true,"id":6317}},"8872":{"timestamp":{"__isSmartRef__":true,"id":8873},"user":"josi","tags":["gemtypes"]},"8873":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"8874":{"varMapping":{"__isSmartRef__":true,"id":8875},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":8876},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8875":{"this":{"__isSmartRef__":true,"id":6317}},"8876":{"timestamp":{"__isSmartRef__":true,"id":8877},"user":"soergel","tags":[]},"8877":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"8878":{"varMapping":{"__isSmartRef__":true,"id":8879},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":8880},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8879":{"this":{"__isSmartRef__":true,"id":6317}},"8880":{"timestamp":{"__isSmartRef__":true,"id":8881},"user":"soergel","tags":[]},"8881":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"8882":{"varMapping":{"__isSmartRef__":true,"id":8883},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":8884},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8883":{"this":{"__isSmartRef__":true,"id":6317}},"8884":{"timestamp":{"__isSmartRef__":true,"id":8885},"user":"soergel","tags":[]},"8885":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"8886":{"varMapping":{"__isSmartRef__":true,"id":8887},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":8888},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8887":{"this":{"__isSmartRef__":true,"id":6317}},"8888":{"timestamp":{"__isSmartRef__":true,"id":8889},"user":"josi","tags":["gemtypes"]},"8889":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"8890":{"varMapping":{"__isSmartRef__":true,"id":8891},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":8892},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8891":{"this":{"__isSmartRef__":true,"id":6317}},"8892":{"timestamp":{"__isSmartRef__":true,"id":8893},"user":"josi","tags":["gemtypes"]},"8893":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"8894":{"varMapping":{"__isSmartRef__":true,"id":8895},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":8896},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8895":{"this":{"__isSmartRef__":true,"id":6317}},"8896":{"timestamp":{"__isSmartRef__":true,"id":8897},"user":"jan.sandbrink","tags":[]},"8897":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"8898":{"become":{"__isSmartRef__":true,"id":8899},"onMouseDown":{"__isSmartRef__":true,"id":8903},"updatePicture":{"__isSmartRef__":true,"id":8911},"ruby":{"__isSmartRef__":true,"id":8915},"switchPositionWith":{"__isSmartRef__":true,"id":8919},"addNeighbour":{"__isSmartRef__":true,"id":8923},"amethyst":{"__isSmartRef__":true,"id":8927},"diopside":{"__isSmartRef__":true,"id":8931},"gemTypes":{"__isSmartRef__":true,"id":8935},"becomeRandomGem":{"__isSmartRef__":true,"id":8939},"mark":{"__isSmartRef__":true,"id":8943},"unmark":{"__isSmartRef__":true,"id":8947},"hasNeighbour":{"__isSmartRef__":true,"id":8951},"debugMarkNeighbours":{"__isSmartRef__":true,"id":8955},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":8959},"disappear":{"__isSmartRef__":true,"id":8963},"findStreakStart":{"__isSmartRef__":true,"id":8967},"buildStreak":{"__isSmartRef__":true,"id":8971},"scoreStreak":{"__isSmartRef__":true,"id":8975},"tryToStreak":{"__isSmartRef__":true,"id":8979},"blueDiamond":{"__isSmartRef__":true,"id":8983},"prehnite":{"__isSmartRef__":true,"id":8987},"debugUnmark":{"__isSmartRef__":true,"id":8991},"debugMark":{"__isSmartRef__":true,"id":8995},"citrine":{"__isSmartRef__":true,"id":8999},"move":{"__isSmartRef__":true,"id":9003},"performMovement":{"__isSmartRef__":true,"id":9007},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9011},"zircon":{"__isSmartRef__":true,"id":9015},"emerald":{"__isSmartRef__":true,"id":9019},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9023}},"8899":{"varMapping":{"__isSmartRef__":true,"id":8900},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8901},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8900":{"this":{"__isSmartRef__":true,"id":6199}},"8901":{"timestamp":{"__isSmartRef__":true,"id":8902},"user":"josi","tags":[]},"8902":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"8903":{"varMapping":{"__isSmartRef__":true,"id":8904},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":8909},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8904":{"this":{"__isSmartRef__":true,"id":6199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":8905}},"8905":{"$super":{"__isSmartRef__":true,"id":8906}},"8906":{"varMapping":{"__isSmartRef__":true,"id":8907},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":8908},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8907":{"obj":{"__isSmartRef__":true,"id":6199},"name":"onMouseDown"},"8908":{},"8909":{"timestamp":{"__isSmartRef__":true,"id":8910},"user":"soergel","tags":[]},"8910":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"8911":{"varMapping":{"__isSmartRef__":true,"id":8912},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":8913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8912":{"this":{"__isSmartRef__":true,"id":6199}},"8913":{"timestamp":{"__isSmartRef__":true,"id":8914},"user":"soergel","tags":[]},"8914":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"8915":{"varMapping":{"__isSmartRef__":true,"id":8916},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":8917},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8916":{"this":{"__isSmartRef__":true,"id":6199}},"8917":{"timestamp":{"__isSmartRef__":true,"id":8918},"user":"josi","tags":["gemtypes"]},"8918":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"8919":{"varMapping":{"__isSmartRef__":true,"id":8920},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":8921},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8920":{"this":{"__isSmartRef__":true,"id":6199}},"8921":{"timestamp":{"__isSmartRef__":true,"id":8922},"user":"jan.sandbrink","tags":[]},"8922":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"8923":{"varMapping":{"__isSmartRef__":true,"id":8924},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8925},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8924":{"this":{"__isSmartRef__":true,"id":6199}},"8925":{"timestamp":{"__isSmartRef__":true,"id":8926},"user":"jan.sandbrink","tags":[]},"8926":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"8927":{"varMapping":{"__isSmartRef__":true,"id":8928},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":8929},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8928":{"this":{"__isSmartRef__":true,"id":6199}},"8929":{"timestamp":{"__isSmartRef__":true,"id":8930},"user":"josi","tags":["gemtypes"]},"8930":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"8931":{"varMapping":{"__isSmartRef__":true,"id":8932},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":8933},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8932":{"this":{"__isSmartRef__":true,"id":6199}},"8933":{"timestamp":{"__isSmartRef__":true,"id":8934},"user":"josi","tags":["gemtypes"]},"8934":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"8935":{"varMapping":{"__isSmartRef__":true,"id":8936},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":8937},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8936":{"this":{"__isSmartRef__":true,"id":6199}},"8937":{"timestamp":{"__isSmartRef__":true,"id":8938},"user":"josi","tags":[]},"8938":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"8939":{"varMapping":{"__isSmartRef__":true,"id":8940},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":8941},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8940":{"this":{"__isSmartRef__":true,"id":6199}},"8941":{"timestamp":{"__isSmartRef__":true,"id":8942},"user":"josi","tags":[]},"8942":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"8943":{"varMapping":{"__isSmartRef__":true,"id":8944},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":8945},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8944":{"this":{"__isSmartRef__":true,"id":6199}},"8945":{"timestamp":{"__isSmartRef__":true,"id":8946},"user":"soergel","tags":[]},"8946":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"8947":{"varMapping":{"__isSmartRef__":true,"id":8948},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":8949},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8948":{"this":{"__isSmartRef__":true,"id":6199}},"8949":{"timestamp":{"__isSmartRef__":true,"id":8950},"user":"soergel","tags":[]},"8950":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"8951":{"varMapping":{"__isSmartRef__":true,"id":8952},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":8953},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8952":{"this":{"__isSmartRef__":true,"id":6199}},"8953":{"timestamp":{"__isSmartRef__":true,"id":8954},"user":"soergel","tags":[]},"8954":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"8955":{"varMapping":{"__isSmartRef__":true,"id":8956},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8957},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8956":{"this":{"__isSmartRef__":true,"id":6199}},"8957":{"timestamp":{"__isSmartRef__":true,"id":8958},"user":"soergel","tags":["debug"]},"8958":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"8959":{"varMapping":{"__isSmartRef__":true,"id":8960},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":8961},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8960":{"this":{"__isSmartRef__":true,"id":6199}},"8961":{"timestamp":{"__isSmartRef__":true,"id":8962},"user":"soergel","tags":["debug"]},"8962":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"8963":{"varMapping":{"__isSmartRef__":true,"id":8964},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8965},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8964":{"this":{"__isSmartRef__":true,"id":6199}},"8965":{"timestamp":{"__isSmartRef__":true,"id":8966},"user":"soergel","tags":[]},"8966":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"8967":{"varMapping":{"__isSmartRef__":true,"id":8968},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8969},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8968":{"this":{"__isSmartRef__":true,"id":6199}},"8969":{"timestamp":{"__isSmartRef__":true,"id":8970},"user":"jan.sandbrink","tags":[]},"8970":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"8971":{"varMapping":{"__isSmartRef__":true,"id":8972},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":8973},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8972":{"this":{"__isSmartRef__":true,"id":6199}},"8973":{"timestamp":{"__isSmartRef__":true,"id":8974},"user":"jan.sandbrink","tags":[]},"8974":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"8975":{"varMapping":{"__isSmartRef__":true,"id":8976},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":8977},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8976":{"this":{"__isSmartRef__":true,"id":6199}},"8977":{"timestamp":{"__isSmartRef__":true,"id":8978},"user":"jan.sandbrink","tags":[]},"8978":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"8979":{"varMapping":{"__isSmartRef__":true,"id":8980},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":8981},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8980":{"this":{"__isSmartRef__":true,"id":6199}},"8981":{"timestamp":{"__isSmartRef__":true,"id":8982},"user":"jan.sandbrink","tags":[]},"8982":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"8983":{"varMapping":{"__isSmartRef__":true,"id":8984},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":8985},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8984":{"this":{"__isSmartRef__":true,"id":6199}},"8985":{"timestamp":{"__isSmartRef__":true,"id":8986},"user":"josi","tags":["gemtypes"]},"8986":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"8987":{"varMapping":{"__isSmartRef__":true,"id":8988},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":8989},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8988":{"this":{"__isSmartRef__":true,"id":6199}},"8989":{"timestamp":{"__isSmartRef__":true,"id":8990},"user":"josi","tags":["gemtypes"]},"8990":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"8991":{"varMapping":{"__isSmartRef__":true,"id":8992},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":8993},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8992":{"this":{"__isSmartRef__":true,"id":6199}},"8993":{"timestamp":{"__isSmartRef__":true,"id":8994},"user":"soergel","tags":["debug"]},"8994":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"8995":{"varMapping":{"__isSmartRef__":true,"id":8996},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":8997},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"8996":{"this":{"__isSmartRef__":true,"id":6199}},"8997":{"timestamp":{"__isSmartRef__":true,"id":8998},"user":"soergel","tags":["debug"]},"8998":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"8999":{"varMapping":{"__isSmartRef__":true,"id":9000},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9001},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9000":{"this":{"__isSmartRef__":true,"id":6199}},"9001":{"timestamp":{"__isSmartRef__":true,"id":9002},"user":"josi","tags":["gemtypes"]},"9002":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9003":{"varMapping":{"__isSmartRef__":true,"id":9004},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9005},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9004":{"this":{"__isSmartRef__":true,"id":6199}},"9005":{"timestamp":{"__isSmartRef__":true,"id":9006},"user":"soergel","tags":[]},"9006":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9007":{"varMapping":{"__isSmartRef__":true,"id":9008},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9009},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9008":{"this":{"__isSmartRef__":true,"id":6199}},"9009":{"timestamp":{"__isSmartRef__":true,"id":9010},"user":"soergel","tags":[]},"9010":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9011":{"varMapping":{"__isSmartRef__":true,"id":9012},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9013},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9012":{"this":{"__isSmartRef__":true,"id":6199}},"9013":{"timestamp":{"__isSmartRef__":true,"id":9014},"user":"soergel","tags":[]},"9014":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9015":{"varMapping":{"__isSmartRef__":true,"id":9016},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9017},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9016":{"this":{"__isSmartRef__":true,"id":6199}},"9017":{"timestamp":{"__isSmartRef__":true,"id":9018},"user":"josi","tags":["gemtypes"]},"9018":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9019":{"varMapping":{"__isSmartRef__":true,"id":9020},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9021},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9020":{"this":{"__isSmartRef__":true,"id":6199}},"9021":{"timestamp":{"__isSmartRef__":true,"id":9022},"user":"josi","tags":["gemtypes"]},"9022":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9023":{"varMapping":{"__isSmartRef__":true,"id":9024},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9025},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9024":{"this":{"__isSmartRef__":true,"id":6199}},"9025":{"timestamp":{"__isSmartRef__":true,"id":9026},"user":"jan.sandbrink","tags":[]},"9026":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9027":{"x":148.61108261184663,"y":308.17423717570466,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9028":{"become":{"__isSmartRef__":true,"id":9029},"onMouseDown":{"__isSmartRef__":true,"id":9033},"updatePicture":{"__isSmartRef__":true,"id":9041},"ruby":{"__isSmartRef__":true,"id":9045},"switchPositionWith":{"__isSmartRef__":true,"id":9049},"addNeighbour":{"__isSmartRef__":true,"id":9053},"amethyst":{"__isSmartRef__":true,"id":9057},"diopside":{"__isSmartRef__":true,"id":9061},"gemTypes":{"__isSmartRef__":true,"id":9065},"becomeRandomGem":{"__isSmartRef__":true,"id":9069},"mark":{"__isSmartRef__":true,"id":9073},"unmark":{"__isSmartRef__":true,"id":9077},"hasNeighbour":{"__isSmartRef__":true,"id":9081},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9085},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9089},"disappear":{"__isSmartRef__":true,"id":9093},"findStreakStart":{"__isSmartRef__":true,"id":9097},"buildStreak":{"__isSmartRef__":true,"id":9101},"scoreStreak":{"__isSmartRef__":true,"id":9105},"tryToStreak":{"__isSmartRef__":true,"id":9109},"blueDiamond":{"__isSmartRef__":true,"id":9113},"prehnite":{"__isSmartRef__":true,"id":9117},"debugUnmark":{"__isSmartRef__":true,"id":9121},"debugMark":{"__isSmartRef__":true,"id":9125},"citrine":{"__isSmartRef__":true,"id":9129},"move":{"__isSmartRef__":true,"id":9133},"performMovement":{"__isSmartRef__":true,"id":9137},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9141},"zircon":{"__isSmartRef__":true,"id":9145},"emerald":{"__isSmartRef__":true,"id":9149},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9153}},"9029":{"varMapping":{"__isSmartRef__":true,"id":9030},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9031},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9030":{"this":{"__isSmartRef__":true,"id":6067}},"9031":{"timestamp":{"__isSmartRef__":true,"id":9032},"user":"josi","tags":[]},"9032":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9033":{"varMapping":{"__isSmartRef__":true,"id":9034},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9039},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9034":{"this":{"__isSmartRef__":true,"id":6067},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9035}},"9035":{"$super":{"__isSmartRef__":true,"id":9036}},"9036":{"varMapping":{"__isSmartRef__":true,"id":9037},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9038},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9037":{"obj":{"__isSmartRef__":true,"id":6067},"name":"onMouseDown"},"9038":{},"9039":{"timestamp":{"__isSmartRef__":true,"id":9040},"user":"soergel","tags":[]},"9040":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9041":{"varMapping":{"__isSmartRef__":true,"id":9042},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9043},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9042":{"this":{"__isSmartRef__":true,"id":6067}},"9043":{"timestamp":{"__isSmartRef__":true,"id":9044},"user":"soergel","tags":[]},"9044":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9045":{"varMapping":{"__isSmartRef__":true,"id":9046},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9047},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9046":{"this":{"__isSmartRef__":true,"id":6067}},"9047":{"timestamp":{"__isSmartRef__":true,"id":9048},"user":"josi","tags":["gemtypes"]},"9048":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9049":{"varMapping":{"__isSmartRef__":true,"id":9050},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9051},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9050":{"this":{"__isSmartRef__":true,"id":6067}},"9051":{"timestamp":{"__isSmartRef__":true,"id":9052},"user":"jan.sandbrink","tags":[]},"9052":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9053":{"varMapping":{"__isSmartRef__":true,"id":9054},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9055},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9054":{"this":{"__isSmartRef__":true,"id":6067}},"9055":{"timestamp":{"__isSmartRef__":true,"id":9056},"user":"jan.sandbrink","tags":[]},"9056":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9057":{"varMapping":{"__isSmartRef__":true,"id":9058},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9059},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9058":{"this":{"__isSmartRef__":true,"id":6067}},"9059":{"timestamp":{"__isSmartRef__":true,"id":9060},"user":"josi","tags":["gemtypes"]},"9060":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9061":{"varMapping":{"__isSmartRef__":true,"id":9062},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9063},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9062":{"this":{"__isSmartRef__":true,"id":6067}},"9063":{"timestamp":{"__isSmartRef__":true,"id":9064},"user":"josi","tags":["gemtypes"]},"9064":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9065":{"varMapping":{"__isSmartRef__":true,"id":9066},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9067},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9066":{"this":{"__isSmartRef__":true,"id":6067}},"9067":{"timestamp":{"__isSmartRef__":true,"id":9068},"user":"josi","tags":[]},"9068":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9069":{"varMapping":{"__isSmartRef__":true,"id":9070},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9071},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9070":{"this":{"__isSmartRef__":true,"id":6067}},"9071":{"timestamp":{"__isSmartRef__":true,"id":9072},"user":"josi","tags":[]},"9072":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9073":{"varMapping":{"__isSmartRef__":true,"id":9074},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9075},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9074":{"this":{"__isSmartRef__":true,"id":6067}},"9075":{"timestamp":{"__isSmartRef__":true,"id":9076},"user":"soergel","tags":[]},"9076":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9077":{"varMapping":{"__isSmartRef__":true,"id":9078},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9079},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9078":{"this":{"__isSmartRef__":true,"id":6067}},"9079":{"timestamp":{"__isSmartRef__":true,"id":9080},"user":"soergel","tags":[]},"9080":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9081":{"varMapping":{"__isSmartRef__":true,"id":9082},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9083},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9082":{"this":{"__isSmartRef__":true,"id":6067}},"9083":{"timestamp":{"__isSmartRef__":true,"id":9084},"user":"soergel","tags":[]},"9084":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9085":{"varMapping":{"__isSmartRef__":true,"id":9086},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9087},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9086":{"this":{"__isSmartRef__":true,"id":6067}},"9087":{"timestamp":{"__isSmartRef__":true,"id":9088},"user":"soergel","tags":["debug"]},"9088":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9089":{"varMapping":{"__isSmartRef__":true,"id":9090},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9091},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9090":{"this":{"__isSmartRef__":true,"id":6067}},"9091":{"timestamp":{"__isSmartRef__":true,"id":9092},"user":"soergel","tags":["debug"]},"9092":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9093":{"varMapping":{"__isSmartRef__":true,"id":9094},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9095},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9094":{"this":{"__isSmartRef__":true,"id":6067}},"9095":{"timestamp":{"__isSmartRef__":true,"id":9096},"user":"soergel","tags":[]},"9096":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"9097":{"varMapping":{"__isSmartRef__":true,"id":9098},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9099},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9098":{"this":{"__isSmartRef__":true,"id":6067}},"9099":{"timestamp":{"__isSmartRef__":true,"id":9100},"user":"jan.sandbrink","tags":[]},"9100":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"9101":{"varMapping":{"__isSmartRef__":true,"id":9102},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":9103},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9102":{"this":{"__isSmartRef__":true,"id":6067}},"9103":{"timestamp":{"__isSmartRef__":true,"id":9104},"user":"jan.sandbrink","tags":[]},"9104":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"9105":{"varMapping":{"__isSmartRef__":true,"id":9106},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9107},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9106":{"this":{"__isSmartRef__":true,"id":6067}},"9107":{"timestamp":{"__isSmartRef__":true,"id":9108},"user":"jan.sandbrink","tags":[]},"9108":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"9109":{"varMapping":{"__isSmartRef__":true,"id":9110},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":9111},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9110":{"this":{"__isSmartRef__":true,"id":6067}},"9111":{"timestamp":{"__isSmartRef__":true,"id":9112},"user":"jan.sandbrink","tags":[]},"9112":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"9113":{"varMapping":{"__isSmartRef__":true,"id":9114},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":9115},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9114":{"this":{"__isSmartRef__":true,"id":6067}},"9115":{"timestamp":{"__isSmartRef__":true,"id":9116},"user":"josi","tags":["gemtypes"]},"9116":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"9117":{"varMapping":{"__isSmartRef__":true,"id":9118},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":9119},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9118":{"this":{"__isSmartRef__":true,"id":6067}},"9119":{"timestamp":{"__isSmartRef__":true,"id":9120},"user":"josi","tags":["gemtypes"]},"9120":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"9121":{"varMapping":{"__isSmartRef__":true,"id":9122},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9123},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9122":{"this":{"__isSmartRef__":true,"id":6067}},"9123":{"timestamp":{"__isSmartRef__":true,"id":9124},"user":"soergel","tags":["debug"]},"9124":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"9125":{"varMapping":{"__isSmartRef__":true,"id":9126},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9127},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9126":{"this":{"__isSmartRef__":true,"id":6067}},"9127":{"timestamp":{"__isSmartRef__":true,"id":9128},"user":"soergel","tags":["debug"]},"9128":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"9129":{"varMapping":{"__isSmartRef__":true,"id":9130},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9131},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9130":{"this":{"__isSmartRef__":true,"id":6067}},"9131":{"timestamp":{"__isSmartRef__":true,"id":9132},"user":"josi","tags":["gemtypes"]},"9132":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9133":{"varMapping":{"__isSmartRef__":true,"id":9134},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9135},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9134":{"this":{"__isSmartRef__":true,"id":6067}},"9135":{"timestamp":{"__isSmartRef__":true,"id":9136},"user":"soergel","tags":[]},"9136":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9137":{"varMapping":{"__isSmartRef__":true,"id":9138},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9139},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9138":{"this":{"__isSmartRef__":true,"id":6067}},"9139":{"timestamp":{"__isSmartRef__":true,"id":9140},"user":"soergel","tags":[]},"9140":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9141":{"varMapping":{"__isSmartRef__":true,"id":9142},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9143},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9142":{"this":{"__isSmartRef__":true,"id":6067}},"9143":{"timestamp":{"__isSmartRef__":true,"id":9144},"user":"soergel","tags":[]},"9144":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9145":{"varMapping":{"__isSmartRef__":true,"id":9146},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9147},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9146":{"this":{"__isSmartRef__":true,"id":6067}},"9147":{"timestamp":{"__isSmartRef__":true,"id":9148},"user":"josi","tags":["gemtypes"]},"9148":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9149":{"varMapping":{"__isSmartRef__":true,"id":9150},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9151},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9150":{"this":{"__isSmartRef__":true,"id":6067}},"9151":{"timestamp":{"__isSmartRef__":true,"id":9152},"user":"josi","tags":["gemtypes"]},"9152":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9153":{"varMapping":{"__isSmartRef__":true,"id":9154},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9155},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9154":{"this":{"__isSmartRef__":true,"id":6067}},"9155":{"timestamp":{"__isSmartRef__":true,"id":9156},"user":"jan.sandbrink","tags":[]},"9156":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9157":{"become":{"__isSmartRef__":true,"id":9158},"onMouseDown":{"__isSmartRef__":true,"id":9162},"updatePicture":{"__isSmartRef__":true,"id":9170},"ruby":{"__isSmartRef__":true,"id":9174},"switchPositionWith":{"__isSmartRef__":true,"id":9178},"addNeighbour":{"__isSmartRef__":true,"id":9182},"amethyst":{"__isSmartRef__":true,"id":9186},"diopside":{"__isSmartRef__":true,"id":9190},"gemTypes":{"__isSmartRef__":true,"id":9194},"becomeRandomGem":{"__isSmartRef__":true,"id":9198},"mark":{"__isSmartRef__":true,"id":9202},"unmark":{"__isSmartRef__":true,"id":9206},"hasNeighbour":{"__isSmartRef__":true,"id":9210},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9214},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9218},"disappear":{"__isSmartRef__":true,"id":9222},"findStreakStart":{"__isSmartRef__":true,"id":9226},"buildStreak":{"__isSmartRef__":true,"id":9230},"scoreStreak":{"__isSmartRef__":true,"id":9234},"tryToStreak":{"__isSmartRef__":true,"id":9238},"blueDiamond":{"__isSmartRef__":true,"id":9242},"prehnite":{"__isSmartRef__":true,"id":9246},"debugUnmark":{"__isSmartRef__":true,"id":9250},"debugMark":{"__isSmartRef__":true,"id":9254},"citrine":{"__isSmartRef__":true,"id":9258},"move":{"__isSmartRef__":true,"id":9262},"performMovement":{"__isSmartRef__":true,"id":9266},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9270},"zircon":{"__isSmartRef__":true,"id":9274},"emerald":{"__isSmartRef__":true,"id":9278},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9282}},"9158":{"varMapping":{"__isSmartRef__":true,"id":9159},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9160},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9159":{"this":{"__isSmartRef__":true,"id":5949}},"9160":{"timestamp":{"__isSmartRef__":true,"id":9161},"user":"josi","tags":[]},"9161":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9162":{"varMapping":{"__isSmartRef__":true,"id":9163},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9168},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9163":{"this":{"__isSmartRef__":true,"id":5949},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9164}},"9164":{"$super":{"__isSmartRef__":true,"id":9165}},"9165":{"varMapping":{"__isSmartRef__":true,"id":9166},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9167},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9166":{"obj":{"__isSmartRef__":true,"id":5949},"name":"onMouseDown"},"9167":{},"9168":{"timestamp":{"__isSmartRef__":true,"id":9169},"user":"soergel","tags":[]},"9169":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9170":{"varMapping":{"__isSmartRef__":true,"id":9171},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9172},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9171":{"this":{"__isSmartRef__":true,"id":5949}},"9172":{"timestamp":{"__isSmartRef__":true,"id":9173},"user":"soergel","tags":[]},"9173":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9174":{"varMapping":{"__isSmartRef__":true,"id":9175},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9176},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9175":{"this":{"__isSmartRef__":true,"id":5949}},"9176":{"timestamp":{"__isSmartRef__":true,"id":9177},"user":"josi","tags":["gemtypes"]},"9177":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9178":{"varMapping":{"__isSmartRef__":true,"id":9179},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9180},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9179":{"this":{"__isSmartRef__":true,"id":5949}},"9180":{"timestamp":{"__isSmartRef__":true,"id":9181},"user":"jan.sandbrink","tags":[]},"9181":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9182":{"varMapping":{"__isSmartRef__":true,"id":9183},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9184},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9183":{"this":{"__isSmartRef__":true,"id":5949}},"9184":{"timestamp":{"__isSmartRef__":true,"id":9185},"user":"jan.sandbrink","tags":[]},"9185":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9186":{"varMapping":{"__isSmartRef__":true,"id":9187},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9188},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9187":{"this":{"__isSmartRef__":true,"id":5949}},"9188":{"timestamp":{"__isSmartRef__":true,"id":9189},"user":"josi","tags":["gemtypes"]},"9189":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9190":{"varMapping":{"__isSmartRef__":true,"id":9191},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9192},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9191":{"this":{"__isSmartRef__":true,"id":5949}},"9192":{"timestamp":{"__isSmartRef__":true,"id":9193},"user":"josi","tags":["gemtypes"]},"9193":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9194":{"varMapping":{"__isSmartRef__":true,"id":9195},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9196},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9195":{"this":{"__isSmartRef__":true,"id":5949}},"9196":{"timestamp":{"__isSmartRef__":true,"id":9197},"user":"josi","tags":[]},"9197":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9198":{"varMapping":{"__isSmartRef__":true,"id":9199},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9200},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9199":{"this":{"__isSmartRef__":true,"id":5949}},"9200":{"timestamp":{"__isSmartRef__":true,"id":9201},"user":"josi","tags":[]},"9201":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9202":{"varMapping":{"__isSmartRef__":true,"id":9203},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9204},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9203":{"this":{"__isSmartRef__":true,"id":5949}},"9204":{"timestamp":{"__isSmartRef__":true,"id":9205},"user":"soergel","tags":[]},"9205":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9206":{"varMapping":{"__isSmartRef__":true,"id":9207},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9208},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9207":{"this":{"__isSmartRef__":true,"id":5949}},"9208":{"timestamp":{"__isSmartRef__":true,"id":9209},"user":"soergel","tags":[]},"9209":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9210":{"varMapping":{"__isSmartRef__":true,"id":9211},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9212},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9211":{"this":{"__isSmartRef__":true,"id":5949}},"9212":{"timestamp":{"__isSmartRef__":true,"id":9213},"user":"soergel","tags":[]},"9213":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9214":{"varMapping":{"__isSmartRef__":true,"id":9215},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9216},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9215":{"this":{"__isSmartRef__":true,"id":5949}},"9216":{"timestamp":{"__isSmartRef__":true,"id":9217},"user":"soergel","tags":["debug"]},"9217":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9218":{"varMapping":{"__isSmartRef__":true,"id":9219},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9220},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9219":{"this":{"__isSmartRef__":true,"id":5949}},"9220":{"timestamp":{"__isSmartRef__":true,"id":9221},"user":"soergel","tags":["debug"]},"9221":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9222":{"varMapping":{"__isSmartRef__":true,"id":9223},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9224},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9223":{"this":{"__isSmartRef__":true,"id":5949}},"9224":{"timestamp":{"__isSmartRef__":true,"id":9225},"user":"soergel","tags":[]},"9225":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"9226":{"varMapping":{"__isSmartRef__":true,"id":9227},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9228},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9227":{"this":{"__isSmartRef__":true,"id":5949}},"9228":{"timestamp":{"__isSmartRef__":true,"id":9229},"user":"jan.sandbrink","tags":[]},"9229":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"9230":{"varMapping":{"__isSmartRef__":true,"id":9231},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":9232},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9231":{"this":{"__isSmartRef__":true,"id":5949}},"9232":{"timestamp":{"__isSmartRef__":true,"id":9233},"user":"jan.sandbrink","tags":[]},"9233":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"9234":{"varMapping":{"__isSmartRef__":true,"id":9235},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9236},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9235":{"this":{"__isSmartRef__":true,"id":5949}},"9236":{"timestamp":{"__isSmartRef__":true,"id":9237},"user":"jan.sandbrink","tags":[]},"9237":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"9238":{"varMapping":{"__isSmartRef__":true,"id":9239},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":9240},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9239":{"this":{"__isSmartRef__":true,"id":5949}},"9240":{"timestamp":{"__isSmartRef__":true,"id":9241},"user":"jan.sandbrink","tags":[]},"9241":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"9242":{"varMapping":{"__isSmartRef__":true,"id":9243},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":9244},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9243":{"this":{"__isSmartRef__":true,"id":5949}},"9244":{"timestamp":{"__isSmartRef__":true,"id":9245},"user":"josi","tags":["gemtypes"]},"9245":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"9246":{"varMapping":{"__isSmartRef__":true,"id":9247},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":9248},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9247":{"this":{"__isSmartRef__":true,"id":5949}},"9248":{"timestamp":{"__isSmartRef__":true,"id":9249},"user":"josi","tags":["gemtypes"]},"9249":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"9250":{"varMapping":{"__isSmartRef__":true,"id":9251},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9252},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9251":{"this":{"__isSmartRef__":true,"id":5949}},"9252":{"timestamp":{"__isSmartRef__":true,"id":9253},"user":"soergel","tags":["debug"]},"9253":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"9254":{"varMapping":{"__isSmartRef__":true,"id":9255},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9256},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9255":{"this":{"__isSmartRef__":true,"id":5949}},"9256":{"timestamp":{"__isSmartRef__":true,"id":9257},"user":"soergel","tags":["debug"]},"9257":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"9258":{"varMapping":{"__isSmartRef__":true,"id":9259},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9260},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9259":{"this":{"__isSmartRef__":true,"id":5949}},"9260":{"timestamp":{"__isSmartRef__":true,"id":9261},"user":"josi","tags":["gemtypes"]},"9261":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9262":{"varMapping":{"__isSmartRef__":true,"id":9263},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9264},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9263":{"this":{"__isSmartRef__":true,"id":5949}},"9264":{"timestamp":{"__isSmartRef__":true,"id":9265},"user":"soergel","tags":[]},"9265":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9266":{"varMapping":{"__isSmartRef__":true,"id":9267},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9268},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9267":{"this":{"__isSmartRef__":true,"id":5949}},"9268":{"timestamp":{"__isSmartRef__":true,"id":9269},"user":"soergel","tags":[]},"9269":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9270":{"varMapping":{"__isSmartRef__":true,"id":9271},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9271":{"this":{"__isSmartRef__":true,"id":5949}},"9272":{"timestamp":{"__isSmartRef__":true,"id":9273},"user":"soergel","tags":[]},"9273":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9274":{"varMapping":{"__isSmartRef__":true,"id":9275},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9275":{"this":{"__isSmartRef__":true,"id":5949}},"9276":{"timestamp":{"__isSmartRef__":true,"id":9277},"user":"josi","tags":["gemtypes"]},"9277":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9278":{"varMapping":{"__isSmartRef__":true,"id":9279},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9280},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9279":{"this":{"__isSmartRef__":true,"id":5949}},"9280":{"timestamp":{"__isSmartRef__":true,"id":9281},"user":"josi","tags":["gemtypes"]},"9281":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9282":{"varMapping":{"__isSmartRef__":true,"id":9283},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9284},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9283":{"this":{"__isSmartRef__":true,"id":5949}},"9284":{"timestamp":{"__isSmartRef__":true,"id":9285},"user":"jan.sandbrink","tags":[]},"9285":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9286":{"become":{"__isSmartRef__":true,"id":9287},"onMouseDown":{"__isSmartRef__":true,"id":9291},"updatePicture":{"__isSmartRef__":true,"id":9299},"ruby":{"__isSmartRef__":true,"id":9303},"switchPositionWith":{"__isSmartRef__":true,"id":9307},"addNeighbour":{"__isSmartRef__":true,"id":9311},"amethyst":{"__isSmartRef__":true,"id":9315},"diopside":{"__isSmartRef__":true,"id":9319},"gemTypes":{"__isSmartRef__":true,"id":9323},"becomeRandomGem":{"__isSmartRef__":true,"id":9327},"mark":{"__isSmartRef__":true,"id":9331},"unmark":{"__isSmartRef__":true,"id":9335},"hasNeighbour":{"__isSmartRef__":true,"id":9339},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9343},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9347},"disappear":{"__isSmartRef__":true,"id":9351},"findStreakStart":{"__isSmartRef__":true,"id":9355},"buildStreak":{"__isSmartRef__":true,"id":9359},"scoreStreak":{"__isSmartRef__":true,"id":9363},"tryToStreak":{"__isSmartRef__":true,"id":9367},"blueDiamond":{"__isSmartRef__":true,"id":9371},"prehnite":{"__isSmartRef__":true,"id":9375},"debugUnmark":{"__isSmartRef__":true,"id":9379},"debugMark":{"__isSmartRef__":true,"id":9383},"citrine":{"__isSmartRef__":true,"id":9387},"move":{"__isSmartRef__":true,"id":9391},"performMovement":{"__isSmartRef__":true,"id":9395},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9399},"zircon":{"__isSmartRef__":true,"id":9403},"emerald":{"__isSmartRef__":true,"id":9407},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9411}},"9287":{"varMapping":{"__isSmartRef__":true,"id":9288},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9289},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9288":{"this":{"__isSmartRef__":true,"id":5822}},"9289":{"timestamp":{"__isSmartRef__":true,"id":9290},"user":"josi","tags":[]},"9290":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9291":{"varMapping":{"__isSmartRef__":true,"id":9292},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9297},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9292":{"this":{"__isSmartRef__":true,"id":5822},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9293}},"9293":{"$super":{"__isSmartRef__":true,"id":9294}},"9294":{"varMapping":{"__isSmartRef__":true,"id":9295},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9296},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9295":{"obj":{"__isSmartRef__":true,"id":5822},"name":"onMouseDown"},"9296":{},"9297":{"timestamp":{"__isSmartRef__":true,"id":9298},"user":"soergel","tags":[]},"9298":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9299":{"varMapping":{"__isSmartRef__":true,"id":9300},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9301},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9300":{"this":{"__isSmartRef__":true,"id":5822}},"9301":{"timestamp":{"__isSmartRef__":true,"id":9302},"user":"soergel","tags":[]},"9302":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9303":{"varMapping":{"__isSmartRef__":true,"id":9304},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9305},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9304":{"this":{"__isSmartRef__":true,"id":5822}},"9305":{"timestamp":{"__isSmartRef__":true,"id":9306},"user":"josi","tags":["gemtypes"]},"9306":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9307":{"varMapping":{"__isSmartRef__":true,"id":9308},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9309},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9308":{"this":{"__isSmartRef__":true,"id":5822}},"9309":{"timestamp":{"__isSmartRef__":true,"id":9310},"user":"jan.sandbrink","tags":[]},"9310":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9311":{"varMapping":{"__isSmartRef__":true,"id":9312},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9313},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9312":{"this":{"__isSmartRef__":true,"id":5822}},"9313":{"timestamp":{"__isSmartRef__":true,"id":9314},"user":"jan.sandbrink","tags":[]},"9314":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9315":{"varMapping":{"__isSmartRef__":true,"id":9316},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9317},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9316":{"this":{"__isSmartRef__":true,"id":5822}},"9317":{"timestamp":{"__isSmartRef__":true,"id":9318},"user":"josi","tags":["gemtypes"]},"9318":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9319":{"varMapping":{"__isSmartRef__":true,"id":9320},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9321},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9320":{"this":{"__isSmartRef__":true,"id":5822}},"9321":{"timestamp":{"__isSmartRef__":true,"id":9322},"user":"josi","tags":["gemtypes"]},"9322":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9323":{"varMapping":{"__isSmartRef__":true,"id":9324},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9324":{"this":{"__isSmartRef__":true,"id":5822}},"9325":{"timestamp":{"__isSmartRef__":true,"id":9326},"user":"josi","tags":[]},"9326":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9327":{"varMapping":{"__isSmartRef__":true,"id":9328},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9328":{"this":{"__isSmartRef__":true,"id":5822}},"9329":{"timestamp":{"__isSmartRef__":true,"id":9330},"user":"josi","tags":[]},"9330":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9331":{"varMapping":{"__isSmartRef__":true,"id":9332},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9332":{"this":{"__isSmartRef__":true,"id":5822}},"9333":{"timestamp":{"__isSmartRef__":true,"id":9334},"user":"soergel","tags":[]},"9334":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9335":{"varMapping":{"__isSmartRef__":true,"id":9336},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9336":{"this":{"__isSmartRef__":true,"id":5822}},"9337":{"timestamp":{"__isSmartRef__":true,"id":9338},"user":"soergel","tags":[]},"9338":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9339":{"varMapping":{"__isSmartRef__":true,"id":9340},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9340":{"this":{"__isSmartRef__":true,"id":5822}},"9341":{"timestamp":{"__isSmartRef__":true,"id":9342},"user":"soergel","tags":[]},"9342":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9343":{"varMapping":{"__isSmartRef__":true,"id":9344},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9344":{"this":{"__isSmartRef__":true,"id":5822}},"9345":{"timestamp":{"__isSmartRef__":true,"id":9346},"user":"soergel","tags":["debug"]},"9346":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9347":{"varMapping":{"__isSmartRef__":true,"id":9348},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9348":{"this":{"__isSmartRef__":true,"id":5822}},"9349":{"timestamp":{"__isSmartRef__":true,"id":9350},"user":"soergel","tags":["debug"]},"9350":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9351":{"varMapping":{"__isSmartRef__":true,"id":9352},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9352":{"this":{"__isSmartRef__":true,"id":5822}},"9353":{"timestamp":{"__isSmartRef__":true,"id":9354},"user":"soergel","tags":[]},"9354":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"9355":{"varMapping":{"__isSmartRef__":true,"id":9356},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9356":{"this":{"__isSmartRef__":true,"id":5822}},"9357":{"timestamp":{"__isSmartRef__":true,"id":9358},"user":"jan.sandbrink","tags":[]},"9358":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"9359":{"varMapping":{"__isSmartRef__":true,"id":9360},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":9361},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9360":{"this":{"__isSmartRef__":true,"id":5822}},"9361":{"timestamp":{"__isSmartRef__":true,"id":9362},"user":"jan.sandbrink","tags":[]},"9362":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"9363":{"varMapping":{"__isSmartRef__":true,"id":9364},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9364":{"this":{"__isSmartRef__":true,"id":5822}},"9365":{"timestamp":{"__isSmartRef__":true,"id":9366},"user":"jan.sandbrink","tags":[]},"9366":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"9367":{"varMapping":{"__isSmartRef__":true,"id":9368},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":9369},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9368":{"this":{"__isSmartRef__":true,"id":5822}},"9369":{"timestamp":{"__isSmartRef__":true,"id":9370},"user":"jan.sandbrink","tags":[]},"9370":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"9371":{"varMapping":{"__isSmartRef__":true,"id":9372},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":9373},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9372":{"this":{"__isSmartRef__":true,"id":5822}},"9373":{"timestamp":{"__isSmartRef__":true,"id":9374},"user":"josi","tags":["gemtypes"]},"9374":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"9375":{"varMapping":{"__isSmartRef__":true,"id":9376},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":9377},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9376":{"this":{"__isSmartRef__":true,"id":5822}},"9377":{"timestamp":{"__isSmartRef__":true,"id":9378},"user":"josi","tags":["gemtypes"]},"9378":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"9379":{"varMapping":{"__isSmartRef__":true,"id":9380},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9381},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9380":{"this":{"__isSmartRef__":true,"id":5822}},"9381":{"timestamp":{"__isSmartRef__":true,"id":9382},"user":"soergel","tags":["debug"]},"9382":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"9383":{"varMapping":{"__isSmartRef__":true,"id":9384},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9385},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9384":{"this":{"__isSmartRef__":true,"id":5822}},"9385":{"timestamp":{"__isSmartRef__":true,"id":9386},"user":"soergel","tags":["debug"]},"9386":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"9387":{"varMapping":{"__isSmartRef__":true,"id":9388},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9389},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9388":{"this":{"__isSmartRef__":true,"id":5822}},"9389":{"timestamp":{"__isSmartRef__":true,"id":9390},"user":"josi","tags":["gemtypes"]},"9390":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9391":{"varMapping":{"__isSmartRef__":true,"id":9392},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9393},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9392":{"this":{"__isSmartRef__":true,"id":5822}},"9393":{"timestamp":{"__isSmartRef__":true,"id":9394},"user":"soergel","tags":[]},"9394":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9395":{"varMapping":{"__isSmartRef__":true,"id":9396},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9397},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9396":{"this":{"__isSmartRef__":true,"id":5822}},"9397":{"timestamp":{"__isSmartRef__":true,"id":9398},"user":"soergel","tags":[]},"9398":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9399":{"varMapping":{"__isSmartRef__":true,"id":9400},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9401},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9400":{"this":{"__isSmartRef__":true,"id":5822}},"9401":{"timestamp":{"__isSmartRef__":true,"id":9402},"user":"soergel","tags":[]},"9402":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9403":{"varMapping":{"__isSmartRef__":true,"id":9404},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9405},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9404":{"this":{"__isSmartRef__":true,"id":5822}},"9405":{"timestamp":{"__isSmartRef__":true,"id":9406},"user":"josi","tags":["gemtypes"]},"9406":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9407":{"varMapping":{"__isSmartRef__":true,"id":9408},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9409},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9408":{"this":{"__isSmartRef__":true,"id":5822}},"9409":{"timestamp":{"__isSmartRef__":true,"id":9410},"user":"josi","tags":["gemtypes"]},"9410":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9411":{"varMapping":{"__isSmartRef__":true,"id":9412},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9413},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9412":{"this":{"__isSmartRef__":true,"id":5822}},"9413":{"timestamp":{"__isSmartRef__":true,"id":9414},"user":"jan.sandbrink","tags":[]},"9414":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9415":{"become":{"__isSmartRef__":true,"id":9416},"onMouseDown":{"__isSmartRef__":true,"id":9420},"updatePicture":{"__isSmartRef__":true,"id":9428},"ruby":{"__isSmartRef__":true,"id":9432},"switchPositionWith":{"__isSmartRef__":true,"id":9436},"addNeighbour":{"__isSmartRef__":true,"id":9440},"amethyst":{"__isSmartRef__":true,"id":9444},"diopside":{"__isSmartRef__":true,"id":9448},"gemTypes":{"__isSmartRef__":true,"id":9452},"becomeRandomGem":{"__isSmartRef__":true,"id":9456},"mark":{"__isSmartRef__":true,"id":9460},"unmark":{"__isSmartRef__":true,"id":9464},"hasNeighbour":{"__isSmartRef__":true,"id":9468},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9472},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9476},"disappear":{"__isSmartRef__":true,"id":9480},"findStreakStart":{"__isSmartRef__":true,"id":9484},"buildStreak":{"__isSmartRef__":true,"id":9488},"scoreStreak":{"__isSmartRef__":true,"id":9492},"tryToStreak":{"__isSmartRef__":true,"id":9496},"blueDiamond":{"__isSmartRef__":true,"id":9500},"prehnite":{"__isSmartRef__":true,"id":9504},"debugUnmark":{"__isSmartRef__":true,"id":9508},"debugMark":{"__isSmartRef__":true,"id":9512},"citrine":{"__isSmartRef__":true,"id":9516},"move":{"__isSmartRef__":true,"id":9520},"performMovement":{"__isSmartRef__":true,"id":9524},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9528},"zircon":{"__isSmartRef__":true,"id":9532},"emerald":{"__isSmartRef__":true,"id":9536},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9540}},"9416":{"varMapping":{"__isSmartRef__":true,"id":9417},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9418},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9417":{"this":{"__isSmartRef__":true,"id":5704}},"9418":{"timestamp":{"__isSmartRef__":true,"id":9419},"user":"josi","tags":[]},"9419":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9420":{"varMapping":{"__isSmartRef__":true,"id":9421},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9426},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9421":{"this":{"__isSmartRef__":true,"id":5704},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9422}},"9422":{"$super":{"__isSmartRef__":true,"id":9423}},"9423":{"varMapping":{"__isSmartRef__":true,"id":9424},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9425},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9424":{"obj":{"__isSmartRef__":true,"id":5704},"name":"onMouseDown"},"9425":{},"9426":{"timestamp":{"__isSmartRef__":true,"id":9427},"user":"soergel","tags":[]},"9427":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9428":{"varMapping":{"__isSmartRef__":true,"id":9429},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9430},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9429":{"this":{"__isSmartRef__":true,"id":5704}},"9430":{"timestamp":{"__isSmartRef__":true,"id":9431},"user":"soergel","tags":[]},"9431":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9432":{"varMapping":{"__isSmartRef__":true,"id":9433},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9434},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9433":{"this":{"__isSmartRef__":true,"id":5704}},"9434":{"timestamp":{"__isSmartRef__":true,"id":9435},"user":"josi","tags":["gemtypes"]},"9435":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9436":{"varMapping":{"__isSmartRef__":true,"id":9437},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9438},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9437":{"this":{"__isSmartRef__":true,"id":5704}},"9438":{"timestamp":{"__isSmartRef__":true,"id":9439},"user":"jan.sandbrink","tags":[]},"9439":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9440":{"varMapping":{"__isSmartRef__":true,"id":9441},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9442},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9441":{"this":{"__isSmartRef__":true,"id":5704}},"9442":{"timestamp":{"__isSmartRef__":true,"id":9443},"user":"jan.sandbrink","tags":[]},"9443":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9444":{"varMapping":{"__isSmartRef__":true,"id":9445},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9445":{"this":{"__isSmartRef__":true,"id":5704}},"9446":{"timestamp":{"__isSmartRef__":true,"id":9447},"user":"josi","tags":["gemtypes"]},"9447":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9448":{"varMapping":{"__isSmartRef__":true,"id":9449},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9450},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9449":{"this":{"__isSmartRef__":true,"id":5704}},"9450":{"timestamp":{"__isSmartRef__":true,"id":9451},"user":"josi","tags":["gemtypes"]},"9451":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9452":{"varMapping":{"__isSmartRef__":true,"id":9453},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9454},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9453":{"this":{"__isSmartRef__":true,"id":5704}},"9454":{"timestamp":{"__isSmartRef__":true,"id":9455},"user":"josi","tags":[]},"9455":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9456":{"varMapping":{"__isSmartRef__":true,"id":9457},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9458},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9457":{"this":{"__isSmartRef__":true,"id":5704}},"9458":{"timestamp":{"__isSmartRef__":true,"id":9459},"user":"josi","tags":[]},"9459":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9460":{"varMapping":{"__isSmartRef__":true,"id":9461},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9462},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9461":{"this":{"__isSmartRef__":true,"id":5704}},"9462":{"timestamp":{"__isSmartRef__":true,"id":9463},"user":"soergel","tags":[]},"9463":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9464":{"varMapping":{"__isSmartRef__":true,"id":9465},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9465":{"this":{"__isSmartRef__":true,"id":5704}},"9466":{"timestamp":{"__isSmartRef__":true,"id":9467},"user":"soergel","tags":[]},"9467":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9468":{"varMapping":{"__isSmartRef__":true,"id":9469},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9470},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9469":{"this":{"__isSmartRef__":true,"id":5704}},"9470":{"timestamp":{"__isSmartRef__":true,"id":9471},"user":"soergel","tags":[]},"9471":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9472":{"varMapping":{"__isSmartRef__":true,"id":9473},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9474},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9473":{"this":{"__isSmartRef__":true,"id":5704}},"9474":{"timestamp":{"__isSmartRef__":true,"id":9475},"user":"soergel","tags":["debug"]},"9475":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9476":{"varMapping":{"__isSmartRef__":true,"id":9477},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9478},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9477":{"this":{"__isSmartRef__":true,"id":5704}},"9478":{"timestamp":{"__isSmartRef__":true,"id":9479},"user":"soergel","tags":["debug"]},"9479":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9480":{"varMapping":{"__isSmartRef__":true,"id":9481},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9481":{"this":{"__isSmartRef__":true,"id":5704}},"9482":{"timestamp":{"__isSmartRef__":true,"id":9483},"user":"soergel","tags":[]},"9483":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"9484":{"varMapping":{"__isSmartRef__":true,"id":9485},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9486},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9485":{"this":{"__isSmartRef__":true,"id":5704}},"9486":{"timestamp":{"__isSmartRef__":true,"id":9487},"user":"jan.sandbrink","tags":[]},"9487":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"9488":{"varMapping":{"__isSmartRef__":true,"id":9489},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":9490},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9489":{"this":{"__isSmartRef__":true,"id":5704}},"9490":{"timestamp":{"__isSmartRef__":true,"id":9491},"user":"jan.sandbrink","tags":[]},"9491":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"9492":{"varMapping":{"__isSmartRef__":true,"id":9493},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9494},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9493":{"this":{"__isSmartRef__":true,"id":5704}},"9494":{"timestamp":{"__isSmartRef__":true,"id":9495},"user":"jan.sandbrink","tags":[]},"9495":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"9496":{"varMapping":{"__isSmartRef__":true,"id":9497},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":9498},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9497":{"this":{"__isSmartRef__":true,"id":5704}},"9498":{"timestamp":{"__isSmartRef__":true,"id":9499},"user":"jan.sandbrink","tags":[]},"9499":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"9500":{"varMapping":{"__isSmartRef__":true,"id":9501},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":9502},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9501":{"this":{"__isSmartRef__":true,"id":5704}},"9502":{"timestamp":{"__isSmartRef__":true,"id":9503},"user":"josi","tags":["gemtypes"]},"9503":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"9504":{"varMapping":{"__isSmartRef__":true,"id":9505},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":9506},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9505":{"this":{"__isSmartRef__":true,"id":5704}},"9506":{"timestamp":{"__isSmartRef__":true,"id":9507},"user":"josi","tags":["gemtypes"]},"9507":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"9508":{"varMapping":{"__isSmartRef__":true,"id":9509},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9510},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9509":{"this":{"__isSmartRef__":true,"id":5704}},"9510":{"timestamp":{"__isSmartRef__":true,"id":9511},"user":"soergel","tags":["debug"]},"9511":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"9512":{"varMapping":{"__isSmartRef__":true,"id":9513},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9514},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9513":{"this":{"__isSmartRef__":true,"id":5704}},"9514":{"timestamp":{"__isSmartRef__":true,"id":9515},"user":"soergel","tags":["debug"]},"9515":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"9516":{"varMapping":{"__isSmartRef__":true,"id":9517},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9518},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9517":{"this":{"__isSmartRef__":true,"id":5704}},"9518":{"timestamp":{"__isSmartRef__":true,"id":9519},"user":"josi","tags":["gemtypes"]},"9519":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9520":{"varMapping":{"__isSmartRef__":true,"id":9521},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9522},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9521":{"this":{"__isSmartRef__":true,"id":5704}},"9522":{"timestamp":{"__isSmartRef__":true,"id":9523},"user":"soergel","tags":[]},"9523":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9524":{"varMapping":{"__isSmartRef__":true,"id":9525},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9526},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9525":{"this":{"__isSmartRef__":true,"id":5704}},"9526":{"timestamp":{"__isSmartRef__":true,"id":9527},"user":"soergel","tags":[]},"9527":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9528":{"varMapping":{"__isSmartRef__":true,"id":9529},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9530},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9529":{"this":{"__isSmartRef__":true,"id":5704}},"9530":{"timestamp":{"__isSmartRef__":true,"id":9531},"user":"soergel","tags":[]},"9531":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9532":{"varMapping":{"__isSmartRef__":true,"id":9533},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9534},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9533":{"this":{"__isSmartRef__":true,"id":5704}},"9534":{"timestamp":{"__isSmartRef__":true,"id":9535},"user":"josi","tags":["gemtypes"]},"9535":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9536":{"varMapping":{"__isSmartRef__":true,"id":9537},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9538},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9537":{"this":{"__isSmartRef__":true,"id":5704}},"9538":{"timestamp":{"__isSmartRef__":true,"id":9539},"user":"josi","tags":["gemtypes"]},"9539":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9540":{"varMapping":{"__isSmartRef__":true,"id":9541},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9542},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9541":{"this":{"__isSmartRef__":true,"id":5704}},"9542":{"timestamp":{"__isSmartRef__":true,"id":9543},"user":"jan.sandbrink","tags":[]},"9543":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9544":{"become":{"__isSmartRef__":true,"id":9545},"onMouseDown":{"__isSmartRef__":true,"id":9549},"updatePicture":{"__isSmartRef__":true,"id":9557},"ruby":{"__isSmartRef__":true,"id":9561},"switchPositionWith":{"__isSmartRef__":true,"id":9565},"addNeighbour":{"__isSmartRef__":true,"id":9569},"amethyst":{"__isSmartRef__":true,"id":9573},"diopside":{"__isSmartRef__":true,"id":9577},"gemTypes":{"__isSmartRef__":true,"id":9581},"becomeRandomGem":{"__isSmartRef__":true,"id":9585},"mark":{"__isSmartRef__":true,"id":9589},"unmark":{"__isSmartRef__":true,"id":9593},"hasNeighbour":{"__isSmartRef__":true,"id":9597},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9601},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9605},"disappear":{"__isSmartRef__":true,"id":9609},"findStreakStart":{"__isSmartRef__":true,"id":9613},"buildStreak":{"__isSmartRef__":true,"id":9617},"scoreStreak":{"__isSmartRef__":true,"id":9621},"tryToStreak":{"__isSmartRef__":true,"id":9625},"blueDiamond":{"__isSmartRef__":true,"id":9629},"prehnite":{"__isSmartRef__":true,"id":9633},"debugUnmark":{"__isSmartRef__":true,"id":9637},"debugMark":{"__isSmartRef__":true,"id":9641},"citrine":{"__isSmartRef__":true,"id":9645},"move":{"__isSmartRef__":true,"id":9649},"performMovement":{"__isSmartRef__":true,"id":9653},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9657},"zircon":{"__isSmartRef__":true,"id":9661},"emerald":{"__isSmartRef__":true,"id":9665},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9669}},"9545":{"varMapping":{"__isSmartRef__":true,"id":9546},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9547},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9546":{"this":{"__isSmartRef__":true,"id":5612}},"9547":{"timestamp":{"__isSmartRef__":true,"id":9548},"user":"josi","tags":[]},"9548":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9549":{"varMapping":{"__isSmartRef__":true,"id":9550},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9555},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9550":{"this":{"__isSmartRef__":true,"id":5612},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9551}},"9551":{"$super":{"__isSmartRef__":true,"id":9552}},"9552":{"varMapping":{"__isSmartRef__":true,"id":9553},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9554},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9553":{"obj":{"__isSmartRef__":true,"id":5612},"name":"onMouseDown"},"9554":{},"9555":{"timestamp":{"__isSmartRef__":true,"id":9556},"user":"soergel","tags":[]},"9556":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9557":{"varMapping":{"__isSmartRef__":true,"id":9558},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9559},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9558":{"this":{"__isSmartRef__":true,"id":5612}},"9559":{"timestamp":{"__isSmartRef__":true,"id":9560},"user":"soergel","tags":[]},"9560":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9561":{"varMapping":{"__isSmartRef__":true,"id":9562},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9563},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9562":{"this":{"__isSmartRef__":true,"id":5612}},"9563":{"timestamp":{"__isSmartRef__":true,"id":9564},"user":"josi","tags":["gemtypes"]},"9564":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9565":{"varMapping":{"__isSmartRef__":true,"id":9566},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9566":{"this":{"__isSmartRef__":true,"id":5612}},"9567":{"timestamp":{"__isSmartRef__":true,"id":9568},"user":"jan.sandbrink","tags":[]},"9568":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9569":{"varMapping":{"__isSmartRef__":true,"id":9570},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9570":{"this":{"__isSmartRef__":true,"id":5612}},"9571":{"timestamp":{"__isSmartRef__":true,"id":9572},"user":"jan.sandbrink","tags":[]},"9572":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9573":{"varMapping":{"__isSmartRef__":true,"id":9574},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9575},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9574":{"this":{"__isSmartRef__":true,"id":5612}},"9575":{"timestamp":{"__isSmartRef__":true,"id":9576},"user":"josi","tags":["gemtypes"]},"9576":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9577":{"varMapping":{"__isSmartRef__":true,"id":9578},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9578":{"this":{"__isSmartRef__":true,"id":5612}},"9579":{"timestamp":{"__isSmartRef__":true,"id":9580},"user":"josi","tags":["gemtypes"]},"9580":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9581":{"varMapping":{"__isSmartRef__":true,"id":9582},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9582":{"this":{"__isSmartRef__":true,"id":5612}},"9583":{"timestamp":{"__isSmartRef__":true,"id":9584},"user":"josi","tags":[]},"9584":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9585":{"varMapping":{"__isSmartRef__":true,"id":9586},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9587},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9586":{"this":{"__isSmartRef__":true,"id":5612}},"9587":{"timestamp":{"__isSmartRef__":true,"id":9588},"user":"josi","tags":[]},"9588":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9589":{"varMapping":{"__isSmartRef__":true,"id":9590},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9591},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9590":{"this":{"__isSmartRef__":true,"id":5612}},"9591":{"timestamp":{"__isSmartRef__":true,"id":9592},"user":"soergel","tags":[]},"9592":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9593":{"varMapping":{"__isSmartRef__":true,"id":9594},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9594":{"this":{"__isSmartRef__":true,"id":5612}},"9595":{"timestamp":{"__isSmartRef__":true,"id":9596},"user":"soergel","tags":[]},"9596":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9597":{"varMapping":{"__isSmartRef__":true,"id":9598},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9599},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9598":{"this":{"__isSmartRef__":true,"id":5612}},"9599":{"timestamp":{"__isSmartRef__":true,"id":9600},"user":"soergel","tags":[]},"9600":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9601":{"varMapping":{"__isSmartRef__":true,"id":9602},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9603},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9602":{"this":{"__isSmartRef__":true,"id":5612}},"9603":{"timestamp":{"__isSmartRef__":true,"id":9604},"user":"soergel","tags":["debug"]},"9604":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9605":{"varMapping":{"__isSmartRef__":true,"id":9606},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9606":{"this":{"__isSmartRef__":true,"id":5612}},"9607":{"timestamp":{"__isSmartRef__":true,"id":9608},"user":"soergel","tags":["debug"]},"9608":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9609":{"varMapping":{"__isSmartRef__":true,"id":9610},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9611},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9610":{"this":{"__isSmartRef__":true,"id":5612}},"9611":{"timestamp":{"__isSmartRef__":true,"id":9612},"user":"soergel","tags":[]},"9612":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"9613":{"varMapping":{"__isSmartRef__":true,"id":9614},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9614":{"this":{"__isSmartRef__":true,"id":5612}},"9615":{"timestamp":{"__isSmartRef__":true,"id":9616},"user":"jan.sandbrink","tags":[]},"9616":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"9617":{"varMapping":{"__isSmartRef__":true,"id":9618},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":9619},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9618":{"this":{"__isSmartRef__":true,"id":5612}},"9619":{"timestamp":{"__isSmartRef__":true,"id":9620},"user":"jan.sandbrink","tags":[]},"9620":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"9621":{"varMapping":{"__isSmartRef__":true,"id":9622},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9622":{"this":{"__isSmartRef__":true,"id":5612}},"9623":{"timestamp":{"__isSmartRef__":true,"id":9624},"user":"jan.sandbrink","tags":[]},"9624":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"9625":{"varMapping":{"__isSmartRef__":true,"id":9626},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":9627},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9626":{"this":{"__isSmartRef__":true,"id":5612}},"9627":{"timestamp":{"__isSmartRef__":true,"id":9628},"user":"jan.sandbrink","tags":[]},"9628":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"9629":{"varMapping":{"__isSmartRef__":true,"id":9630},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":9631},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9630":{"this":{"__isSmartRef__":true,"id":5612}},"9631":{"timestamp":{"__isSmartRef__":true,"id":9632},"user":"josi","tags":["gemtypes"]},"9632":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"9633":{"varMapping":{"__isSmartRef__":true,"id":9634},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":9635},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9634":{"this":{"__isSmartRef__":true,"id":5612}},"9635":{"timestamp":{"__isSmartRef__":true,"id":9636},"user":"josi","tags":["gemtypes"]},"9636":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"9637":{"varMapping":{"__isSmartRef__":true,"id":9638},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9639},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9638":{"this":{"__isSmartRef__":true,"id":5612}},"9639":{"timestamp":{"__isSmartRef__":true,"id":9640},"user":"soergel","tags":["debug"]},"9640":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"9641":{"varMapping":{"__isSmartRef__":true,"id":9642},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9643},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9642":{"this":{"__isSmartRef__":true,"id":5612}},"9643":{"timestamp":{"__isSmartRef__":true,"id":9644},"user":"soergel","tags":["debug"]},"9644":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"9645":{"varMapping":{"__isSmartRef__":true,"id":9646},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9647},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9646":{"this":{"__isSmartRef__":true,"id":5612}},"9647":{"timestamp":{"__isSmartRef__":true,"id":9648},"user":"josi","tags":["gemtypes"]},"9648":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9649":{"varMapping":{"__isSmartRef__":true,"id":9650},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9651},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9650":{"this":{"__isSmartRef__":true,"id":5612}},"9651":{"timestamp":{"__isSmartRef__":true,"id":9652},"user":"soergel","tags":[]},"9652":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9653":{"varMapping":{"__isSmartRef__":true,"id":9654},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9655},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9654":{"this":{"__isSmartRef__":true,"id":5612}},"9655":{"timestamp":{"__isSmartRef__":true,"id":9656},"user":"soergel","tags":[]},"9656":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9657":{"varMapping":{"__isSmartRef__":true,"id":9658},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9659},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9658":{"this":{"__isSmartRef__":true,"id":5612}},"9659":{"timestamp":{"__isSmartRef__":true,"id":9660},"user":"soergel","tags":[]},"9660":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9661":{"varMapping":{"__isSmartRef__":true,"id":9662},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9663},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9662":{"this":{"__isSmartRef__":true,"id":5612}},"9663":{"timestamp":{"__isSmartRef__":true,"id":9664},"user":"josi","tags":["gemtypes"]},"9664":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9665":{"varMapping":{"__isSmartRef__":true,"id":9666},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9667},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9666":{"this":{"__isSmartRef__":true,"id":5612}},"9667":{"timestamp":{"__isSmartRef__":true,"id":9668},"user":"josi","tags":["gemtypes"]},"9668":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9669":{"varMapping":{"__isSmartRef__":true,"id":9670},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9671},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9670":{"this":{"__isSmartRef__":true,"id":5612}},"9671":{"timestamp":{"__isSmartRef__":true,"id":9672},"user":"jan.sandbrink","tags":[]},"9672":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9673":{"become":{"__isSmartRef__":true,"id":9674},"onMouseDown":{"__isSmartRef__":true,"id":9678},"updatePicture":{"__isSmartRef__":true,"id":9686},"ruby":{"__isSmartRef__":true,"id":9690},"switchPositionWith":{"__isSmartRef__":true,"id":9694},"addNeighbour":{"__isSmartRef__":true,"id":9698},"amethyst":{"__isSmartRef__":true,"id":9702},"diopside":{"__isSmartRef__":true,"id":9706},"gemTypes":{"__isSmartRef__":true,"id":9710},"becomeRandomGem":{"__isSmartRef__":true,"id":9714},"mark":{"__isSmartRef__":true,"id":9718},"unmark":{"__isSmartRef__":true,"id":9722},"hasNeighbour":{"__isSmartRef__":true,"id":9726},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9730},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9734},"disappear":{"__isSmartRef__":true,"id":9738},"findStreakStart":{"__isSmartRef__":true,"id":9742},"buildStreak":{"__isSmartRef__":true,"id":9746},"scoreStreak":{"__isSmartRef__":true,"id":9750},"tryToStreak":{"__isSmartRef__":true,"id":9754},"blueDiamond":{"__isSmartRef__":true,"id":9758},"prehnite":{"__isSmartRef__":true,"id":9762},"debugUnmark":{"__isSmartRef__":true,"id":9766},"debugMark":{"__isSmartRef__":true,"id":9770},"citrine":{"__isSmartRef__":true,"id":9774},"move":{"__isSmartRef__":true,"id":9778},"performMovement":{"__isSmartRef__":true,"id":9782},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9786},"zircon":{"__isSmartRef__":true,"id":9790},"emerald":{"__isSmartRef__":true,"id":9794},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9798}},"9674":{"varMapping":{"__isSmartRef__":true,"id":9675},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9676},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9675":{"this":{"__isSmartRef__":true,"id":5480}},"9676":{"timestamp":{"__isSmartRef__":true,"id":9677},"user":"josi","tags":[]},"9677":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9678":{"varMapping":{"__isSmartRef__":true,"id":9679},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9684},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9679":{"this":{"__isSmartRef__":true,"id":5480},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9680}},"9680":{"$super":{"__isSmartRef__":true,"id":9681}},"9681":{"varMapping":{"__isSmartRef__":true,"id":9682},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9683},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9682":{"obj":{"__isSmartRef__":true,"id":5480},"name":"onMouseDown"},"9683":{},"9684":{"timestamp":{"__isSmartRef__":true,"id":9685},"user":"soergel","tags":[]},"9685":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9686":{"varMapping":{"__isSmartRef__":true,"id":9687},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9688},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9687":{"this":{"__isSmartRef__":true,"id":5480}},"9688":{"timestamp":{"__isSmartRef__":true,"id":9689},"user":"soergel","tags":[]},"9689":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9690":{"varMapping":{"__isSmartRef__":true,"id":9691},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9692},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9691":{"this":{"__isSmartRef__":true,"id":5480}},"9692":{"timestamp":{"__isSmartRef__":true,"id":9693},"user":"josi","tags":["gemtypes"]},"9693":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9694":{"varMapping":{"__isSmartRef__":true,"id":9695},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9696},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9695":{"this":{"__isSmartRef__":true,"id":5480}},"9696":{"timestamp":{"__isSmartRef__":true,"id":9697},"user":"jan.sandbrink","tags":[]},"9697":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9698":{"varMapping":{"__isSmartRef__":true,"id":9699},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9700},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9699":{"this":{"__isSmartRef__":true,"id":5480}},"9700":{"timestamp":{"__isSmartRef__":true,"id":9701},"user":"jan.sandbrink","tags":[]},"9701":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9702":{"varMapping":{"__isSmartRef__":true,"id":9703},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9704},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9703":{"this":{"__isSmartRef__":true,"id":5480}},"9704":{"timestamp":{"__isSmartRef__":true,"id":9705},"user":"josi","tags":["gemtypes"]},"9705":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9706":{"varMapping":{"__isSmartRef__":true,"id":9707},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9708},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9707":{"this":{"__isSmartRef__":true,"id":5480}},"9708":{"timestamp":{"__isSmartRef__":true,"id":9709},"user":"josi","tags":["gemtypes"]},"9709":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9710":{"varMapping":{"__isSmartRef__":true,"id":9711},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9712},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9711":{"this":{"__isSmartRef__":true,"id":5480}},"9712":{"timestamp":{"__isSmartRef__":true,"id":9713},"user":"josi","tags":[]},"9713":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9714":{"varMapping":{"__isSmartRef__":true,"id":9715},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9716},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9715":{"this":{"__isSmartRef__":true,"id":5480}},"9716":{"timestamp":{"__isSmartRef__":true,"id":9717},"user":"josi","tags":[]},"9717":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9718":{"varMapping":{"__isSmartRef__":true,"id":9719},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9720},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9719":{"this":{"__isSmartRef__":true,"id":5480}},"9720":{"timestamp":{"__isSmartRef__":true,"id":9721},"user":"soergel","tags":[]},"9721":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9722":{"varMapping":{"__isSmartRef__":true,"id":9723},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9724},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9723":{"this":{"__isSmartRef__":true,"id":5480}},"9724":{"timestamp":{"__isSmartRef__":true,"id":9725},"user":"soergel","tags":[]},"9725":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9726":{"varMapping":{"__isSmartRef__":true,"id":9727},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9728},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9727":{"this":{"__isSmartRef__":true,"id":5480}},"9728":{"timestamp":{"__isSmartRef__":true,"id":9729},"user":"soergel","tags":[]},"9729":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9730":{"varMapping":{"__isSmartRef__":true,"id":9731},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9732},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9731":{"this":{"__isSmartRef__":true,"id":5480}},"9732":{"timestamp":{"__isSmartRef__":true,"id":9733},"user":"soergel","tags":["debug"]},"9733":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9734":{"varMapping":{"__isSmartRef__":true,"id":9735},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9736},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9735":{"this":{"__isSmartRef__":true,"id":5480}},"9736":{"timestamp":{"__isSmartRef__":true,"id":9737},"user":"soergel","tags":["debug"]},"9737":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9738":{"varMapping":{"__isSmartRef__":true,"id":9739},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9740},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9739":{"this":{"__isSmartRef__":true,"id":5480}},"9740":{"timestamp":{"__isSmartRef__":true,"id":9741},"user":"soergel","tags":[]},"9741":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"9742":{"varMapping":{"__isSmartRef__":true,"id":9743},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9744},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9743":{"this":{"__isSmartRef__":true,"id":5480}},"9744":{"timestamp":{"__isSmartRef__":true,"id":9745},"user":"jan.sandbrink","tags":[]},"9745":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"9746":{"varMapping":{"__isSmartRef__":true,"id":9747},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":9748},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9747":{"this":{"__isSmartRef__":true,"id":5480}},"9748":{"timestamp":{"__isSmartRef__":true,"id":9749},"user":"jan.sandbrink","tags":[]},"9749":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"9750":{"varMapping":{"__isSmartRef__":true,"id":9751},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9752},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9751":{"this":{"__isSmartRef__":true,"id":5480}},"9752":{"timestamp":{"__isSmartRef__":true,"id":9753},"user":"jan.sandbrink","tags":[]},"9753":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"9754":{"varMapping":{"__isSmartRef__":true,"id":9755},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":9756},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9755":{"this":{"__isSmartRef__":true,"id":5480}},"9756":{"timestamp":{"__isSmartRef__":true,"id":9757},"user":"jan.sandbrink","tags":[]},"9757":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"9758":{"varMapping":{"__isSmartRef__":true,"id":9759},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":9760},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9759":{"this":{"__isSmartRef__":true,"id":5480}},"9760":{"timestamp":{"__isSmartRef__":true,"id":9761},"user":"josi","tags":["gemtypes"]},"9761":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"9762":{"varMapping":{"__isSmartRef__":true,"id":9763},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":9764},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9763":{"this":{"__isSmartRef__":true,"id":5480}},"9764":{"timestamp":{"__isSmartRef__":true,"id":9765},"user":"josi","tags":["gemtypes"]},"9765":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"9766":{"varMapping":{"__isSmartRef__":true,"id":9767},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9768},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9767":{"this":{"__isSmartRef__":true,"id":5480}},"9768":{"timestamp":{"__isSmartRef__":true,"id":9769},"user":"soergel","tags":["debug"]},"9769":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"9770":{"varMapping":{"__isSmartRef__":true,"id":9771},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9772},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9771":{"this":{"__isSmartRef__":true,"id":5480}},"9772":{"timestamp":{"__isSmartRef__":true,"id":9773},"user":"soergel","tags":["debug"]},"9773":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"9774":{"varMapping":{"__isSmartRef__":true,"id":9775},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9775":{"this":{"__isSmartRef__":true,"id":5480}},"9776":{"timestamp":{"__isSmartRef__":true,"id":9777},"user":"josi","tags":["gemtypes"]},"9777":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9778":{"varMapping":{"__isSmartRef__":true,"id":9779},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9780},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9779":{"this":{"__isSmartRef__":true,"id":5480}},"9780":{"timestamp":{"__isSmartRef__":true,"id":9781},"user":"soergel","tags":[]},"9781":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9782":{"varMapping":{"__isSmartRef__":true,"id":9783},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9784},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9783":{"this":{"__isSmartRef__":true,"id":5480}},"9784":{"timestamp":{"__isSmartRef__":true,"id":9785},"user":"soergel","tags":[]},"9785":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9786":{"varMapping":{"__isSmartRef__":true,"id":9787},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9788},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9787":{"this":{"__isSmartRef__":true,"id":5480}},"9788":{"timestamp":{"__isSmartRef__":true,"id":9789},"user":"soergel","tags":[]},"9789":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9790":{"varMapping":{"__isSmartRef__":true,"id":9791},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9792},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9791":{"this":{"__isSmartRef__":true,"id":5480}},"9792":{"timestamp":{"__isSmartRef__":true,"id":9793},"user":"josi","tags":["gemtypes"]},"9793":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9794":{"varMapping":{"__isSmartRef__":true,"id":9795},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9796},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9795":{"this":{"__isSmartRef__":true,"id":5480}},"9796":{"timestamp":{"__isSmartRef__":true,"id":9797},"user":"josi","tags":["gemtypes"]},"9797":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9798":{"varMapping":{"__isSmartRef__":true,"id":9799},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9800},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9799":{"this":{"__isSmartRef__":true,"id":5480}},"9800":{"timestamp":{"__isSmartRef__":true,"id":9801},"user":"jan.sandbrink","tags":[]},"9801":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9802":{"become":{"__isSmartRef__":true,"id":9803},"onMouseDown":{"__isSmartRef__":true,"id":9807},"updatePicture":{"__isSmartRef__":true,"id":9815},"ruby":{"__isSmartRef__":true,"id":9819},"switchPositionWith":{"__isSmartRef__":true,"id":9823},"addNeighbour":{"__isSmartRef__":true,"id":9827},"amethyst":{"__isSmartRef__":true,"id":9831},"diopside":{"__isSmartRef__":true,"id":9835},"gemTypes":{"__isSmartRef__":true,"id":9839},"becomeRandomGem":{"__isSmartRef__":true,"id":9843},"mark":{"__isSmartRef__":true,"id":9847},"unmark":{"__isSmartRef__":true,"id":9851},"hasNeighbour":{"__isSmartRef__":true,"id":9855},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9859},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9863},"disappear":{"__isSmartRef__":true,"id":9867},"findStreakStart":{"__isSmartRef__":true,"id":9871},"buildStreak":{"__isSmartRef__":true,"id":9875},"scoreStreak":{"__isSmartRef__":true,"id":9879},"tryToStreak":{"__isSmartRef__":true,"id":9883},"blueDiamond":{"__isSmartRef__":true,"id":9887},"prehnite":{"__isSmartRef__":true,"id":9891},"debugUnmark":{"__isSmartRef__":true,"id":9895},"debugMark":{"__isSmartRef__":true,"id":9899},"citrine":{"__isSmartRef__":true,"id":9903},"move":{"__isSmartRef__":true,"id":9907},"performMovement":{"__isSmartRef__":true,"id":9911},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":9915},"zircon":{"__isSmartRef__":true,"id":9919},"emerald":{"__isSmartRef__":true,"id":9923},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":9927}},"9803":{"varMapping":{"__isSmartRef__":true,"id":9804},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9805},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9804":{"this":{"__isSmartRef__":true,"id":5379}},"9805":{"timestamp":{"__isSmartRef__":true,"id":9806},"user":"josi","tags":[]},"9806":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9807":{"varMapping":{"__isSmartRef__":true,"id":9808},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9813},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9808":{"this":{"__isSmartRef__":true,"id":5379},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9809}},"9809":{"$super":{"__isSmartRef__":true,"id":9810}},"9810":{"varMapping":{"__isSmartRef__":true,"id":9811},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9812},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9811":{"obj":{"__isSmartRef__":true,"id":5379},"name":"onMouseDown"},"9812":{},"9813":{"timestamp":{"__isSmartRef__":true,"id":9814},"user":"soergel","tags":[]},"9814":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9815":{"varMapping":{"__isSmartRef__":true,"id":9816},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9817},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9816":{"this":{"__isSmartRef__":true,"id":5379}},"9817":{"timestamp":{"__isSmartRef__":true,"id":9818},"user":"soergel","tags":[]},"9818":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9819":{"varMapping":{"__isSmartRef__":true,"id":9820},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9821},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9820":{"this":{"__isSmartRef__":true,"id":5379}},"9821":{"timestamp":{"__isSmartRef__":true,"id":9822},"user":"josi","tags":["gemtypes"]},"9822":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9823":{"varMapping":{"__isSmartRef__":true,"id":9824},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9825},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9824":{"this":{"__isSmartRef__":true,"id":5379}},"9825":{"timestamp":{"__isSmartRef__":true,"id":9826},"user":"jan.sandbrink","tags":[]},"9826":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9827":{"varMapping":{"__isSmartRef__":true,"id":9828},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9829},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9828":{"this":{"__isSmartRef__":true,"id":5379}},"9829":{"timestamp":{"__isSmartRef__":true,"id":9830},"user":"jan.sandbrink","tags":[]},"9830":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9831":{"varMapping":{"__isSmartRef__":true,"id":9832},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9833},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9832":{"this":{"__isSmartRef__":true,"id":5379}},"9833":{"timestamp":{"__isSmartRef__":true,"id":9834},"user":"josi","tags":["gemtypes"]},"9834":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9835":{"varMapping":{"__isSmartRef__":true,"id":9836},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9837},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9836":{"this":{"__isSmartRef__":true,"id":5379}},"9837":{"timestamp":{"__isSmartRef__":true,"id":9838},"user":"josi","tags":["gemtypes"]},"9838":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9839":{"varMapping":{"__isSmartRef__":true,"id":9840},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9841},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9840":{"this":{"__isSmartRef__":true,"id":5379}},"9841":{"timestamp":{"__isSmartRef__":true,"id":9842},"user":"josi","tags":[]},"9842":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9843":{"varMapping":{"__isSmartRef__":true,"id":9844},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9845},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9844":{"this":{"__isSmartRef__":true,"id":5379}},"9845":{"timestamp":{"__isSmartRef__":true,"id":9846},"user":"josi","tags":[]},"9846":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9847":{"varMapping":{"__isSmartRef__":true,"id":9848},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9849},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9848":{"this":{"__isSmartRef__":true,"id":5379}},"9849":{"timestamp":{"__isSmartRef__":true,"id":9850},"user":"soergel","tags":[]},"9850":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9851":{"varMapping":{"__isSmartRef__":true,"id":9852},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9853},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9852":{"this":{"__isSmartRef__":true,"id":5379}},"9853":{"timestamp":{"__isSmartRef__":true,"id":9854},"user":"soergel","tags":[]},"9854":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9855":{"varMapping":{"__isSmartRef__":true,"id":9856},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9857},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9856":{"this":{"__isSmartRef__":true,"id":5379}},"9857":{"timestamp":{"__isSmartRef__":true,"id":9858},"user":"soergel","tags":[]},"9858":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9859":{"varMapping":{"__isSmartRef__":true,"id":9860},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9861},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9860":{"this":{"__isSmartRef__":true,"id":5379}},"9861":{"timestamp":{"__isSmartRef__":true,"id":9862},"user":"soergel","tags":["debug"]},"9862":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9863":{"varMapping":{"__isSmartRef__":true,"id":9864},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9865},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9864":{"this":{"__isSmartRef__":true,"id":5379}},"9865":{"timestamp":{"__isSmartRef__":true,"id":9866},"user":"soergel","tags":["debug"]},"9866":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9867":{"varMapping":{"__isSmartRef__":true,"id":9868},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9869},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9868":{"this":{"__isSmartRef__":true,"id":5379}},"9869":{"timestamp":{"__isSmartRef__":true,"id":9870},"user":"soergel","tags":[]},"9870":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"9871":{"varMapping":{"__isSmartRef__":true,"id":9872},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9873},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9872":{"this":{"__isSmartRef__":true,"id":5379}},"9873":{"timestamp":{"__isSmartRef__":true,"id":9874},"user":"jan.sandbrink","tags":[]},"9874":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"9875":{"varMapping":{"__isSmartRef__":true,"id":9876},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":9877},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9876":{"this":{"__isSmartRef__":true,"id":5379}},"9877":{"timestamp":{"__isSmartRef__":true,"id":9878},"user":"jan.sandbrink","tags":[]},"9878":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"9879":{"varMapping":{"__isSmartRef__":true,"id":9880},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9881},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9880":{"this":{"__isSmartRef__":true,"id":5379}},"9881":{"timestamp":{"__isSmartRef__":true,"id":9882},"user":"jan.sandbrink","tags":[]},"9882":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"9883":{"varMapping":{"__isSmartRef__":true,"id":9884},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":9885},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9884":{"this":{"__isSmartRef__":true,"id":5379}},"9885":{"timestamp":{"__isSmartRef__":true,"id":9886},"user":"jan.sandbrink","tags":[]},"9886":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"9887":{"varMapping":{"__isSmartRef__":true,"id":9888},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":9889},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9888":{"this":{"__isSmartRef__":true,"id":5379}},"9889":{"timestamp":{"__isSmartRef__":true,"id":9890},"user":"josi","tags":["gemtypes"]},"9890":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"9891":{"varMapping":{"__isSmartRef__":true,"id":9892},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":9893},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9892":{"this":{"__isSmartRef__":true,"id":5379}},"9893":{"timestamp":{"__isSmartRef__":true,"id":9894},"user":"josi","tags":["gemtypes"]},"9894":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"9895":{"varMapping":{"__isSmartRef__":true,"id":9896},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":9897},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9896":{"this":{"__isSmartRef__":true,"id":5379}},"9897":{"timestamp":{"__isSmartRef__":true,"id":9898},"user":"soergel","tags":["debug"]},"9898":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"9899":{"varMapping":{"__isSmartRef__":true,"id":9900},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":9901},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9900":{"this":{"__isSmartRef__":true,"id":5379}},"9901":{"timestamp":{"__isSmartRef__":true,"id":9902},"user":"soergel","tags":["debug"]},"9902":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"9903":{"varMapping":{"__isSmartRef__":true,"id":9904},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":9905},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9904":{"this":{"__isSmartRef__":true,"id":5379}},"9905":{"timestamp":{"__isSmartRef__":true,"id":9906},"user":"josi","tags":["gemtypes"]},"9906":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"9907":{"varMapping":{"__isSmartRef__":true,"id":9908},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":9909},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9908":{"this":{"__isSmartRef__":true,"id":5379}},"9909":{"timestamp":{"__isSmartRef__":true,"id":9910},"user":"soergel","tags":[]},"9910":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"9911":{"varMapping":{"__isSmartRef__":true,"id":9912},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":9913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9912":{"this":{"__isSmartRef__":true,"id":5379}},"9913":{"timestamp":{"__isSmartRef__":true,"id":9914},"user":"soergel","tags":[]},"9914":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"9915":{"varMapping":{"__isSmartRef__":true,"id":9916},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":9917},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9916":{"this":{"__isSmartRef__":true,"id":5379}},"9917":{"timestamp":{"__isSmartRef__":true,"id":9918},"user":"soergel","tags":[]},"9918":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"9919":{"varMapping":{"__isSmartRef__":true,"id":9920},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":9921},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9920":{"this":{"__isSmartRef__":true,"id":5379}},"9921":{"timestamp":{"__isSmartRef__":true,"id":9922},"user":"josi","tags":["gemtypes"]},"9922":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"9923":{"varMapping":{"__isSmartRef__":true,"id":9924},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":9925},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9924":{"this":{"__isSmartRef__":true,"id":5379}},"9925":{"timestamp":{"__isSmartRef__":true,"id":9926},"user":"josi","tags":["gemtypes"]},"9926":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"9927":{"varMapping":{"__isSmartRef__":true,"id":9928},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":9929},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9928":{"this":{"__isSmartRef__":true,"id":5379}},"9929":{"timestamp":{"__isSmartRef__":true,"id":9930},"user":"jan.sandbrink","tags":[]},"9930":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"9931":{"x":148.61108261184663,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"9932":{"become":{"__isSmartRef__":true,"id":9933},"onMouseDown":{"__isSmartRef__":true,"id":9937},"updatePicture":{"__isSmartRef__":true,"id":9945},"ruby":{"__isSmartRef__":true,"id":9949},"switchPositionWith":{"__isSmartRef__":true,"id":9953},"addNeighbour":{"__isSmartRef__":true,"id":9957},"amethyst":{"__isSmartRef__":true,"id":9961},"diopside":{"__isSmartRef__":true,"id":9965},"gemTypes":{"__isSmartRef__":true,"id":9969},"becomeRandomGem":{"__isSmartRef__":true,"id":9973},"mark":{"__isSmartRef__":true,"id":9977},"unmark":{"__isSmartRef__":true,"id":9981},"hasNeighbour":{"__isSmartRef__":true,"id":9985},"debugMarkNeighbours":{"__isSmartRef__":true,"id":9989},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":9993},"disappear":{"__isSmartRef__":true,"id":9997},"findStreakStart":{"__isSmartRef__":true,"id":10001},"buildStreak":{"__isSmartRef__":true,"id":10005},"scoreStreak":{"__isSmartRef__":true,"id":10009},"tryToStreak":{"__isSmartRef__":true,"id":10013},"blueDiamond":{"__isSmartRef__":true,"id":10017},"prehnite":{"__isSmartRef__":true,"id":10021},"debugUnmark":{"__isSmartRef__":true,"id":10025},"debugMark":{"__isSmartRef__":true,"id":10029},"citrine":{"__isSmartRef__":true,"id":10033},"move":{"__isSmartRef__":true,"id":10037},"performMovement":{"__isSmartRef__":true,"id":10041},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10045},"zircon":{"__isSmartRef__":true,"id":10049},"emerald":{"__isSmartRef__":true,"id":10053},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10057}},"9933":{"varMapping":{"__isSmartRef__":true,"id":9934},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9935},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9934":{"this":{"__isSmartRef__":true,"id":5244}},"9935":{"timestamp":{"__isSmartRef__":true,"id":9936},"user":"josi","tags":[]},"9936":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"9937":{"varMapping":{"__isSmartRef__":true,"id":9938},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":9943},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9938":{"this":{"__isSmartRef__":true,"id":5244},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":9939}},"9939":{"$super":{"__isSmartRef__":true,"id":9940}},"9940":{"varMapping":{"__isSmartRef__":true,"id":9941},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":9942},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9941":{"obj":{"__isSmartRef__":true,"id":5244},"name":"onMouseDown"},"9942":{},"9943":{"timestamp":{"__isSmartRef__":true,"id":9944},"user":"soergel","tags":[]},"9944":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"9945":{"varMapping":{"__isSmartRef__":true,"id":9946},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":9947},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9946":{"this":{"__isSmartRef__":true,"id":5244}},"9947":{"timestamp":{"__isSmartRef__":true,"id":9948},"user":"soergel","tags":[]},"9948":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"9949":{"varMapping":{"__isSmartRef__":true,"id":9950},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":9951},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9950":{"this":{"__isSmartRef__":true,"id":5244}},"9951":{"timestamp":{"__isSmartRef__":true,"id":9952},"user":"josi","tags":["gemtypes"]},"9952":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"9953":{"varMapping":{"__isSmartRef__":true,"id":9954},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":9955},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9954":{"this":{"__isSmartRef__":true,"id":5244}},"9955":{"timestamp":{"__isSmartRef__":true,"id":9956},"user":"jan.sandbrink","tags":[]},"9956":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"9957":{"varMapping":{"__isSmartRef__":true,"id":9958},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9959},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9958":{"this":{"__isSmartRef__":true,"id":5244}},"9959":{"timestamp":{"__isSmartRef__":true,"id":9960},"user":"jan.sandbrink","tags":[]},"9960":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"9961":{"varMapping":{"__isSmartRef__":true,"id":9962},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":9963},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9962":{"this":{"__isSmartRef__":true,"id":5244}},"9963":{"timestamp":{"__isSmartRef__":true,"id":9964},"user":"josi","tags":["gemtypes"]},"9964":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"9965":{"varMapping":{"__isSmartRef__":true,"id":9966},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":9967},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9966":{"this":{"__isSmartRef__":true,"id":5244}},"9967":{"timestamp":{"__isSmartRef__":true,"id":9968},"user":"josi","tags":["gemtypes"]},"9968":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"9969":{"varMapping":{"__isSmartRef__":true,"id":9970},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":9971},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9970":{"this":{"__isSmartRef__":true,"id":5244}},"9971":{"timestamp":{"__isSmartRef__":true,"id":9972},"user":"josi","tags":[]},"9972":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"9973":{"varMapping":{"__isSmartRef__":true,"id":9974},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":9975},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9974":{"this":{"__isSmartRef__":true,"id":5244}},"9975":{"timestamp":{"__isSmartRef__":true,"id":9976},"user":"josi","tags":[]},"9976":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"9977":{"varMapping":{"__isSmartRef__":true,"id":9978},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":9979},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9978":{"this":{"__isSmartRef__":true,"id":5244}},"9979":{"timestamp":{"__isSmartRef__":true,"id":9980},"user":"soergel","tags":[]},"9980":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"9981":{"varMapping":{"__isSmartRef__":true,"id":9982},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":9983},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9982":{"this":{"__isSmartRef__":true,"id":5244}},"9983":{"timestamp":{"__isSmartRef__":true,"id":9984},"user":"soergel","tags":[]},"9984":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"9985":{"varMapping":{"__isSmartRef__":true,"id":9986},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":9987},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9986":{"this":{"__isSmartRef__":true,"id":5244}},"9987":{"timestamp":{"__isSmartRef__":true,"id":9988},"user":"soergel","tags":[]},"9988":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"9989":{"varMapping":{"__isSmartRef__":true,"id":9990},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9991},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9990":{"this":{"__isSmartRef__":true,"id":5244}},"9991":{"timestamp":{"__isSmartRef__":true,"id":9992},"user":"soergel","tags":["debug"]},"9992":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"9993":{"varMapping":{"__isSmartRef__":true,"id":9994},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":9995},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9994":{"this":{"__isSmartRef__":true,"id":5244}},"9995":{"timestamp":{"__isSmartRef__":true,"id":9996},"user":"soergel","tags":["debug"]},"9996":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"9997":{"varMapping":{"__isSmartRef__":true,"id":9998},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":9999},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"9998":{"this":{"__isSmartRef__":true,"id":5244}},"9999":{"timestamp":{"__isSmartRef__":true,"id":10000},"user":"soergel","tags":[]},"10000":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10001":{"varMapping":{"__isSmartRef__":true,"id":10002},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10003},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10002":{"this":{"__isSmartRef__":true,"id":5244}},"10003":{"timestamp":{"__isSmartRef__":true,"id":10004},"user":"jan.sandbrink","tags":[]},"10004":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10005":{"varMapping":{"__isSmartRef__":true,"id":10006},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10007},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10006":{"this":{"__isSmartRef__":true,"id":5244}},"10007":{"timestamp":{"__isSmartRef__":true,"id":10008},"user":"jan.sandbrink","tags":[]},"10008":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10009":{"varMapping":{"__isSmartRef__":true,"id":10010},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10011},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10010":{"this":{"__isSmartRef__":true,"id":5244}},"10011":{"timestamp":{"__isSmartRef__":true,"id":10012},"user":"jan.sandbrink","tags":[]},"10012":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10013":{"varMapping":{"__isSmartRef__":true,"id":10014},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10015},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10014":{"this":{"__isSmartRef__":true,"id":5244}},"10015":{"timestamp":{"__isSmartRef__":true,"id":10016},"user":"jan.sandbrink","tags":[]},"10016":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10017":{"varMapping":{"__isSmartRef__":true,"id":10018},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10019},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10018":{"this":{"__isSmartRef__":true,"id":5244}},"10019":{"timestamp":{"__isSmartRef__":true,"id":10020},"user":"josi","tags":["gemtypes"]},"10020":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10021":{"varMapping":{"__isSmartRef__":true,"id":10022},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10023},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10022":{"this":{"__isSmartRef__":true,"id":5244}},"10023":{"timestamp":{"__isSmartRef__":true,"id":10024},"user":"josi","tags":["gemtypes"]},"10024":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10025":{"varMapping":{"__isSmartRef__":true,"id":10026},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10027},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10026":{"this":{"__isSmartRef__":true,"id":5244}},"10027":{"timestamp":{"__isSmartRef__":true,"id":10028},"user":"soergel","tags":["debug"]},"10028":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10029":{"varMapping":{"__isSmartRef__":true,"id":10030},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10031},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10030":{"this":{"__isSmartRef__":true,"id":5244}},"10031":{"timestamp":{"__isSmartRef__":true,"id":10032},"user":"soergel","tags":["debug"]},"10032":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10033":{"varMapping":{"__isSmartRef__":true,"id":10034},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10035},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10034":{"this":{"__isSmartRef__":true,"id":5244}},"10035":{"timestamp":{"__isSmartRef__":true,"id":10036},"user":"josi","tags":["gemtypes"]},"10036":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10037":{"varMapping":{"__isSmartRef__":true,"id":10038},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10039},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10038":{"this":{"__isSmartRef__":true,"id":5244}},"10039":{"timestamp":{"__isSmartRef__":true,"id":10040},"user":"soergel","tags":[]},"10040":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10041":{"varMapping":{"__isSmartRef__":true,"id":10042},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10043},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10042":{"this":{"__isSmartRef__":true,"id":5244}},"10043":{"timestamp":{"__isSmartRef__":true,"id":10044},"user":"soergel","tags":[]},"10044":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10045":{"varMapping":{"__isSmartRef__":true,"id":10046},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10047},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10046":{"this":{"__isSmartRef__":true,"id":5244}},"10047":{"timestamp":{"__isSmartRef__":true,"id":10048},"user":"soergel","tags":[]},"10048":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10049":{"varMapping":{"__isSmartRef__":true,"id":10050},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10051},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10050":{"this":{"__isSmartRef__":true,"id":5244}},"10051":{"timestamp":{"__isSmartRef__":true,"id":10052},"user":"josi","tags":["gemtypes"]},"10052":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10053":{"varMapping":{"__isSmartRef__":true,"id":10054},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10055},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10054":{"this":{"__isSmartRef__":true,"id":5244}},"10055":{"timestamp":{"__isSmartRef__":true,"id":10056},"user":"josi","tags":["gemtypes"]},"10056":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10057":{"varMapping":{"__isSmartRef__":true,"id":10058},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10059},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10058":{"this":{"__isSmartRef__":true,"id":5244}},"10059":{"timestamp":{"__isSmartRef__":true,"id":10060},"user":"jan.sandbrink","tags":[]},"10060":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10061":{"become":{"__isSmartRef__":true,"id":10062},"onMouseDown":{"__isSmartRef__":true,"id":10066},"updatePicture":{"__isSmartRef__":true,"id":10074},"ruby":{"__isSmartRef__":true,"id":10078},"switchPositionWith":{"__isSmartRef__":true,"id":10082},"addNeighbour":{"__isSmartRef__":true,"id":10086},"amethyst":{"__isSmartRef__":true,"id":10090},"diopside":{"__isSmartRef__":true,"id":10094},"gemTypes":{"__isSmartRef__":true,"id":10098},"becomeRandomGem":{"__isSmartRef__":true,"id":10102},"mark":{"__isSmartRef__":true,"id":10106},"unmark":{"__isSmartRef__":true,"id":10110},"hasNeighbour":{"__isSmartRef__":true,"id":10114},"debugMarkNeighbours":{"__isSmartRef__":true,"id":10118},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":10122},"disappear":{"__isSmartRef__":true,"id":10126},"findStreakStart":{"__isSmartRef__":true,"id":10130},"buildStreak":{"__isSmartRef__":true,"id":10134},"scoreStreak":{"__isSmartRef__":true,"id":10138},"tryToStreak":{"__isSmartRef__":true,"id":10142},"blueDiamond":{"__isSmartRef__":true,"id":10146},"prehnite":{"__isSmartRef__":true,"id":10150},"debugUnmark":{"__isSmartRef__":true,"id":10154},"debugMark":{"__isSmartRef__":true,"id":10158},"citrine":{"__isSmartRef__":true,"id":10162},"move":{"__isSmartRef__":true,"id":10166},"performMovement":{"__isSmartRef__":true,"id":10170},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10174},"zircon":{"__isSmartRef__":true,"id":10178},"emerald":{"__isSmartRef__":true,"id":10182},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10186}},"10062":{"varMapping":{"__isSmartRef__":true,"id":10063},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10064},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10063":{"this":{"__isSmartRef__":true,"id":5126}},"10064":{"timestamp":{"__isSmartRef__":true,"id":10065},"user":"josi","tags":[]},"10065":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10066":{"varMapping":{"__isSmartRef__":true,"id":10067},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10072},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10067":{"this":{"__isSmartRef__":true,"id":5126},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10068}},"10068":{"$super":{"__isSmartRef__":true,"id":10069}},"10069":{"varMapping":{"__isSmartRef__":true,"id":10070},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10071},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10070":{"obj":{"__isSmartRef__":true,"id":5126},"name":"onMouseDown"},"10071":{},"10072":{"timestamp":{"__isSmartRef__":true,"id":10073},"user":"soergel","tags":[]},"10073":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10074":{"varMapping":{"__isSmartRef__":true,"id":10075},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10076},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10075":{"this":{"__isSmartRef__":true,"id":5126}},"10076":{"timestamp":{"__isSmartRef__":true,"id":10077},"user":"soergel","tags":[]},"10077":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10078":{"varMapping":{"__isSmartRef__":true,"id":10079},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10080},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10079":{"this":{"__isSmartRef__":true,"id":5126}},"10080":{"timestamp":{"__isSmartRef__":true,"id":10081},"user":"josi","tags":["gemtypes"]},"10081":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10082":{"varMapping":{"__isSmartRef__":true,"id":10083},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10084},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10083":{"this":{"__isSmartRef__":true,"id":5126}},"10084":{"timestamp":{"__isSmartRef__":true,"id":10085},"user":"jan.sandbrink","tags":[]},"10085":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10086":{"varMapping":{"__isSmartRef__":true,"id":10087},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10088},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10087":{"this":{"__isSmartRef__":true,"id":5126}},"10088":{"timestamp":{"__isSmartRef__":true,"id":10089},"user":"jan.sandbrink","tags":[]},"10089":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10090":{"varMapping":{"__isSmartRef__":true,"id":10091},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10092},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10091":{"this":{"__isSmartRef__":true,"id":5126}},"10092":{"timestamp":{"__isSmartRef__":true,"id":10093},"user":"josi","tags":["gemtypes"]},"10093":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"10094":{"varMapping":{"__isSmartRef__":true,"id":10095},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":10096},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10095":{"this":{"__isSmartRef__":true,"id":5126}},"10096":{"timestamp":{"__isSmartRef__":true,"id":10097},"user":"josi","tags":["gemtypes"]},"10097":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"10098":{"varMapping":{"__isSmartRef__":true,"id":10099},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":10100},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10099":{"this":{"__isSmartRef__":true,"id":5126}},"10100":{"timestamp":{"__isSmartRef__":true,"id":10101},"user":"josi","tags":[]},"10101":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"10102":{"varMapping":{"__isSmartRef__":true,"id":10103},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":10104},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10103":{"this":{"__isSmartRef__":true,"id":5126}},"10104":{"timestamp":{"__isSmartRef__":true,"id":10105},"user":"josi","tags":[]},"10105":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"10106":{"varMapping":{"__isSmartRef__":true,"id":10107},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10108},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10107":{"this":{"__isSmartRef__":true,"id":5126}},"10108":{"timestamp":{"__isSmartRef__":true,"id":10109},"user":"soergel","tags":[]},"10109":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"10110":{"varMapping":{"__isSmartRef__":true,"id":10111},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":10112},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10111":{"this":{"__isSmartRef__":true,"id":5126}},"10112":{"timestamp":{"__isSmartRef__":true,"id":10113},"user":"soergel","tags":[]},"10113":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"10114":{"varMapping":{"__isSmartRef__":true,"id":10115},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":10116},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10115":{"this":{"__isSmartRef__":true,"id":5126}},"10116":{"timestamp":{"__isSmartRef__":true,"id":10117},"user":"soergel","tags":[]},"10117":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"10118":{"varMapping":{"__isSmartRef__":true,"id":10119},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10120},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10119":{"this":{"__isSmartRef__":true,"id":5126}},"10120":{"timestamp":{"__isSmartRef__":true,"id":10121},"user":"soergel","tags":["debug"]},"10121":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"10122":{"varMapping":{"__isSmartRef__":true,"id":10123},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10124},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10123":{"this":{"__isSmartRef__":true,"id":5126}},"10124":{"timestamp":{"__isSmartRef__":true,"id":10125},"user":"soergel","tags":["debug"]},"10125":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"10126":{"varMapping":{"__isSmartRef__":true,"id":10127},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10128},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10127":{"this":{"__isSmartRef__":true,"id":5126}},"10128":{"timestamp":{"__isSmartRef__":true,"id":10129},"user":"soergel","tags":[]},"10129":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10130":{"varMapping":{"__isSmartRef__":true,"id":10131},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10132},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10131":{"this":{"__isSmartRef__":true,"id":5126}},"10132":{"timestamp":{"__isSmartRef__":true,"id":10133},"user":"jan.sandbrink","tags":[]},"10133":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10134":{"varMapping":{"__isSmartRef__":true,"id":10135},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10136},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10135":{"this":{"__isSmartRef__":true,"id":5126}},"10136":{"timestamp":{"__isSmartRef__":true,"id":10137},"user":"jan.sandbrink","tags":[]},"10137":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10138":{"varMapping":{"__isSmartRef__":true,"id":10139},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10140},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10139":{"this":{"__isSmartRef__":true,"id":5126}},"10140":{"timestamp":{"__isSmartRef__":true,"id":10141},"user":"jan.sandbrink","tags":[]},"10141":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10142":{"varMapping":{"__isSmartRef__":true,"id":10143},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10144},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10143":{"this":{"__isSmartRef__":true,"id":5126}},"10144":{"timestamp":{"__isSmartRef__":true,"id":10145},"user":"jan.sandbrink","tags":[]},"10145":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10146":{"varMapping":{"__isSmartRef__":true,"id":10147},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10148},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10147":{"this":{"__isSmartRef__":true,"id":5126}},"10148":{"timestamp":{"__isSmartRef__":true,"id":10149},"user":"josi","tags":["gemtypes"]},"10149":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10150":{"varMapping":{"__isSmartRef__":true,"id":10151},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10152},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10151":{"this":{"__isSmartRef__":true,"id":5126}},"10152":{"timestamp":{"__isSmartRef__":true,"id":10153},"user":"josi","tags":["gemtypes"]},"10153":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10154":{"varMapping":{"__isSmartRef__":true,"id":10155},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10156},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10155":{"this":{"__isSmartRef__":true,"id":5126}},"10156":{"timestamp":{"__isSmartRef__":true,"id":10157},"user":"soergel","tags":["debug"]},"10157":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10158":{"varMapping":{"__isSmartRef__":true,"id":10159},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10160},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10159":{"this":{"__isSmartRef__":true,"id":5126}},"10160":{"timestamp":{"__isSmartRef__":true,"id":10161},"user":"soergel","tags":["debug"]},"10161":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10162":{"varMapping":{"__isSmartRef__":true,"id":10163},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10164},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10163":{"this":{"__isSmartRef__":true,"id":5126}},"10164":{"timestamp":{"__isSmartRef__":true,"id":10165},"user":"josi","tags":["gemtypes"]},"10165":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10166":{"varMapping":{"__isSmartRef__":true,"id":10167},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10168},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10167":{"this":{"__isSmartRef__":true,"id":5126}},"10168":{"timestamp":{"__isSmartRef__":true,"id":10169},"user":"soergel","tags":[]},"10169":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10170":{"varMapping":{"__isSmartRef__":true,"id":10171},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10172},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10171":{"this":{"__isSmartRef__":true,"id":5126}},"10172":{"timestamp":{"__isSmartRef__":true,"id":10173},"user":"soergel","tags":[]},"10173":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10174":{"varMapping":{"__isSmartRef__":true,"id":10175},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10176},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10175":{"this":{"__isSmartRef__":true,"id":5126}},"10176":{"timestamp":{"__isSmartRef__":true,"id":10177},"user":"soergel","tags":[]},"10177":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10178":{"varMapping":{"__isSmartRef__":true,"id":10179},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10180},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10179":{"this":{"__isSmartRef__":true,"id":5126}},"10180":{"timestamp":{"__isSmartRef__":true,"id":10181},"user":"josi","tags":["gemtypes"]},"10181":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10182":{"varMapping":{"__isSmartRef__":true,"id":10183},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10184},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10183":{"this":{"__isSmartRef__":true,"id":5126}},"10184":{"timestamp":{"__isSmartRef__":true,"id":10185},"user":"josi","tags":["gemtypes"]},"10185":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10186":{"varMapping":{"__isSmartRef__":true,"id":10187},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10188},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10187":{"this":{"__isSmartRef__":true,"id":5126}},"10188":{"timestamp":{"__isSmartRef__":true,"id":10189},"user":"jan.sandbrink","tags":[]},"10189":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10190":{"x":247.0184710197444,"y":256.9785309797539,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10191":{"become":{"__isSmartRef__":true,"id":10192},"onMouseDown":{"__isSmartRef__":true,"id":10196},"updatePicture":{"__isSmartRef__":true,"id":10204},"ruby":{"__isSmartRef__":true,"id":10208},"switchPositionWith":{"__isSmartRef__":true,"id":10212},"addNeighbour":{"__isSmartRef__":true,"id":10216},"amethyst":{"__isSmartRef__":true,"id":10220},"diopside":{"__isSmartRef__":true,"id":10224},"gemTypes":{"__isSmartRef__":true,"id":10228},"becomeRandomGem":{"__isSmartRef__":true,"id":10232},"mark":{"__isSmartRef__":true,"id":10236},"unmark":{"__isSmartRef__":true,"id":10240},"hasNeighbour":{"__isSmartRef__":true,"id":10244},"debugMarkNeighbours":{"__isSmartRef__":true,"id":10248},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":10252},"disappear":{"__isSmartRef__":true,"id":10256},"findStreakStart":{"__isSmartRef__":true,"id":10260},"buildStreak":{"__isSmartRef__":true,"id":10264},"scoreStreak":{"__isSmartRef__":true,"id":10268},"tryToStreak":{"__isSmartRef__":true,"id":10272},"blueDiamond":{"__isSmartRef__":true,"id":10276},"prehnite":{"__isSmartRef__":true,"id":10280},"debugUnmark":{"__isSmartRef__":true,"id":10284},"debugMark":{"__isSmartRef__":true,"id":10288},"citrine":{"__isSmartRef__":true,"id":10292},"move":{"__isSmartRef__":true,"id":10296},"performMovement":{"__isSmartRef__":true,"id":10300},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10304},"zircon":{"__isSmartRef__":true,"id":10308},"emerald":{"__isSmartRef__":true,"id":10312},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10316}},"10192":{"varMapping":{"__isSmartRef__":true,"id":10193},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10194},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10193":{"this":{"__isSmartRef__":true,"id":5008}},"10194":{"timestamp":{"__isSmartRef__":true,"id":10195},"user":"josi","tags":[]},"10195":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10196":{"varMapping":{"__isSmartRef__":true,"id":10197},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10202},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10197":{"this":{"__isSmartRef__":true,"id":5008},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10198}},"10198":{"$super":{"__isSmartRef__":true,"id":10199}},"10199":{"varMapping":{"__isSmartRef__":true,"id":10200},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10201},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10200":{"obj":{"__isSmartRef__":true,"id":5008},"name":"onMouseDown"},"10201":{},"10202":{"timestamp":{"__isSmartRef__":true,"id":10203},"user":"soergel","tags":[]},"10203":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10204":{"varMapping":{"__isSmartRef__":true,"id":10205},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10206},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10205":{"this":{"__isSmartRef__":true,"id":5008}},"10206":{"timestamp":{"__isSmartRef__":true,"id":10207},"user":"soergel","tags":[]},"10207":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10208":{"varMapping":{"__isSmartRef__":true,"id":10209},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10210},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10209":{"this":{"__isSmartRef__":true,"id":5008}},"10210":{"timestamp":{"__isSmartRef__":true,"id":10211},"user":"josi","tags":["gemtypes"]},"10211":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10212":{"varMapping":{"__isSmartRef__":true,"id":10213},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10214},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10213":{"this":{"__isSmartRef__":true,"id":5008}},"10214":{"timestamp":{"__isSmartRef__":true,"id":10215},"user":"jan.sandbrink","tags":[]},"10215":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10216":{"varMapping":{"__isSmartRef__":true,"id":10217},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10218},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10217":{"this":{"__isSmartRef__":true,"id":5008}},"10218":{"timestamp":{"__isSmartRef__":true,"id":10219},"user":"jan.sandbrink","tags":[]},"10219":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10220":{"varMapping":{"__isSmartRef__":true,"id":10221},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10222},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10221":{"this":{"__isSmartRef__":true,"id":5008}},"10222":{"timestamp":{"__isSmartRef__":true,"id":10223},"user":"josi","tags":["gemtypes"]},"10223":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"10224":{"varMapping":{"__isSmartRef__":true,"id":10225},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":10226},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10225":{"this":{"__isSmartRef__":true,"id":5008}},"10226":{"timestamp":{"__isSmartRef__":true,"id":10227},"user":"josi","tags":["gemtypes"]},"10227":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"10228":{"varMapping":{"__isSmartRef__":true,"id":10229},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":10230},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10229":{"this":{"__isSmartRef__":true,"id":5008}},"10230":{"timestamp":{"__isSmartRef__":true,"id":10231},"user":"josi","tags":[]},"10231":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"10232":{"varMapping":{"__isSmartRef__":true,"id":10233},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":10234},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10233":{"this":{"__isSmartRef__":true,"id":5008}},"10234":{"timestamp":{"__isSmartRef__":true,"id":10235},"user":"josi","tags":[]},"10235":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"10236":{"varMapping":{"__isSmartRef__":true,"id":10237},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10238},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10237":{"this":{"__isSmartRef__":true,"id":5008}},"10238":{"timestamp":{"__isSmartRef__":true,"id":10239},"user":"soergel","tags":[]},"10239":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"10240":{"varMapping":{"__isSmartRef__":true,"id":10241},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":10242},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10241":{"this":{"__isSmartRef__":true,"id":5008}},"10242":{"timestamp":{"__isSmartRef__":true,"id":10243},"user":"soergel","tags":[]},"10243":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"10244":{"varMapping":{"__isSmartRef__":true,"id":10245},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":10246},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10245":{"this":{"__isSmartRef__":true,"id":5008}},"10246":{"timestamp":{"__isSmartRef__":true,"id":10247},"user":"soergel","tags":[]},"10247":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"10248":{"varMapping":{"__isSmartRef__":true,"id":10249},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10250},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10249":{"this":{"__isSmartRef__":true,"id":5008}},"10250":{"timestamp":{"__isSmartRef__":true,"id":10251},"user":"soergel","tags":["debug"]},"10251":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"10252":{"varMapping":{"__isSmartRef__":true,"id":10253},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10254},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10253":{"this":{"__isSmartRef__":true,"id":5008}},"10254":{"timestamp":{"__isSmartRef__":true,"id":10255},"user":"soergel","tags":["debug"]},"10255":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"10256":{"varMapping":{"__isSmartRef__":true,"id":10257},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10258},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10257":{"this":{"__isSmartRef__":true,"id":5008}},"10258":{"timestamp":{"__isSmartRef__":true,"id":10259},"user":"soergel","tags":[]},"10259":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10260":{"varMapping":{"__isSmartRef__":true,"id":10261},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10262},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10261":{"this":{"__isSmartRef__":true,"id":5008}},"10262":{"timestamp":{"__isSmartRef__":true,"id":10263},"user":"jan.sandbrink","tags":[]},"10263":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10264":{"varMapping":{"__isSmartRef__":true,"id":10265},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10266},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10265":{"this":{"__isSmartRef__":true,"id":5008}},"10266":{"timestamp":{"__isSmartRef__":true,"id":10267},"user":"jan.sandbrink","tags":[]},"10267":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10268":{"varMapping":{"__isSmartRef__":true,"id":10269},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10270},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10269":{"this":{"__isSmartRef__":true,"id":5008}},"10270":{"timestamp":{"__isSmartRef__":true,"id":10271},"user":"jan.sandbrink","tags":[]},"10271":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10272":{"varMapping":{"__isSmartRef__":true,"id":10273},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10274},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10273":{"this":{"__isSmartRef__":true,"id":5008}},"10274":{"timestamp":{"__isSmartRef__":true,"id":10275},"user":"jan.sandbrink","tags":[]},"10275":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10276":{"varMapping":{"__isSmartRef__":true,"id":10277},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10278},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10277":{"this":{"__isSmartRef__":true,"id":5008}},"10278":{"timestamp":{"__isSmartRef__":true,"id":10279},"user":"josi","tags":["gemtypes"]},"10279":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10280":{"varMapping":{"__isSmartRef__":true,"id":10281},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10282},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10281":{"this":{"__isSmartRef__":true,"id":5008}},"10282":{"timestamp":{"__isSmartRef__":true,"id":10283},"user":"josi","tags":["gemtypes"]},"10283":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10284":{"varMapping":{"__isSmartRef__":true,"id":10285},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10286},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10285":{"this":{"__isSmartRef__":true,"id":5008}},"10286":{"timestamp":{"__isSmartRef__":true,"id":10287},"user":"soergel","tags":["debug"]},"10287":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10288":{"varMapping":{"__isSmartRef__":true,"id":10289},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10290},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10289":{"this":{"__isSmartRef__":true,"id":5008}},"10290":{"timestamp":{"__isSmartRef__":true,"id":10291},"user":"soergel","tags":["debug"]},"10291":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10292":{"varMapping":{"__isSmartRef__":true,"id":10293},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10294},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10293":{"this":{"__isSmartRef__":true,"id":5008}},"10294":{"timestamp":{"__isSmartRef__":true,"id":10295},"user":"josi","tags":["gemtypes"]},"10295":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10296":{"varMapping":{"__isSmartRef__":true,"id":10297},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10298},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10297":{"this":{"__isSmartRef__":true,"id":5008}},"10298":{"timestamp":{"__isSmartRef__":true,"id":10299},"user":"soergel","tags":[]},"10299":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10300":{"varMapping":{"__isSmartRef__":true,"id":10301},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10302},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10301":{"this":{"__isSmartRef__":true,"id":5008}},"10302":{"timestamp":{"__isSmartRef__":true,"id":10303},"user":"soergel","tags":[]},"10303":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10304":{"varMapping":{"__isSmartRef__":true,"id":10305},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10306},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10305":{"this":{"__isSmartRef__":true,"id":5008}},"10306":{"timestamp":{"__isSmartRef__":true,"id":10307},"user":"soergel","tags":[]},"10307":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10308":{"varMapping":{"__isSmartRef__":true,"id":10309},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10310},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10309":{"this":{"__isSmartRef__":true,"id":5008}},"10310":{"timestamp":{"__isSmartRef__":true,"id":10311},"user":"josi","tags":["gemtypes"]},"10311":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10312":{"varMapping":{"__isSmartRef__":true,"id":10313},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10314},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10313":{"this":{"__isSmartRef__":true,"id":5008}},"10314":{"timestamp":{"__isSmartRef__":true,"id":10315},"user":"josi","tags":["gemtypes"]},"10315":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10316":{"varMapping":{"__isSmartRef__":true,"id":10317},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10318},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10317":{"this":{"__isSmartRef__":true,"id":5008}},"10318":{"timestamp":{"__isSmartRef__":true,"id":10319},"user":"jan.sandbrink","tags":[]},"10319":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10320":{"become":{"__isSmartRef__":true,"id":10321},"onMouseDown":{"__isSmartRef__":true,"id":10325},"updatePicture":{"__isSmartRef__":true,"id":10333},"ruby":{"__isSmartRef__":true,"id":10337},"switchPositionWith":{"__isSmartRef__":true,"id":10341},"addNeighbour":{"__isSmartRef__":true,"id":10345},"amethyst":{"__isSmartRef__":true,"id":10349},"diopside":{"__isSmartRef__":true,"id":10353},"gemTypes":{"__isSmartRef__":true,"id":10357},"becomeRandomGem":{"__isSmartRef__":true,"id":10361},"mark":{"__isSmartRef__":true,"id":10365},"unmark":{"__isSmartRef__":true,"id":10369},"hasNeighbour":{"__isSmartRef__":true,"id":10373},"debugMarkNeighbours":{"__isSmartRef__":true,"id":10377},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":10381},"disappear":{"__isSmartRef__":true,"id":10385},"findStreakStart":{"__isSmartRef__":true,"id":10389},"buildStreak":{"__isSmartRef__":true,"id":10393},"scoreStreak":{"__isSmartRef__":true,"id":10397},"tryToStreak":{"__isSmartRef__":true,"id":10401},"blueDiamond":{"__isSmartRef__":true,"id":10405},"prehnite":{"__isSmartRef__":true,"id":10409},"debugUnmark":{"__isSmartRef__":true,"id":10413},"debugMark":{"__isSmartRef__":true,"id":10417},"citrine":{"__isSmartRef__":true,"id":10421},"move":{"__isSmartRef__":true,"id":10425},"performMovement":{"__isSmartRef__":true,"id":10429},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10433},"zircon":{"__isSmartRef__":true,"id":10437},"emerald":{"__isSmartRef__":true,"id":10441},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10445}},"10321":{"varMapping":{"__isSmartRef__":true,"id":10322},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10323},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10322":{"this":{"__isSmartRef__":true,"id":4916}},"10323":{"timestamp":{"__isSmartRef__":true,"id":10324},"user":"josi","tags":[]},"10324":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10325":{"varMapping":{"__isSmartRef__":true,"id":10326},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10331},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10326":{"this":{"__isSmartRef__":true,"id":4916},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10327}},"10327":{"$super":{"__isSmartRef__":true,"id":10328}},"10328":{"varMapping":{"__isSmartRef__":true,"id":10329},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10330},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10329":{"obj":{"__isSmartRef__":true,"id":4916},"name":"onMouseDown"},"10330":{},"10331":{"timestamp":{"__isSmartRef__":true,"id":10332},"user":"soergel","tags":[]},"10332":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10333":{"varMapping":{"__isSmartRef__":true,"id":10334},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10335},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10334":{"this":{"__isSmartRef__":true,"id":4916}},"10335":{"timestamp":{"__isSmartRef__":true,"id":10336},"user":"soergel","tags":[]},"10336":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10337":{"varMapping":{"__isSmartRef__":true,"id":10338},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10339},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10338":{"this":{"__isSmartRef__":true,"id":4916}},"10339":{"timestamp":{"__isSmartRef__":true,"id":10340},"user":"josi","tags":["gemtypes"]},"10340":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10341":{"varMapping":{"__isSmartRef__":true,"id":10342},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10343},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10342":{"this":{"__isSmartRef__":true,"id":4916}},"10343":{"timestamp":{"__isSmartRef__":true,"id":10344},"user":"jan.sandbrink","tags":[]},"10344":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10345":{"varMapping":{"__isSmartRef__":true,"id":10346},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10347},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10346":{"this":{"__isSmartRef__":true,"id":4916}},"10347":{"timestamp":{"__isSmartRef__":true,"id":10348},"user":"jan.sandbrink","tags":[]},"10348":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10349":{"varMapping":{"__isSmartRef__":true,"id":10350},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10351},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10350":{"this":{"__isSmartRef__":true,"id":4916}},"10351":{"timestamp":{"__isSmartRef__":true,"id":10352},"user":"josi","tags":["gemtypes"]},"10352":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"10353":{"varMapping":{"__isSmartRef__":true,"id":10354},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":10355},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10354":{"this":{"__isSmartRef__":true,"id":4916}},"10355":{"timestamp":{"__isSmartRef__":true,"id":10356},"user":"josi","tags":["gemtypes"]},"10356":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"10357":{"varMapping":{"__isSmartRef__":true,"id":10358},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":10359},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10358":{"this":{"__isSmartRef__":true,"id":4916}},"10359":{"timestamp":{"__isSmartRef__":true,"id":10360},"user":"josi","tags":[]},"10360":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"10361":{"varMapping":{"__isSmartRef__":true,"id":10362},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":10363},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10362":{"this":{"__isSmartRef__":true,"id":4916}},"10363":{"timestamp":{"__isSmartRef__":true,"id":10364},"user":"josi","tags":[]},"10364":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"10365":{"varMapping":{"__isSmartRef__":true,"id":10366},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10367},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10366":{"this":{"__isSmartRef__":true,"id":4916}},"10367":{"timestamp":{"__isSmartRef__":true,"id":10368},"user":"soergel","tags":[]},"10368":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"10369":{"varMapping":{"__isSmartRef__":true,"id":10370},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":10371},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10370":{"this":{"__isSmartRef__":true,"id":4916}},"10371":{"timestamp":{"__isSmartRef__":true,"id":10372},"user":"soergel","tags":[]},"10372":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"10373":{"varMapping":{"__isSmartRef__":true,"id":10374},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":10375},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10374":{"this":{"__isSmartRef__":true,"id":4916}},"10375":{"timestamp":{"__isSmartRef__":true,"id":10376},"user":"soergel","tags":[]},"10376":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"10377":{"varMapping":{"__isSmartRef__":true,"id":10378},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10379},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10378":{"this":{"__isSmartRef__":true,"id":4916}},"10379":{"timestamp":{"__isSmartRef__":true,"id":10380},"user":"soergel","tags":["debug"]},"10380":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"10381":{"varMapping":{"__isSmartRef__":true,"id":10382},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10383},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10382":{"this":{"__isSmartRef__":true,"id":4916}},"10383":{"timestamp":{"__isSmartRef__":true,"id":10384},"user":"soergel","tags":["debug"]},"10384":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"10385":{"varMapping":{"__isSmartRef__":true,"id":10386},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10387},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10386":{"this":{"__isSmartRef__":true,"id":4916}},"10387":{"timestamp":{"__isSmartRef__":true,"id":10388},"user":"soergel","tags":[]},"10388":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10389":{"varMapping":{"__isSmartRef__":true,"id":10390},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10391},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10390":{"this":{"__isSmartRef__":true,"id":4916}},"10391":{"timestamp":{"__isSmartRef__":true,"id":10392},"user":"jan.sandbrink","tags":[]},"10392":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10393":{"varMapping":{"__isSmartRef__":true,"id":10394},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10395},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10394":{"this":{"__isSmartRef__":true,"id":4916}},"10395":{"timestamp":{"__isSmartRef__":true,"id":10396},"user":"jan.sandbrink","tags":[]},"10396":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10397":{"varMapping":{"__isSmartRef__":true,"id":10398},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10399},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10398":{"this":{"__isSmartRef__":true,"id":4916}},"10399":{"timestamp":{"__isSmartRef__":true,"id":10400},"user":"jan.sandbrink","tags":[]},"10400":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10401":{"varMapping":{"__isSmartRef__":true,"id":10402},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10403},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10402":{"this":{"__isSmartRef__":true,"id":4916}},"10403":{"timestamp":{"__isSmartRef__":true,"id":10404},"user":"jan.sandbrink","tags":[]},"10404":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10405":{"varMapping":{"__isSmartRef__":true,"id":10406},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10407},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10406":{"this":{"__isSmartRef__":true,"id":4916}},"10407":{"timestamp":{"__isSmartRef__":true,"id":10408},"user":"josi","tags":["gemtypes"]},"10408":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10409":{"varMapping":{"__isSmartRef__":true,"id":10410},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10411},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10410":{"this":{"__isSmartRef__":true,"id":4916}},"10411":{"timestamp":{"__isSmartRef__":true,"id":10412},"user":"josi","tags":["gemtypes"]},"10412":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10413":{"varMapping":{"__isSmartRef__":true,"id":10414},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10415},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10414":{"this":{"__isSmartRef__":true,"id":4916}},"10415":{"timestamp":{"__isSmartRef__":true,"id":10416},"user":"soergel","tags":["debug"]},"10416":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10417":{"varMapping":{"__isSmartRef__":true,"id":10418},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10419},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10418":{"this":{"__isSmartRef__":true,"id":4916}},"10419":{"timestamp":{"__isSmartRef__":true,"id":10420},"user":"soergel","tags":["debug"]},"10420":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10421":{"varMapping":{"__isSmartRef__":true,"id":10422},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10423},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10422":{"this":{"__isSmartRef__":true,"id":4916}},"10423":{"timestamp":{"__isSmartRef__":true,"id":10424},"user":"josi","tags":["gemtypes"]},"10424":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10425":{"varMapping":{"__isSmartRef__":true,"id":10426},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10427},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10426":{"this":{"__isSmartRef__":true,"id":4916}},"10427":{"timestamp":{"__isSmartRef__":true,"id":10428},"user":"soergel","tags":[]},"10428":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10429":{"varMapping":{"__isSmartRef__":true,"id":10430},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10431},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10430":{"this":{"__isSmartRef__":true,"id":4916}},"10431":{"timestamp":{"__isSmartRef__":true,"id":10432},"user":"soergel","tags":[]},"10432":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10433":{"varMapping":{"__isSmartRef__":true,"id":10434},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10435},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10434":{"this":{"__isSmartRef__":true,"id":4916}},"10435":{"timestamp":{"__isSmartRef__":true,"id":10436},"user":"soergel","tags":[]},"10436":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10437":{"varMapping":{"__isSmartRef__":true,"id":10438},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10439},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10438":{"this":{"__isSmartRef__":true,"id":4916}},"10439":{"timestamp":{"__isSmartRef__":true,"id":10440},"user":"josi","tags":["gemtypes"]},"10440":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10441":{"varMapping":{"__isSmartRef__":true,"id":10442},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10443},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10442":{"this":{"__isSmartRef__":true,"id":4916}},"10443":{"timestamp":{"__isSmartRef__":true,"id":10444},"user":"josi","tags":["gemtypes"]},"10444":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10445":{"varMapping":{"__isSmartRef__":true,"id":10446},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10447},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10446":{"this":{"__isSmartRef__":true,"id":4916}},"10447":{"timestamp":{"__isSmartRef__":true,"id":10448},"user":"jan.sandbrink","tags":[]},"10448":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10449":{"become":{"__isSmartRef__":true,"id":10450},"onMouseDown":{"__isSmartRef__":true,"id":10454},"updatePicture":{"__isSmartRef__":true,"id":10462},"ruby":{"__isSmartRef__":true,"id":10466},"switchPositionWith":{"__isSmartRef__":true,"id":10470},"addNeighbour":{"__isSmartRef__":true,"id":10474},"amethyst":{"__isSmartRef__":true,"id":10478},"diopside":{"__isSmartRef__":true,"id":10482},"gemTypes":{"__isSmartRef__":true,"id":10486},"becomeRandomGem":{"__isSmartRef__":true,"id":10490},"mark":{"__isSmartRef__":true,"id":10494},"unmark":{"__isSmartRef__":true,"id":10498},"hasNeighbour":{"__isSmartRef__":true,"id":10502},"debugMarkNeighbours":{"__isSmartRef__":true,"id":10506},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":10510},"disappear":{"__isSmartRef__":true,"id":10514},"findStreakStart":{"__isSmartRef__":true,"id":10518},"buildStreak":{"__isSmartRef__":true,"id":10522},"scoreStreak":{"__isSmartRef__":true,"id":10526},"tryToStreak":{"__isSmartRef__":true,"id":10530},"blueDiamond":{"__isSmartRef__":true,"id":10534},"prehnite":{"__isSmartRef__":true,"id":10538},"debugUnmark":{"__isSmartRef__":true,"id":10542},"debugMark":{"__isSmartRef__":true,"id":10546},"citrine":{"__isSmartRef__":true,"id":10550},"move":{"__isSmartRef__":true,"id":10554},"performMovement":{"__isSmartRef__":true,"id":10558},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10562},"zircon":{"__isSmartRef__":true,"id":10566},"emerald":{"__isSmartRef__":true,"id":10570},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10574}},"10450":{"varMapping":{"__isSmartRef__":true,"id":10451},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10452},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10451":{"this":{"__isSmartRef__":true,"id":4781}},"10452":{"timestamp":{"__isSmartRef__":true,"id":10453},"user":"josi","tags":[]},"10453":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10454":{"varMapping":{"__isSmartRef__":true,"id":10455},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10460},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10455":{"this":{"__isSmartRef__":true,"id":4781},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10456}},"10456":{"$super":{"__isSmartRef__":true,"id":10457}},"10457":{"varMapping":{"__isSmartRef__":true,"id":10458},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10459},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10458":{"obj":{"__isSmartRef__":true,"id":4781},"name":"onMouseDown"},"10459":{},"10460":{"timestamp":{"__isSmartRef__":true,"id":10461},"user":"soergel","tags":[]},"10461":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10462":{"varMapping":{"__isSmartRef__":true,"id":10463},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10464},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10463":{"this":{"__isSmartRef__":true,"id":4781}},"10464":{"timestamp":{"__isSmartRef__":true,"id":10465},"user":"soergel","tags":[]},"10465":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10466":{"varMapping":{"__isSmartRef__":true,"id":10467},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10468},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10467":{"this":{"__isSmartRef__":true,"id":4781}},"10468":{"timestamp":{"__isSmartRef__":true,"id":10469},"user":"josi","tags":["gemtypes"]},"10469":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10470":{"varMapping":{"__isSmartRef__":true,"id":10471},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10472},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10471":{"this":{"__isSmartRef__":true,"id":4781}},"10472":{"timestamp":{"__isSmartRef__":true,"id":10473},"user":"jan.sandbrink","tags":[]},"10473":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10474":{"varMapping":{"__isSmartRef__":true,"id":10475},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10476},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10475":{"this":{"__isSmartRef__":true,"id":4781}},"10476":{"timestamp":{"__isSmartRef__":true,"id":10477},"user":"jan.sandbrink","tags":[]},"10477":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10478":{"varMapping":{"__isSmartRef__":true,"id":10479},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10480},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10479":{"this":{"__isSmartRef__":true,"id":4781}},"10480":{"timestamp":{"__isSmartRef__":true,"id":10481},"user":"josi","tags":["gemtypes"]},"10481":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"10482":{"varMapping":{"__isSmartRef__":true,"id":10483},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":10484},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10483":{"this":{"__isSmartRef__":true,"id":4781}},"10484":{"timestamp":{"__isSmartRef__":true,"id":10485},"user":"josi","tags":["gemtypes"]},"10485":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"10486":{"varMapping":{"__isSmartRef__":true,"id":10487},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":10488},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10487":{"this":{"__isSmartRef__":true,"id":4781}},"10488":{"timestamp":{"__isSmartRef__":true,"id":10489},"user":"josi","tags":[]},"10489":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"10490":{"varMapping":{"__isSmartRef__":true,"id":10491},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":10492},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10491":{"this":{"__isSmartRef__":true,"id":4781}},"10492":{"timestamp":{"__isSmartRef__":true,"id":10493},"user":"josi","tags":[]},"10493":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"10494":{"varMapping":{"__isSmartRef__":true,"id":10495},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10496},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10495":{"this":{"__isSmartRef__":true,"id":4781}},"10496":{"timestamp":{"__isSmartRef__":true,"id":10497},"user":"soergel","tags":[]},"10497":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"10498":{"varMapping":{"__isSmartRef__":true,"id":10499},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":10500},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10499":{"this":{"__isSmartRef__":true,"id":4781}},"10500":{"timestamp":{"__isSmartRef__":true,"id":10501},"user":"soergel","tags":[]},"10501":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"10502":{"varMapping":{"__isSmartRef__":true,"id":10503},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":10504},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10503":{"this":{"__isSmartRef__":true,"id":4781}},"10504":{"timestamp":{"__isSmartRef__":true,"id":10505},"user":"soergel","tags":[]},"10505":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"10506":{"varMapping":{"__isSmartRef__":true,"id":10507},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10508},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10507":{"this":{"__isSmartRef__":true,"id":4781}},"10508":{"timestamp":{"__isSmartRef__":true,"id":10509},"user":"soergel","tags":["debug"]},"10509":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"10510":{"varMapping":{"__isSmartRef__":true,"id":10511},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10512},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10511":{"this":{"__isSmartRef__":true,"id":4781}},"10512":{"timestamp":{"__isSmartRef__":true,"id":10513},"user":"soergel","tags":["debug"]},"10513":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"10514":{"varMapping":{"__isSmartRef__":true,"id":10515},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10516},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10515":{"this":{"__isSmartRef__":true,"id":4781}},"10516":{"timestamp":{"__isSmartRef__":true,"id":10517},"user":"soergel","tags":[]},"10517":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10518":{"varMapping":{"__isSmartRef__":true,"id":10519},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10520},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10519":{"this":{"__isSmartRef__":true,"id":4781}},"10520":{"timestamp":{"__isSmartRef__":true,"id":10521},"user":"jan.sandbrink","tags":[]},"10521":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10522":{"varMapping":{"__isSmartRef__":true,"id":10523},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10524},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10523":{"this":{"__isSmartRef__":true,"id":4781}},"10524":{"timestamp":{"__isSmartRef__":true,"id":10525},"user":"jan.sandbrink","tags":[]},"10525":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10526":{"varMapping":{"__isSmartRef__":true,"id":10527},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10528},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10527":{"this":{"__isSmartRef__":true,"id":4781}},"10528":{"timestamp":{"__isSmartRef__":true,"id":10529},"user":"jan.sandbrink","tags":[]},"10529":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10530":{"varMapping":{"__isSmartRef__":true,"id":10531},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10532},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10531":{"this":{"__isSmartRef__":true,"id":4781}},"10532":{"timestamp":{"__isSmartRef__":true,"id":10533},"user":"jan.sandbrink","tags":[]},"10533":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10534":{"varMapping":{"__isSmartRef__":true,"id":10535},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10536},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10535":{"this":{"__isSmartRef__":true,"id":4781}},"10536":{"timestamp":{"__isSmartRef__":true,"id":10537},"user":"josi","tags":["gemtypes"]},"10537":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10538":{"varMapping":{"__isSmartRef__":true,"id":10539},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10540},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10539":{"this":{"__isSmartRef__":true,"id":4781}},"10540":{"timestamp":{"__isSmartRef__":true,"id":10541},"user":"josi","tags":["gemtypes"]},"10541":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10542":{"varMapping":{"__isSmartRef__":true,"id":10543},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10544},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10543":{"this":{"__isSmartRef__":true,"id":4781}},"10544":{"timestamp":{"__isSmartRef__":true,"id":10545},"user":"soergel","tags":["debug"]},"10545":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10546":{"varMapping":{"__isSmartRef__":true,"id":10547},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10548},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10547":{"this":{"__isSmartRef__":true,"id":4781}},"10548":{"timestamp":{"__isSmartRef__":true,"id":10549},"user":"soergel","tags":["debug"]},"10549":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10550":{"varMapping":{"__isSmartRef__":true,"id":10551},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10552},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10551":{"this":{"__isSmartRef__":true,"id":4781}},"10552":{"timestamp":{"__isSmartRef__":true,"id":10553},"user":"josi","tags":["gemtypes"]},"10553":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10554":{"varMapping":{"__isSmartRef__":true,"id":10555},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10556},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10555":{"this":{"__isSmartRef__":true,"id":4781}},"10556":{"timestamp":{"__isSmartRef__":true,"id":10557},"user":"soergel","tags":[]},"10557":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10558":{"varMapping":{"__isSmartRef__":true,"id":10559},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10560},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10559":{"this":{"__isSmartRef__":true,"id":4781}},"10560":{"timestamp":{"__isSmartRef__":true,"id":10561},"user":"soergel","tags":[]},"10561":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10562":{"varMapping":{"__isSmartRef__":true,"id":10563},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10564},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10563":{"this":{"__isSmartRef__":true,"id":4781}},"10564":{"timestamp":{"__isSmartRef__":true,"id":10565},"user":"soergel","tags":[]},"10565":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10566":{"varMapping":{"__isSmartRef__":true,"id":10567},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10568},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10567":{"this":{"__isSmartRef__":true,"id":4781}},"10568":{"timestamp":{"__isSmartRef__":true,"id":10569},"user":"josi","tags":["gemtypes"]},"10569":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10570":{"varMapping":{"__isSmartRef__":true,"id":10571},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10572},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10571":{"this":{"__isSmartRef__":true,"id":4781}},"10572":{"timestamp":{"__isSmartRef__":true,"id":10573},"user":"josi","tags":["gemtypes"]},"10573":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10574":{"varMapping":{"__isSmartRef__":true,"id":10575},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10576},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10575":{"this":{"__isSmartRef__":true,"id":4781}},"10576":{"timestamp":{"__isSmartRef__":true,"id":10577},"user":"jan.sandbrink","tags":[]},"10577":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10578":{"become":{"__isSmartRef__":true,"id":10579},"onMouseDown":{"__isSmartRef__":true,"id":10583},"updatePicture":{"__isSmartRef__":true,"id":10591},"ruby":{"__isSmartRef__":true,"id":10595},"switchPositionWith":{"__isSmartRef__":true,"id":10599},"addNeighbour":{"__isSmartRef__":true,"id":10603},"amethyst":{"__isSmartRef__":true,"id":10607},"diopside":{"__isSmartRef__":true,"id":10611},"gemTypes":{"__isSmartRef__":true,"id":10615},"becomeRandomGem":{"__isSmartRef__":true,"id":10619},"mark":{"__isSmartRef__":true,"id":10623},"unmark":{"__isSmartRef__":true,"id":10627},"hasNeighbour":{"__isSmartRef__":true,"id":10631},"debugMarkNeighbours":{"__isSmartRef__":true,"id":10635},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":10639},"disappear":{"__isSmartRef__":true,"id":10643},"findStreakStart":{"__isSmartRef__":true,"id":10647},"buildStreak":{"__isSmartRef__":true,"id":10651},"scoreStreak":{"__isSmartRef__":true,"id":10655},"tryToStreak":{"__isSmartRef__":true,"id":10659},"blueDiamond":{"__isSmartRef__":true,"id":10663},"prehnite":{"__isSmartRef__":true,"id":10667},"debugUnmark":{"__isSmartRef__":true,"id":10671},"debugMark":{"__isSmartRef__":true,"id":10675},"citrine":{"__isSmartRef__":true,"id":10679},"move":{"__isSmartRef__":true,"id":10683},"performMovement":{"__isSmartRef__":true,"id":10687},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10691},"zircon":{"__isSmartRef__":true,"id":10695},"emerald":{"__isSmartRef__":true,"id":10699},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10703}},"10579":{"varMapping":{"__isSmartRef__":true,"id":10580},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10581},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10580":{"this":{"__isSmartRef__":true,"id":4649}},"10581":{"timestamp":{"__isSmartRef__":true,"id":10582},"user":"josi","tags":[]},"10582":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10583":{"varMapping":{"__isSmartRef__":true,"id":10584},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10589},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10584":{"this":{"__isSmartRef__":true,"id":4649},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10585}},"10585":{"$super":{"__isSmartRef__":true,"id":10586}},"10586":{"varMapping":{"__isSmartRef__":true,"id":10587},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10588},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10587":{"obj":{"__isSmartRef__":true,"id":4649},"name":"onMouseDown"},"10588":{},"10589":{"timestamp":{"__isSmartRef__":true,"id":10590},"user":"soergel","tags":[]},"10590":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10591":{"varMapping":{"__isSmartRef__":true,"id":10592},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10593},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10592":{"this":{"__isSmartRef__":true,"id":4649}},"10593":{"timestamp":{"__isSmartRef__":true,"id":10594},"user":"soergel","tags":[]},"10594":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10595":{"varMapping":{"__isSmartRef__":true,"id":10596},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10597},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10596":{"this":{"__isSmartRef__":true,"id":4649}},"10597":{"timestamp":{"__isSmartRef__":true,"id":10598},"user":"josi","tags":["gemtypes"]},"10598":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10599":{"varMapping":{"__isSmartRef__":true,"id":10600},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10601},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10600":{"this":{"__isSmartRef__":true,"id":4649}},"10601":{"timestamp":{"__isSmartRef__":true,"id":10602},"user":"jan.sandbrink","tags":[]},"10602":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10603":{"varMapping":{"__isSmartRef__":true,"id":10604},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10605},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10604":{"this":{"__isSmartRef__":true,"id":4649}},"10605":{"timestamp":{"__isSmartRef__":true,"id":10606},"user":"jan.sandbrink","tags":[]},"10606":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10607":{"varMapping":{"__isSmartRef__":true,"id":10608},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10609},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10608":{"this":{"__isSmartRef__":true,"id":4649}},"10609":{"timestamp":{"__isSmartRef__":true,"id":10610},"user":"josi","tags":["gemtypes"]},"10610":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"10611":{"varMapping":{"__isSmartRef__":true,"id":10612},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":10613},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10612":{"this":{"__isSmartRef__":true,"id":4649}},"10613":{"timestamp":{"__isSmartRef__":true,"id":10614},"user":"josi","tags":["gemtypes"]},"10614":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"10615":{"varMapping":{"__isSmartRef__":true,"id":10616},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":10617},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10616":{"this":{"__isSmartRef__":true,"id":4649}},"10617":{"timestamp":{"__isSmartRef__":true,"id":10618},"user":"josi","tags":[]},"10618":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"10619":{"varMapping":{"__isSmartRef__":true,"id":10620},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":10621},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10620":{"this":{"__isSmartRef__":true,"id":4649}},"10621":{"timestamp":{"__isSmartRef__":true,"id":10622},"user":"josi","tags":[]},"10622":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"10623":{"varMapping":{"__isSmartRef__":true,"id":10624},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10625},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10624":{"this":{"__isSmartRef__":true,"id":4649}},"10625":{"timestamp":{"__isSmartRef__":true,"id":10626},"user":"soergel","tags":[]},"10626":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"10627":{"varMapping":{"__isSmartRef__":true,"id":10628},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":10629},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10628":{"this":{"__isSmartRef__":true,"id":4649}},"10629":{"timestamp":{"__isSmartRef__":true,"id":10630},"user":"soergel","tags":[]},"10630":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"10631":{"varMapping":{"__isSmartRef__":true,"id":10632},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":10633},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10632":{"this":{"__isSmartRef__":true,"id":4649}},"10633":{"timestamp":{"__isSmartRef__":true,"id":10634},"user":"soergel","tags":[]},"10634":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"10635":{"varMapping":{"__isSmartRef__":true,"id":10636},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10637},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10636":{"this":{"__isSmartRef__":true,"id":4649}},"10637":{"timestamp":{"__isSmartRef__":true,"id":10638},"user":"soergel","tags":["debug"]},"10638":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"10639":{"varMapping":{"__isSmartRef__":true,"id":10640},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10641},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10640":{"this":{"__isSmartRef__":true,"id":4649}},"10641":{"timestamp":{"__isSmartRef__":true,"id":10642},"user":"soergel","tags":["debug"]},"10642":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"10643":{"varMapping":{"__isSmartRef__":true,"id":10644},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10645},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10644":{"this":{"__isSmartRef__":true,"id":4649}},"10645":{"timestamp":{"__isSmartRef__":true,"id":10646},"user":"soergel","tags":[]},"10646":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10647":{"varMapping":{"__isSmartRef__":true,"id":10648},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10649},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10648":{"this":{"__isSmartRef__":true,"id":4649}},"10649":{"timestamp":{"__isSmartRef__":true,"id":10650},"user":"jan.sandbrink","tags":[]},"10650":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10651":{"varMapping":{"__isSmartRef__":true,"id":10652},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10653},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10652":{"this":{"__isSmartRef__":true,"id":4649}},"10653":{"timestamp":{"__isSmartRef__":true,"id":10654},"user":"jan.sandbrink","tags":[]},"10654":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10655":{"varMapping":{"__isSmartRef__":true,"id":10656},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10657},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10656":{"this":{"__isSmartRef__":true,"id":4649}},"10657":{"timestamp":{"__isSmartRef__":true,"id":10658},"user":"jan.sandbrink","tags":[]},"10658":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10659":{"varMapping":{"__isSmartRef__":true,"id":10660},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10661},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10660":{"this":{"__isSmartRef__":true,"id":4649}},"10661":{"timestamp":{"__isSmartRef__":true,"id":10662},"user":"jan.sandbrink","tags":[]},"10662":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10663":{"varMapping":{"__isSmartRef__":true,"id":10664},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10665},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10664":{"this":{"__isSmartRef__":true,"id":4649}},"10665":{"timestamp":{"__isSmartRef__":true,"id":10666},"user":"josi","tags":["gemtypes"]},"10666":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10667":{"varMapping":{"__isSmartRef__":true,"id":10668},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10669},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10668":{"this":{"__isSmartRef__":true,"id":4649}},"10669":{"timestamp":{"__isSmartRef__":true,"id":10670},"user":"josi","tags":["gemtypes"]},"10670":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10671":{"varMapping":{"__isSmartRef__":true,"id":10672},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10673},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10672":{"this":{"__isSmartRef__":true,"id":4649}},"10673":{"timestamp":{"__isSmartRef__":true,"id":10674},"user":"soergel","tags":["debug"]},"10674":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10675":{"varMapping":{"__isSmartRef__":true,"id":10676},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10677},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10676":{"this":{"__isSmartRef__":true,"id":4649}},"10677":{"timestamp":{"__isSmartRef__":true,"id":10678},"user":"soergel","tags":["debug"]},"10678":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10679":{"varMapping":{"__isSmartRef__":true,"id":10680},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10681},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10680":{"this":{"__isSmartRef__":true,"id":4649}},"10681":{"timestamp":{"__isSmartRef__":true,"id":10682},"user":"josi","tags":["gemtypes"]},"10682":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10683":{"varMapping":{"__isSmartRef__":true,"id":10684},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10685},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10684":{"this":{"__isSmartRef__":true,"id":4649}},"10685":{"timestamp":{"__isSmartRef__":true,"id":10686},"user":"soergel","tags":[]},"10686":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10687":{"varMapping":{"__isSmartRef__":true,"id":10688},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10689},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10688":{"this":{"__isSmartRef__":true,"id":4649}},"10689":{"timestamp":{"__isSmartRef__":true,"id":10690},"user":"soergel","tags":[]},"10690":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10691":{"varMapping":{"__isSmartRef__":true,"id":10692},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10693},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10692":{"this":{"__isSmartRef__":true,"id":4649}},"10693":{"timestamp":{"__isSmartRef__":true,"id":10694},"user":"soergel","tags":[]},"10694":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10695":{"varMapping":{"__isSmartRef__":true,"id":10696},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10697},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10696":{"this":{"__isSmartRef__":true,"id":4649}},"10697":{"timestamp":{"__isSmartRef__":true,"id":10698},"user":"josi","tags":["gemtypes"]},"10698":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10699":{"varMapping":{"__isSmartRef__":true,"id":10700},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10701},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10700":{"this":{"__isSmartRef__":true,"id":4649}},"10701":{"timestamp":{"__isSmartRef__":true,"id":10702},"user":"josi","tags":["gemtypes"]},"10702":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10703":{"varMapping":{"__isSmartRef__":true,"id":10704},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10705},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10704":{"this":{"__isSmartRef__":true,"id":4649}},"10705":{"timestamp":{"__isSmartRef__":true,"id":10706},"user":"jan.sandbrink","tags":[]},"10706":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10707":{"x":296.22216522369325,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10708":{"become":{"__isSmartRef__":true,"id":10709},"onMouseDown":{"__isSmartRef__":true,"id":10713},"updatePicture":{"__isSmartRef__":true,"id":10721},"ruby":{"__isSmartRef__":true,"id":10725},"switchPositionWith":{"__isSmartRef__":true,"id":10729},"addNeighbour":{"__isSmartRef__":true,"id":10733},"amethyst":{"__isSmartRef__":true,"id":10737},"diopside":{"__isSmartRef__":true,"id":10741},"gemTypes":{"__isSmartRef__":true,"id":10745},"becomeRandomGem":{"__isSmartRef__":true,"id":10749},"mark":{"__isSmartRef__":true,"id":10753},"unmark":{"__isSmartRef__":true,"id":10757},"hasNeighbour":{"__isSmartRef__":true,"id":10761},"debugMarkNeighbours":{"__isSmartRef__":true,"id":10765},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":10769},"disappear":{"__isSmartRef__":true,"id":10773},"findStreakStart":{"__isSmartRef__":true,"id":10777},"buildStreak":{"__isSmartRef__":true,"id":10781},"scoreStreak":{"__isSmartRef__":true,"id":10785},"tryToStreak":{"__isSmartRef__":true,"id":10789},"blueDiamond":{"__isSmartRef__":true,"id":10793},"prehnite":{"__isSmartRef__":true,"id":10797},"debugUnmark":{"__isSmartRef__":true,"id":10801},"debugMark":{"__isSmartRef__":true,"id":10805},"citrine":{"__isSmartRef__":true,"id":10809},"move":{"__isSmartRef__":true,"id":10813},"performMovement":{"__isSmartRef__":true,"id":10817},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10821},"zircon":{"__isSmartRef__":true,"id":10825},"emerald":{"__isSmartRef__":true,"id":10829},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10833}},"10709":{"varMapping":{"__isSmartRef__":true,"id":10710},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10711},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10710":{"this":{"__isSmartRef__":true,"id":4517}},"10711":{"timestamp":{"__isSmartRef__":true,"id":10712},"user":"josi","tags":[]},"10712":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10713":{"varMapping":{"__isSmartRef__":true,"id":10714},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10719},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10714":{"this":{"__isSmartRef__":true,"id":4517},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10715}},"10715":{"$super":{"__isSmartRef__":true,"id":10716}},"10716":{"varMapping":{"__isSmartRef__":true,"id":10717},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10718},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10717":{"obj":{"__isSmartRef__":true,"id":4517},"name":"onMouseDown"},"10718":{},"10719":{"timestamp":{"__isSmartRef__":true,"id":10720},"user":"soergel","tags":[]},"10720":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10721":{"varMapping":{"__isSmartRef__":true,"id":10722},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10723},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10722":{"this":{"__isSmartRef__":true,"id":4517}},"10723":{"timestamp":{"__isSmartRef__":true,"id":10724},"user":"soergel","tags":[]},"10724":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10725":{"varMapping":{"__isSmartRef__":true,"id":10726},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10727},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10726":{"this":{"__isSmartRef__":true,"id":4517}},"10727":{"timestamp":{"__isSmartRef__":true,"id":10728},"user":"josi","tags":["gemtypes"]},"10728":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10729":{"varMapping":{"__isSmartRef__":true,"id":10730},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10731},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10730":{"this":{"__isSmartRef__":true,"id":4517}},"10731":{"timestamp":{"__isSmartRef__":true,"id":10732},"user":"jan.sandbrink","tags":[]},"10732":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10733":{"varMapping":{"__isSmartRef__":true,"id":10734},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10735},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10734":{"this":{"__isSmartRef__":true,"id":4517}},"10735":{"timestamp":{"__isSmartRef__":true,"id":10736},"user":"jan.sandbrink","tags":[]},"10736":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10737":{"varMapping":{"__isSmartRef__":true,"id":10738},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10739},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10738":{"this":{"__isSmartRef__":true,"id":4517}},"10739":{"timestamp":{"__isSmartRef__":true,"id":10740},"user":"josi","tags":["gemtypes"]},"10740":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"10741":{"varMapping":{"__isSmartRef__":true,"id":10742},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":10743},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10742":{"this":{"__isSmartRef__":true,"id":4517}},"10743":{"timestamp":{"__isSmartRef__":true,"id":10744},"user":"josi","tags":["gemtypes"]},"10744":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"10745":{"varMapping":{"__isSmartRef__":true,"id":10746},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":10747},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10746":{"this":{"__isSmartRef__":true,"id":4517}},"10747":{"timestamp":{"__isSmartRef__":true,"id":10748},"user":"josi","tags":[]},"10748":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"10749":{"varMapping":{"__isSmartRef__":true,"id":10750},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":10751},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10750":{"this":{"__isSmartRef__":true,"id":4517}},"10751":{"timestamp":{"__isSmartRef__":true,"id":10752},"user":"josi","tags":[]},"10752":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"10753":{"varMapping":{"__isSmartRef__":true,"id":10754},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10755},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10754":{"this":{"__isSmartRef__":true,"id":4517}},"10755":{"timestamp":{"__isSmartRef__":true,"id":10756},"user":"soergel","tags":[]},"10756":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"10757":{"varMapping":{"__isSmartRef__":true,"id":10758},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":10759},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10758":{"this":{"__isSmartRef__":true,"id":4517}},"10759":{"timestamp":{"__isSmartRef__":true,"id":10760},"user":"soergel","tags":[]},"10760":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"10761":{"varMapping":{"__isSmartRef__":true,"id":10762},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":10763},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10762":{"this":{"__isSmartRef__":true,"id":4517}},"10763":{"timestamp":{"__isSmartRef__":true,"id":10764},"user":"soergel","tags":[]},"10764":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"10765":{"varMapping":{"__isSmartRef__":true,"id":10766},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10767},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10766":{"this":{"__isSmartRef__":true,"id":4517}},"10767":{"timestamp":{"__isSmartRef__":true,"id":10768},"user":"soergel","tags":["debug"]},"10768":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"10769":{"varMapping":{"__isSmartRef__":true,"id":10770},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10771},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10770":{"this":{"__isSmartRef__":true,"id":4517}},"10771":{"timestamp":{"__isSmartRef__":true,"id":10772},"user":"soergel","tags":["debug"]},"10772":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"10773":{"varMapping":{"__isSmartRef__":true,"id":10774},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10775},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10774":{"this":{"__isSmartRef__":true,"id":4517}},"10775":{"timestamp":{"__isSmartRef__":true,"id":10776},"user":"soergel","tags":[]},"10776":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10777":{"varMapping":{"__isSmartRef__":true,"id":10778},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10779},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10778":{"this":{"__isSmartRef__":true,"id":4517}},"10779":{"timestamp":{"__isSmartRef__":true,"id":10780},"user":"jan.sandbrink","tags":[]},"10780":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10781":{"varMapping":{"__isSmartRef__":true,"id":10782},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10783},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10782":{"this":{"__isSmartRef__":true,"id":4517}},"10783":{"timestamp":{"__isSmartRef__":true,"id":10784},"user":"jan.sandbrink","tags":[]},"10784":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10785":{"varMapping":{"__isSmartRef__":true,"id":10786},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10787},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10786":{"this":{"__isSmartRef__":true,"id":4517}},"10787":{"timestamp":{"__isSmartRef__":true,"id":10788},"user":"jan.sandbrink","tags":[]},"10788":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10789":{"varMapping":{"__isSmartRef__":true,"id":10790},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10791},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10790":{"this":{"__isSmartRef__":true,"id":4517}},"10791":{"timestamp":{"__isSmartRef__":true,"id":10792},"user":"jan.sandbrink","tags":[]},"10792":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10793":{"varMapping":{"__isSmartRef__":true,"id":10794},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10795},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10794":{"this":{"__isSmartRef__":true,"id":4517}},"10795":{"timestamp":{"__isSmartRef__":true,"id":10796},"user":"josi","tags":["gemtypes"]},"10796":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10797":{"varMapping":{"__isSmartRef__":true,"id":10798},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10799},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10798":{"this":{"__isSmartRef__":true,"id":4517}},"10799":{"timestamp":{"__isSmartRef__":true,"id":10800},"user":"josi","tags":["gemtypes"]},"10800":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10801":{"varMapping":{"__isSmartRef__":true,"id":10802},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10803},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10802":{"this":{"__isSmartRef__":true,"id":4517}},"10803":{"timestamp":{"__isSmartRef__":true,"id":10804},"user":"soergel","tags":["debug"]},"10804":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10805":{"varMapping":{"__isSmartRef__":true,"id":10806},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10807},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10806":{"this":{"__isSmartRef__":true,"id":4517}},"10807":{"timestamp":{"__isSmartRef__":true,"id":10808},"user":"soergel","tags":["debug"]},"10808":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10809":{"varMapping":{"__isSmartRef__":true,"id":10810},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10811},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10810":{"this":{"__isSmartRef__":true,"id":4517}},"10811":{"timestamp":{"__isSmartRef__":true,"id":10812},"user":"josi","tags":["gemtypes"]},"10812":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10813":{"varMapping":{"__isSmartRef__":true,"id":10814},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10815},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10814":{"this":{"__isSmartRef__":true,"id":4517}},"10815":{"timestamp":{"__isSmartRef__":true,"id":10816},"user":"soergel","tags":[]},"10816":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10817":{"varMapping":{"__isSmartRef__":true,"id":10818},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10819},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10818":{"this":{"__isSmartRef__":true,"id":4517}},"10819":{"timestamp":{"__isSmartRef__":true,"id":10820},"user":"soergel","tags":[]},"10820":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10821":{"varMapping":{"__isSmartRef__":true,"id":10822},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10823},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10822":{"this":{"__isSmartRef__":true,"id":4517}},"10823":{"timestamp":{"__isSmartRef__":true,"id":10824},"user":"soergel","tags":[]},"10824":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10825":{"varMapping":{"__isSmartRef__":true,"id":10826},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10827},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10826":{"this":{"__isSmartRef__":true,"id":4517}},"10827":{"timestamp":{"__isSmartRef__":true,"id":10828},"user":"josi","tags":["gemtypes"]},"10828":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10829":{"varMapping":{"__isSmartRef__":true,"id":10830},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10831},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10830":{"this":{"__isSmartRef__":true,"id":4517}},"10831":{"timestamp":{"__isSmartRef__":true,"id":10832},"user":"josi","tags":["gemtypes"]},"10832":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10833":{"varMapping":{"__isSmartRef__":true,"id":10834},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10835},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10834":{"this":{"__isSmartRef__":true,"id":4517}},"10835":{"timestamp":{"__isSmartRef__":true,"id":10836},"user":"jan.sandbrink","tags":[]},"10836":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10837":{"x":247.0184710197444,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"10838":{"become":{"__isSmartRef__":true,"id":10839},"onMouseDown":{"__isSmartRef__":true,"id":10843},"updatePicture":{"__isSmartRef__":true,"id":10851},"ruby":{"__isSmartRef__":true,"id":10855},"switchPositionWith":{"__isSmartRef__":true,"id":10859},"addNeighbour":{"__isSmartRef__":true,"id":10863},"amethyst":{"__isSmartRef__":true,"id":10867},"diopside":{"__isSmartRef__":true,"id":10871},"gemTypes":{"__isSmartRef__":true,"id":10875},"becomeRandomGem":{"__isSmartRef__":true,"id":10879},"mark":{"__isSmartRef__":true,"id":10883},"unmark":{"__isSmartRef__":true,"id":10887},"hasNeighbour":{"__isSmartRef__":true,"id":10891},"debugMarkNeighbours":{"__isSmartRef__":true,"id":10895},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":10899},"disappear":{"__isSmartRef__":true,"id":10903},"findStreakStart":{"__isSmartRef__":true,"id":10907},"buildStreak":{"__isSmartRef__":true,"id":10911},"scoreStreak":{"__isSmartRef__":true,"id":10915},"tryToStreak":{"__isSmartRef__":true,"id":10919},"blueDiamond":{"__isSmartRef__":true,"id":10923},"prehnite":{"__isSmartRef__":true,"id":10927},"debugUnmark":{"__isSmartRef__":true,"id":10931},"debugMark":{"__isSmartRef__":true,"id":10935},"citrine":{"__isSmartRef__":true,"id":10939},"move":{"__isSmartRef__":true,"id":10943},"performMovement":{"__isSmartRef__":true,"id":10947},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":10951},"zircon":{"__isSmartRef__":true,"id":10955},"emerald":{"__isSmartRef__":true,"id":10959},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":10963}},"10839":{"varMapping":{"__isSmartRef__":true,"id":10840},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10841},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10840":{"this":{"__isSmartRef__":true,"id":4416}},"10841":{"timestamp":{"__isSmartRef__":true,"id":10842},"user":"josi","tags":[]},"10842":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10843":{"varMapping":{"__isSmartRef__":true,"id":10844},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10849},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10844":{"this":{"__isSmartRef__":true,"id":4416},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10845}},"10845":{"$super":{"__isSmartRef__":true,"id":10846}},"10846":{"varMapping":{"__isSmartRef__":true,"id":10847},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10848},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10847":{"obj":{"__isSmartRef__":true,"id":4416},"name":"onMouseDown"},"10848":{},"10849":{"timestamp":{"__isSmartRef__":true,"id":10850},"user":"soergel","tags":[]},"10850":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10851":{"varMapping":{"__isSmartRef__":true,"id":10852},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10853},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10852":{"this":{"__isSmartRef__":true,"id":4416}},"10853":{"timestamp":{"__isSmartRef__":true,"id":10854},"user":"soergel","tags":[]},"10854":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10855":{"varMapping":{"__isSmartRef__":true,"id":10856},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10857},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10856":{"this":{"__isSmartRef__":true,"id":4416}},"10857":{"timestamp":{"__isSmartRef__":true,"id":10858},"user":"josi","tags":["gemtypes"]},"10858":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10859":{"varMapping":{"__isSmartRef__":true,"id":10860},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10861},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10860":{"this":{"__isSmartRef__":true,"id":4416}},"10861":{"timestamp":{"__isSmartRef__":true,"id":10862},"user":"jan.sandbrink","tags":[]},"10862":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10863":{"varMapping":{"__isSmartRef__":true,"id":10864},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10865},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10864":{"this":{"__isSmartRef__":true,"id":4416}},"10865":{"timestamp":{"__isSmartRef__":true,"id":10866},"user":"jan.sandbrink","tags":[]},"10866":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10867":{"varMapping":{"__isSmartRef__":true,"id":10868},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10869},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10868":{"this":{"__isSmartRef__":true,"id":4416}},"10869":{"timestamp":{"__isSmartRef__":true,"id":10870},"user":"josi","tags":["gemtypes"]},"10870":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"10871":{"varMapping":{"__isSmartRef__":true,"id":10872},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":10873},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10872":{"this":{"__isSmartRef__":true,"id":4416}},"10873":{"timestamp":{"__isSmartRef__":true,"id":10874},"user":"josi","tags":["gemtypes"]},"10874":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"10875":{"varMapping":{"__isSmartRef__":true,"id":10876},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":10877},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10876":{"this":{"__isSmartRef__":true,"id":4416}},"10877":{"timestamp":{"__isSmartRef__":true,"id":10878},"user":"josi","tags":[]},"10878":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"10879":{"varMapping":{"__isSmartRef__":true,"id":10880},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":10881},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10880":{"this":{"__isSmartRef__":true,"id":4416}},"10881":{"timestamp":{"__isSmartRef__":true,"id":10882},"user":"josi","tags":[]},"10882":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"10883":{"varMapping":{"__isSmartRef__":true,"id":10884},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10885},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10884":{"this":{"__isSmartRef__":true,"id":4416}},"10885":{"timestamp":{"__isSmartRef__":true,"id":10886},"user":"soergel","tags":[]},"10886":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"10887":{"varMapping":{"__isSmartRef__":true,"id":10888},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":10889},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10888":{"this":{"__isSmartRef__":true,"id":4416}},"10889":{"timestamp":{"__isSmartRef__":true,"id":10890},"user":"soergel","tags":[]},"10890":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"10891":{"varMapping":{"__isSmartRef__":true,"id":10892},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":10893},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10892":{"this":{"__isSmartRef__":true,"id":4416}},"10893":{"timestamp":{"__isSmartRef__":true,"id":10894},"user":"soergel","tags":[]},"10894":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"10895":{"varMapping":{"__isSmartRef__":true,"id":10896},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10897},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10896":{"this":{"__isSmartRef__":true,"id":4416}},"10897":{"timestamp":{"__isSmartRef__":true,"id":10898},"user":"soergel","tags":["debug"]},"10898":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"10899":{"varMapping":{"__isSmartRef__":true,"id":10900},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":10901},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10900":{"this":{"__isSmartRef__":true,"id":4416}},"10901":{"timestamp":{"__isSmartRef__":true,"id":10902},"user":"soergel","tags":["debug"]},"10902":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"10903":{"varMapping":{"__isSmartRef__":true,"id":10904},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10905},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10904":{"this":{"__isSmartRef__":true,"id":4416}},"10905":{"timestamp":{"__isSmartRef__":true,"id":10906},"user":"soergel","tags":[]},"10906":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"10907":{"varMapping":{"__isSmartRef__":true,"id":10908},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10909},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10908":{"this":{"__isSmartRef__":true,"id":4416}},"10909":{"timestamp":{"__isSmartRef__":true,"id":10910},"user":"jan.sandbrink","tags":[]},"10910":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"10911":{"varMapping":{"__isSmartRef__":true,"id":10912},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":10913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10912":{"this":{"__isSmartRef__":true,"id":4416}},"10913":{"timestamp":{"__isSmartRef__":true,"id":10914},"user":"jan.sandbrink","tags":[]},"10914":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"10915":{"varMapping":{"__isSmartRef__":true,"id":10916},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":10917},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10916":{"this":{"__isSmartRef__":true,"id":4416}},"10917":{"timestamp":{"__isSmartRef__":true,"id":10918},"user":"jan.sandbrink","tags":[]},"10918":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"10919":{"varMapping":{"__isSmartRef__":true,"id":10920},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":10921},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10920":{"this":{"__isSmartRef__":true,"id":4416}},"10921":{"timestamp":{"__isSmartRef__":true,"id":10922},"user":"jan.sandbrink","tags":[]},"10922":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"10923":{"varMapping":{"__isSmartRef__":true,"id":10924},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":10925},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10924":{"this":{"__isSmartRef__":true,"id":4416}},"10925":{"timestamp":{"__isSmartRef__":true,"id":10926},"user":"josi","tags":["gemtypes"]},"10926":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"10927":{"varMapping":{"__isSmartRef__":true,"id":10928},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":10929},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10928":{"this":{"__isSmartRef__":true,"id":4416}},"10929":{"timestamp":{"__isSmartRef__":true,"id":10930},"user":"josi","tags":["gemtypes"]},"10930":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"10931":{"varMapping":{"__isSmartRef__":true,"id":10932},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":10933},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10932":{"this":{"__isSmartRef__":true,"id":4416}},"10933":{"timestamp":{"__isSmartRef__":true,"id":10934},"user":"soergel","tags":["debug"]},"10934":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"10935":{"varMapping":{"__isSmartRef__":true,"id":10936},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":10937},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10936":{"this":{"__isSmartRef__":true,"id":4416}},"10937":{"timestamp":{"__isSmartRef__":true,"id":10938},"user":"soergel","tags":["debug"]},"10938":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"10939":{"varMapping":{"__isSmartRef__":true,"id":10940},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":10941},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10940":{"this":{"__isSmartRef__":true,"id":4416}},"10941":{"timestamp":{"__isSmartRef__":true,"id":10942},"user":"josi","tags":["gemtypes"]},"10942":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"10943":{"varMapping":{"__isSmartRef__":true,"id":10944},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":10945},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10944":{"this":{"__isSmartRef__":true,"id":4416}},"10945":{"timestamp":{"__isSmartRef__":true,"id":10946},"user":"soergel","tags":[]},"10946":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"10947":{"varMapping":{"__isSmartRef__":true,"id":10948},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":10949},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10948":{"this":{"__isSmartRef__":true,"id":4416}},"10949":{"timestamp":{"__isSmartRef__":true,"id":10950},"user":"soergel","tags":[]},"10950":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"10951":{"varMapping":{"__isSmartRef__":true,"id":10952},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":10953},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10952":{"this":{"__isSmartRef__":true,"id":4416}},"10953":{"timestamp":{"__isSmartRef__":true,"id":10954},"user":"soergel","tags":[]},"10954":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"10955":{"varMapping":{"__isSmartRef__":true,"id":10956},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":10957},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10956":{"this":{"__isSmartRef__":true,"id":4416}},"10957":{"timestamp":{"__isSmartRef__":true,"id":10958},"user":"josi","tags":["gemtypes"]},"10958":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"10959":{"varMapping":{"__isSmartRef__":true,"id":10960},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":10961},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10960":{"this":{"__isSmartRef__":true,"id":4416}},"10961":{"timestamp":{"__isSmartRef__":true,"id":10962},"user":"josi","tags":["gemtypes"]},"10962":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"10963":{"varMapping":{"__isSmartRef__":true,"id":10964},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":10965},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10964":{"this":{"__isSmartRef__":true,"id":4416}},"10965":{"timestamp":{"__isSmartRef__":true,"id":10966},"user":"jan.sandbrink","tags":[]},"10966":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"10967":{"become":{"__isSmartRef__":true,"id":10968},"onMouseDown":{"__isSmartRef__":true,"id":10972},"updatePicture":{"__isSmartRef__":true,"id":10980},"ruby":{"__isSmartRef__":true,"id":10984},"switchPositionWith":{"__isSmartRef__":true,"id":10988},"addNeighbour":{"__isSmartRef__":true,"id":10992},"amethyst":{"__isSmartRef__":true,"id":10996},"diopside":{"__isSmartRef__":true,"id":11000},"gemTypes":{"__isSmartRef__":true,"id":11004},"becomeRandomGem":{"__isSmartRef__":true,"id":11008},"mark":{"__isSmartRef__":true,"id":11012},"unmark":{"__isSmartRef__":true,"id":11016},"hasNeighbour":{"__isSmartRef__":true,"id":11020},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11024},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11028},"disappear":{"__isSmartRef__":true,"id":11032},"findStreakStart":{"__isSmartRef__":true,"id":11036},"buildStreak":{"__isSmartRef__":true,"id":11040},"scoreStreak":{"__isSmartRef__":true,"id":11044},"tryToStreak":{"__isSmartRef__":true,"id":11048},"blueDiamond":{"__isSmartRef__":true,"id":11052},"prehnite":{"__isSmartRef__":true,"id":11056},"debugUnmark":{"__isSmartRef__":true,"id":11060},"debugMark":{"__isSmartRef__":true,"id":11064},"citrine":{"__isSmartRef__":true,"id":11068},"move":{"__isSmartRef__":true,"id":11072},"performMovement":{"__isSmartRef__":true,"id":11076},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11080},"zircon":{"__isSmartRef__":true,"id":11084},"emerald":{"__isSmartRef__":true,"id":11088},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11092}},"10968":{"varMapping":{"__isSmartRef__":true,"id":10969},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10970},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10969":{"this":{"__isSmartRef__":true,"id":4298}},"10970":{"timestamp":{"__isSmartRef__":true,"id":10971},"user":"josi","tags":[]},"10971":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"10972":{"varMapping":{"__isSmartRef__":true,"id":10973},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":10978},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10973":{"this":{"__isSmartRef__":true,"id":4298},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":10974}},"10974":{"$super":{"__isSmartRef__":true,"id":10975}},"10975":{"varMapping":{"__isSmartRef__":true,"id":10976},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":10977},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10976":{"obj":{"__isSmartRef__":true,"id":4298},"name":"onMouseDown"},"10977":{},"10978":{"timestamp":{"__isSmartRef__":true,"id":10979},"user":"soergel","tags":[]},"10979":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"10980":{"varMapping":{"__isSmartRef__":true,"id":10981},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":10982},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10981":{"this":{"__isSmartRef__":true,"id":4298}},"10982":{"timestamp":{"__isSmartRef__":true,"id":10983},"user":"soergel","tags":[]},"10983":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"10984":{"varMapping":{"__isSmartRef__":true,"id":10985},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":10986},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10985":{"this":{"__isSmartRef__":true,"id":4298}},"10986":{"timestamp":{"__isSmartRef__":true,"id":10987},"user":"josi","tags":["gemtypes"]},"10987":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"10988":{"varMapping":{"__isSmartRef__":true,"id":10989},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":10990},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10989":{"this":{"__isSmartRef__":true,"id":4298}},"10990":{"timestamp":{"__isSmartRef__":true,"id":10991},"user":"jan.sandbrink","tags":[]},"10991":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"10992":{"varMapping":{"__isSmartRef__":true,"id":10993},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":10994},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10993":{"this":{"__isSmartRef__":true,"id":4298}},"10994":{"timestamp":{"__isSmartRef__":true,"id":10995},"user":"jan.sandbrink","tags":[]},"10995":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"10996":{"varMapping":{"__isSmartRef__":true,"id":10997},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":10998},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"10997":{"this":{"__isSmartRef__":true,"id":4298}},"10998":{"timestamp":{"__isSmartRef__":true,"id":10999},"user":"josi","tags":["gemtypes"]},"10999":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11000":{"varMapping":{"__isSmartRef__":true,"id":11001},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11002},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11001":{"this":{"__isSmartRef__":true,"id":4298}},"11002":{"timestamp":{"__isSmartRef__":true,"id":11003},"user":"josi","tags":["gemtypes"]},"11003":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11004":{"varMapping":{"__isSmartRef__":true,"id":11005},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11006},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11005":{"this":{"__isSmartRef__":true,"id":4298}},"11006":{"timestamp":{"__isSmartRef__":true,"id":11007},"user":"josi","tags":[]},"11007":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11008":{"varMapping":{"__isSmartRef__":true,"id":11009},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11010},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11009":{"this":{"__isSmartRef__":true,"id":4298}},"11010":{"timestamp":{"__isSmartRef__":true,"id":11011},"user":"josi","tags":[]},"11011":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11012":{"varMapping":{"__isSmartRef__":true,"id":11013},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11014},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11013":{"this":{"__isSmartRef__":true,"id":4298}},"11014":{"timestamp":{"__isSmartRef__":true,"id":11015},"user":"soergel","tags":[]},"11015":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11016":{"varMapping":{"__isSmartRef__":true,"id":11017},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11018},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11017":{"this":{"__isSmartRef__":true,"id":4298}},"11018":{"timestamp":{"__isSmartRef__":true,"id":11019},"user":"soergel","tags":[]},"11019":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11020":{"varMapping":{"__isSmartRef__":true,"id":11021},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11022},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11021":{"this":{"__isSmartRef__":true,"id":4298}},"11022":{"timestamp":{"__isSmartRef__":true,"id":11023},"user":"soergel","tags":[]},"11023":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11024":{"varMapping":{"__isSmartRef__":true,"id":11025},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11026},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11025":{"this":{"__isSmartRef__":true,"id":4298}},"11026":{"timestamp":{"__isSmartRef__":true,"id":11027},"user":"soergel","tags":["debug"]},"11027":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11028":{"varMapping":{"__isSmartRef__":true,"id":11029},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11030},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11029":{"this":{"__isSmartRef__":true,"id":4298}},"11030":{"timestamp":{"__isSmartRef__":true,"id":11031},"user":"soergel","tags":["debug"]},"11031":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11032":{"varMapping":{"__isSmartRef__":true,"id":11033},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11034},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11033":{"this":{"__isSmartRef__":true,"id":4298}},"11034":{"timestamp":{"__isSmartRef__":true,"id":11035},"user":"soergel","tags":[]},"11035":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11036":{"varMapping":{"__isSmartRef__":true,"id":11037},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11038},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11037":{"this":{"__isSmartRef__":true,"id":4298}},"11038":{"timestamp":{"__isSmartRef__":true,"id":11039},"user":"jan.sandbrink","tags":[]},"11039":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11040":{"varMapping":{"__isSmartRef__":true,"id":11041},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11042},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11041":{"this":{"__isSmartRef__":true,"id":4298}},"11042":{"timestamp":{"__isSmartRef__":true,"id":11043},"user":"jan.sandbrink","tags":[]},"11043":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11044":{"varMapping":{"__isSmartRef__":true,"id":11045},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11046},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11045":{"this":{"__isSmartRef__":true,"id":4298}},"11046":{"timestamp":{"__isSmartRef__":true,"id":11047},"user":"jan.sandbrink","tags":[]},"11047":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11048":{"varMapping":{"__isSmartRef__":true,"id":11049},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11050},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11049":{"this":{"__isSmartRef__":true,"id":4298}},"11050":{"timestamp":{"__isSmartRef__":true,"id":11051},"user":"jan.sandbrink","tags":[]},"11051":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11052":{"varMapping":{"__isSmartRef__":true,"id":11053},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11054},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11053":{"this":{"__isSmartRef__":true,"id":4298}},"11054":{"timestamp":{"__isSmartRef__":true,"id":11055},"user":"josi","tags":["gemtypes"]},"11055":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11056":{"varMapping":{"__isSmartRef__":true,"id":11057},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11058},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11057":{"this":{"__isSmartRef__":true,"id":4298}},"11058":{"timestamp":{"__isSmartRef__":true,"id":11059},"user":"josi","tags":["gemtypes"]},"11059":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11060":{"varMapping":{"__isSmartRef__":true,"id":11061},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11062},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11061":{"this":{"__isSmartRef__":true,"id":4298}},"11062":{"timestamp":{"__isSmartRef__":true,"id":11063},"user":"soergel","tags":["debug"]},"11063":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11064":{"varMapping":{"__isSmartRef__":true,"id":11065},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11066},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11065":{"this":{"__isSmartRef__":true,"id":4298}},"11066":{"timestamp":{"__isSmartRef__":true,"id":11067},"user":"soergel","tags":["debug"]},"11067":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11068":{"varMapping":{"__isSmartRef__":true,"id":11069},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11070},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11069":{"this":{"__isSmartRef__":true,"id":4298}},"11070":{"timestamp":{"__isSmartRef__":true,"id":11071},"user":"josi","tags":["gemtypes"]},"11071":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11072":{"varMapping":{"__isSmartRef__":true,"id":11073},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11074},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11073":{"this":{"__isSmartRef__":true,"id":4298}},"11074":{"timestamp":{"__isSmartRef__":true,"id":11075},"user":"soergel","tags":[]},"11075":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11076":{"varMapping":{"__isSmartRef__":true,"id":11077},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11078},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11077":{"this":{"__isSmartRef__":true,"id":4298}},"11078":{"timestamp":{"__isSmartRef__":true,"id":11079},"user":"soergel","tags":[]},"11079":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11080":{"varMapping":{"__isSmartRef__":true,"id":11081},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11082},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11081":{"this":{"__isSmartRef__":true,"id":4298}},"11082":{"timestamp":{"__isSmartRef__":true,"id":11083},"user":"soergel","tags":[]},"11083":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11084":{"varMapping":{"__isSmartRef__":true,"id":11085},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11086},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11085":{"this":{"__isSmartRef__":true,"id":4298}},"11086":{"timestamp":{"__isSmartRef__":true,"id":11087},"user":"josi","tags":["gemtypes"]},"11087":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11088":{"varMapping":{"__isSmartRef__":true,"id":11089},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11090},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11089":{"this":{"__isSmartRef__":true,"id":4298}},"11090":{"timestamp":{"__isSmartRef__":true,"id":11091},"user":"josi","tags":["gemtypes"]},"11091":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11092":{"varMapping":{"__isSmartRef__":true,"id":11093},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11094},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11093":{"this":{"__isSmartRef__":true,"id":4298}},"11094":{"timestamp":{"__isSmartRef__":true,"id":11095},"user":"jan.sandbrink","tags":[]},"11095":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"11096":{"x":148.61108261184663,"y":205.7828247838031,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"11097":{"become":{"__isSmartRef__":true,"id":11098},"onMouseDown":{"__isSmartRef__":true,"id":11102},"updatePicture":{"__isSmartRef__":true,"id":11110},"ruby":{"__isSmartRef__":true,"id":11114},"switchPositionWith":{"__isSmartRef__":true,"id":11118},"addNeighbour":{"__isSmartRef__":true,"id":11122},"amethyst":{"__isSmartRef__":true,"id":11126},"diopside":{"__isSmartRef__":true,"id":11130},"gemTypes":{"__isSmartRef__":true,"id":11134},"becomeRandomGem":{"__isSmartRef__":true,"id":11138},"mark":{"__isSmartRef__":true,"id":11142},"unmark":{"__isSmartRef__":true,"id":11146},"hasNeighbour":{"__isSmartRef__":true,"id":11150},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11154},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11158},"disappear":{"__isSmartRef__":true,"id":11162},"findStreakStart":{"__isSmartRef__":true,"id":11166},"buildStreak":{"__isSmartRef__":true,"id":11170},"scoreStreak":{"__isSmartRef__":true,"id":11174},"tryToStreak":{"__isSmartRef__":true,"id":11178},"blueDiamond":{"__isSmartRef__":true,"id":11182},"prehnite":{"__isSmartRef__":true,"id":11186},"debugUnmark":{"__isSmartRef__":true,"id":11190},"debugMark":{"__isSmartRef__":true,"id":11194},"citrine":{"__isSmartRef__":true,"id":11198},"move":{"__isSmartRef__":true,"id":11202},"performMovement":{"__isSmartRef__":true,"id":11206},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11210},"zircon":{"__isSmartRef__":true,"id":11214},"emerald":{"__isSmartRef__":true,"id":11218},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11222}},"11098":{"varMapping":{"__isSmartRef__":true,"id":11099},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11100},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11099":{"this":{"__isSmartRef__":true,"id":4166}},"11100":{"timestamp":{"__isSmartRef__":true,"id":11101},"user":"josi","tags":[]},"11101":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"11102":{"varMapping":{"__isSmartRef__":true,"id":11103},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":11108},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11103":{"this":{"__isSmartRef__":true,"id":4166},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11104}},"11104":{"$super":{"__isSmartRef__":true,"id":11105}},"11105":{"varMapping":{"__isSmartRef__":true,"id":11106},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11107},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11106":{"obj":{"__isSmartRef__":true,"id":4166},"name":"onMouseDown"},"11107":{},"11108":{"timestamp":{"__isSmartRef__":true,"id":11109},"user":"soergel","tags":[]},"11109":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"11110":{"varMapping":{"__isSmartRef__":true,"id":11111},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":11112},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11111":{"this":{"__isSmartRef__":true,"id":4166}},"11112":{"timestamp":{"__isSmartRef__":true,"id":11113},"user":"soergel","tags":[]},"11113":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"11114":{"varMapping":{"__isSmartRef__":true,"id":11115},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":11116},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11115":{"this":{"__isSmartRef__":true,"id":4166}},"11116":{"timestamp":{"__isSmartRef__":true,"id":11117},"user":"josi","tags":["gemtypes"]},"11117":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"11118":{"varMapping":{"__isSmartRef__":true,"id":11119},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11120},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11119":{"this":{"__isSmartRef__":true,"id":4166}},"11120":{"timestamp":{"__isSmartRef__":true,"id":11121},"user":"jan.sandbrink","tags":[]},"11121":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"11122":{"varMapping":{"__isSmartRef__":true,"id":11123},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11124},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11123":{"this":{"__isSmartRef__":true,"id":4166}},"11124":{"timestamp":{"__isSmartRef__":true,"id":11125},"user":"jan.sandbrink","tags":[]},"11125":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"11126":{"varMapping":{"__isSmartRef__":true,"id":11127},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":11128},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11127":{"this":{"__isSmartRef__":true,"id":4166}},"11128":{"timestamp":{"__isSmartRef__":true,"id":11129},"user":"josi","tags":["gemtypes"]},"11129":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11130":{"varMapping":{"__isSmartRef__":true,"id":11131},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11132},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11131":{"this":{"__isSmartRef__":true,"id":4166}},"11132":{"timestamp":{"__isSmartRef__":true,"id":11133},"user":"josi","tags":["gemtypes"]},"11133":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11134":{"varMapping":{"__isSmartRef__":true,"id":11135},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11136},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11135":{"this":{"__isSmartRef__":true,"id":4166}},"11136":{"timestamp":{"__isSmartRef__":true,"id":11137},"user":"josi","tags":[]},"11137":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11138":{"varMapping":{"__isSmartRef__":true,"id":11139},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11140},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11139":{"this":{"__isSmartRef__":true,"id":4166}},"11140":{"timestamp":{"__isSmartRef__":true,"id":11141},"user":"josi","tags":[]},"11141":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11142":{"varMapping":{"__isSmartRef__":true,"id":11143},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11144},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11143":{"this":{"__isSmartRef__":true,"id":4166}},"11144":{"timestamp":{"__isSmartRef__":true,"id":11145},"user":"soergel","tags":[]},"11145":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11146":{"varMapping":{"__isSmartRef__":true,"id":11147},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11148},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11147":{"this":{"__isSmartRef__":true,"id":4166}},"11148":{"timestamp":{"__isSmartRef__":true,"id":11149},"user":"soergel","tags":[]},"11149":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11150":{"varMapping":{"__isSmartRef__":true,"id":11151},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11152},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11151":{"this":{"__isSmartRef__":true,"id":4166}},"11152":{"timestamp":{"__isSmartRef__":true,"id":11153},"user":"soergel","tags":[]},"11153":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11154":{"varMapping":{"__isSmartRef__":true,"id":11155},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11156},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11155":{"this":{"__isSmartRef__":true,"id":4166}},"11156":{"timestamp":{"__isSmartRef__":true,"id":11157},"user":"soergel","tags":["debug"]},"11157":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11158":{"varMapping":{"__isSmartRef__":true,"id":11159},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11160},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11159":{"this":{"__isSmartRef__":true,"id":4166}},"11160":{"timestamp":{"__isSmartRef__":true,"id":11161},"user":"soergel","tags":["debug"]},"11161":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11162":{"varMapping":{"__isSmartRef__":true,"id":11163},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11164},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11163":{"this":{"__isSmartRef__":true,"id":4166}},"11164":{"timestamp":{"__isSmartRef__":true,"id":11165},"user":"soergel","tags":[]},"11165":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11166":{"varMapping":{"__isSmartRef__":true,"id":11167},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11168},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11167":{"this":{"__isSmartRef__":true,"id":4166}},"11168":{"timestamp":{"__isSmartRef__":true,"id":11169},"user":"jan.sandbrink","tags":[]},"11169":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11170":{"varMapping":{"__isSmartRef__":true,"id":11171},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11172},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11171":{"this":{"__isSmartRef__":true,"id":4166}},"11172":{"timestamp":{"__isSmartRef__":true,"id":11173},"user":"jan.sandbrink","tags":[]},"11173":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11174":{"varMapping":{"__isSmartRef__":true,"id":11175},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11176},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11175":{"this":{"__isSmartRef__":true,"id":4166}},"11176":{"timestamp":{"__isSmartRef__":true,"id":11177},"user":"jan.sandbrink","tags":[]},"11177":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11178":{"varMapping":{"__isSmartRef__":true,"id":11179},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11180},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11179":{"this":{"__isSmartRef__":true,"id":4166}},"11180":{"timestamp":{"__isSmartRef__":true,"id":11181},"user":"jan.sandbrink","tags":[]},"11181":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11182":{"varMapping":{"__isSmartRef__":true,"id":11183},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11184},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11183":{"this":{"__isSmartRef__":true,"id":4166}},"11184":{"timestamp":{"__isSmartRef__":true,"id":11185},"user":"josi","tags":["gemtypes"]},"11185":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11186":{"varMapping":{"__isSmartRef__":true,"id":11187},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11188},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11187":{"this":{"__isSmartRef__":true,"id":4166}},"11188":{"timestamp":{"__isSmartRef__":true,"id":11189},"user":"josi","tags":["gemtypes"]},"11189":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11190":{"varMapping":{"__isSmartRef__":true,"id":11191},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11192},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11191":{"this":{"__isSmartRef__":true,"id":4166}},"11192":{"timestamp":{"__isSmartRef__":true,"id":11193},"user":"soergel","tags":["debug"]},"11193":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11194":{"varMapping":{"__isSmartRef__":true,"id":11195},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11196},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11195":{"this":{"__isSmartRef__":true,"id":4166}},"11196":{"timestamp":{"__isSmartRef__":true,"id":11197},"user":"soergel","tags":["debug"]},"11197":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11198":{"varMapping":{"__isSmartRef__":true,"id":11199},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11200},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11199":{"this":{"__isSmartRef__":true,"id":4166}},"11200":{"timestamp":{"__isSmartRef__":true,"id":11201},"user":"josi","tags":["gemtypes"]},"11201":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11202":{"varMapping":{"__isSmartRef__":true,"id":11203},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11204},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11203":{"this":{"__isSmartRef__":true,"id":4166}},"11204":{"timestamp":{"__isSmartRef__":true,"id":11205},"user":"soergel","tags":[]},"11205":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11206":{"varMapping":{"__isSmartRef__":true,"id":11207},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11208},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11207":{"this":{"__isSmartRef__":true,"id":4166}},"11208":{"timestamp":{"__isSmartRef__":true,"id":11209},"user":"soergel","tags":[]},"11209":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11210":{"varMapping":{"__isSmartRef__":true,"id":11211},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11212},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11211":{"this":{"__isSmartRef__":true,"id":4166}},"11212":{"timestamp":{"__isSmartRef__":true,"id":11213},"user":"soergel","tags":[]},"11213":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11214":{"varMapping":{"__isSmartRef__":true,"id":11215},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11216},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11215":{"this":{"__isSmartRef__":true,"id":4166}},"11216":{"timestamp":{"__isSmartRef__":true,"id":11217},"user":"josi","tags":["gemtypes"]},"11217":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11218":{"varMapping":{"__isSmartRef__":true,"id":11219},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11220},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11219":{"this":{"__isSmartRef__":true,"id":4166}},"11220":{"timestamp":{"__isSmartRef__":true,"id":11221},"user":"josi","tags":["gemtypes"]},"11221":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11222":{"varMapping":{"__isSmartRef__":true,"id":11223},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11224},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11223":{"this":{"__isSmartRef__":true,"id":4166}},"11224":{"timestamp":{"__isSmartRef__":true,"id":11225},"user":"jan.sandbrink","tags":[]},"11225":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"11226":{"become":{"__isSmartRef__":true,"id":11227},"onMouseDown":{"__isSmartRef__":true,"id":11231},"updatePicture":{"__isSmartRef__":true,"id":11239},"ruby":{"__isSmartRef__":true,"id":11243},"switchPositionWith":{"__isSmartRef__":true,"id":11247},"addNeighbour":{"__isSmartRef__":true,"id":11251},"amethyst":{"__isSmartRef__":true,"id":11255},"diopside":{"__isSmartRef__":true,"id":11259},"gemTypes":{"__isSmartRef__":true,"id":11263},"becomeRandomGem":{"__isSmartRef__":true,"id":11267},"mark":{"__isSmartRef__":true,"id":11271},"unmark":{"__isSmartRef__":true,"id":11275},"hasNeighbour":{"__isSmartRef__":true,"id":11279},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11283},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11287},"disappear":{"__isSmartRef__":true,"id":11291},"findStreakStart":{"__isSmartRef__":true,"id":11295},"buildStreak":{"__isSmartRef__":true,"id":11299},"scoreStreak":{"__isSmartRef__":true,"id":11303},"tryToStreak":{"__isSmartRef__":true,"id":11307},"blueDiamond":{"__isSmartRef__":true,"id":11311},"prehnite":{"__isSmartRef__":true,"id":11315},"debugUnmark":{"__isSmartRef__":true,"id":11319},"debugMark":{"__isSmartRef__":true,"id":11323},"citrine":{"__isSmartRef__":true,"id":11327},"move":{"__isSmartRef__":true,"id":11331},"performMovement":{"__isSmartRef__":true,"id":11335},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11339},"zircon":{"__isSmartRef__":true,"id":11343},"emerald":{"__isSmartRef__":true,"id":11347},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11351}},"11227":{"varMapping":{"__isSmartRef__":true,"id":11228},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11229},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11228":{"this":{"__isSmartRef__":true,"id":4074}},"11229":{"timestamp":{"__isSmartRef__":true,"id":11230},"user":"josi","tags":[]},"11230":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"11231":{"varMapping":{"__isSmartRef__":true,"id":11232},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":11237},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11232":{"this":{"__isSmartRef__":true,"id":4074},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11233}},"11233":{"$super":{"__isSmartRef__":true,"id":11234}},"11234":{"varMapping":{"__isSmartRef__":true,"id":11235},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11236},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11235":{"obj":{"__isSmartRef__":true,"id":4074},"name":"onMouseDown"},"11236":{},"11237":{"timestamp":{"__isSmartRef__":true,"id":11238},"user":"soergel","tags":[]},"11238":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"11239":{"varMapping":{"__isSmartRef__":true,"id":11240},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":11241},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11240":{"this":{"__isSmartRef__":true,"id":4074}},"11241":{"timestamp":{"__isSmartRef__":true,"id":11242},"user":"soergel","tags":[]},"11242":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"11243":{"varMapping":{"__isSmartRef__":true,"id":11244},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":11245},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11244":{"this":{"__isSmartRef__":true,"id":4074}},"11245":{"timestamp":{"__isSmartRef__":true,"id":11246},"user":"josi","tags":["gemtypes"]},"11246":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"11247":{"varMapping":{"__isSmartRef__":true,"id":11248},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11249},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11248":{"this":{"__isSmartRef__":true,"id":4074}},"11249":{"timestamp":{"__isSmartRef__":true,"id":11250},"user":"jan.sandbrink","tags":[]},"11250":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"11251":{"varMapping":{"__isSmartRef__":true,"id":11252},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11253},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11252":{"this":{"__isSmartRef__":true,"id":4074}},"11253":{"timestamp":{"__isSmartRef__":true,"id":11254},"user":"jan.sandbrink","tags":[]},"11254":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"11255":{"varMapping":{"__isSmartRef__":true,"id":11256},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":11257},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11256":{"this":{"__isSmartRef__":true,"id":4074}},"11257":{"timestamp":{"__isSmartRef__":true,"id":11258},"user":"josi","tags":["gemtypes"]},"11258":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11259":{"varMapping":{"__isSmartRef__":true,"id":11260},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11261},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11260":{"this":{"__isSmartRef__":true,"id":4074}},"11261":{"timestamp":{"__isSmartRef__":true,"id":11262},"user":"josi","tags":["gemtypes"]},"11262":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11263":{"varMapping":{"__isSmartRef__":true,"id":11264},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11265},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11264":{"this":{"__isSmartRef__":true,"id":4074}},"11265":{"timestamp":{"__isSmartRef__":true,"id":11266},"user":"josi","tags":[]},"11266":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11267":{"varMapping":{"__isSmartRef__":true,"id":11268},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11269},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11268":{"this":{"__isSmartRef__":true,"id":4074}},"11269":{"timestamp":{"__isSmartRef__":true,"id":11270},"user":"josi","tags":[]},"11270":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11271":{"varMapping":{"__isSmartRef__":true,"id":11272},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11273},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11272":{"this":{"__isSmartRef__":true,"id":4074}},"11273":{"timestamp":{"__isSmartRef__":true,"id":11274},"user":"soergel","tags":[]},"11274":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11275":{"varMapping":{"__isSmartRef__":true,"id":11276},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11277},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11276":{"this":{"__isSmartRef__":true,"id":4074}},"11277":{"timestamp":{"__isSmartRef__":true,"id":11278},"user":"soergel","tags":[]},"11278":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11279":{"varMapping":{"__isSmartRef__":true,"id":11280},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11281},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11280":{"this":{"__isSmartRef__":true,"id":4074}},"11281":{"timestamp":{"__isSmartRef__":true,"id":11282},"user":"soergel","tags":[]},"11282":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11283":{"varMapping":{"__isSmartRef__":true,"id":11284},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11285},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11284":{"this":{"__isSmartRef__":true,"id":4074}},"11285":{"timestamp":{"__isSmartRef__":true,"id":11286},"user":"soergel","tags":["debug"]},"11286":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11287":{"varMapping":{"__isSmartRef__":true,"id":11288},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11289},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11288":{"this":{"__isSmartRef__":true,"id":4074}},"11289":{"timestamp":{"__isSmartRef__":true,"id":11290},"user":"soergel","tags":["debug"]},"11290":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11291":{"varMapping":{"__isSmartRef__":true,"id":11292},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11293},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11292":{"this":{"__isSmartRef__":true,"id":4074}},"11293":{"timestamp":{"__isSmartRef__":true,"id":11294},"user":"soergel","tags":[]},"11294":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11295":{"varMapping":{"__isSmartRef__":true,"id":11296},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11297},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11296":{"this":{"__isSmartRef__":true,"id":4074}},"11297":{"timestamp":{"__isSmartRef__":true,"id":11298},"user":"jan.sandbrink","tags":[]},"11298":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11299":{"varMapping":{"__isSmartRef__":true,"id":11300},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11301},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11300":{"this":{"__isSmartRef__":true,"id":4074}},"11301":{"timestamp":{"__isSmartRef__":true,"id":11302},"user":"jan.sandbrink","tags":[]},"11302":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11303":{"varMapping":{"__isSmartRef__":true,"id":11304},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11305},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11304":{"this":{"__isSmartRef__":true,"id":4074}},"11305":{"timestamp":{"__isSmartRef__":true,"id":11306},"user":"jan.sandbrink","tags":[]},"11306":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11307":{"varMapping":{"__isSmartRef__":true,"id":11308},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11309},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11308":{"this":{"__isSmartRef__":true,"id":4074}},"11309":{"timestamp":{"__isSmartRef__":true,"id":11310},"user":"jan.sandbrink","tags":[]},"11310":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11311":{"varMapping":{"__isSmartRef__":true,"id":11312},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11313},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11312":{"this":{"__isSmartRef__":true,"id":4074}},"11313":{"timestamp":{"__isSmartRef__":true,"id":11314},"user":"josi","tags":["gemtypes"]},"11314":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11315":{"varMapping":{"__isSmartRef__":true,"id":11316},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11317},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11316":{"this":{"__isSmartRef__":true,"id":4074}},"11317":{"timestamp":{"__isSmartRef__":true,"id":11318},"user":"josi","tags":["gemtypes"]},"11318":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11319":{"varMapping":{"__isSmartRef__":true,"id":11320},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11321},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11320":{"this":{"__isSmartRef__":true,"id":4074}},"11321":{"timestamp":{"__isSmartRef__":true,"id":11322},"user":"soergel","tags":["debug"]},"11322":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11323":{"varMapping":{"__isSmartRef__":true,"id":11324},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11324":{"this":{"__isSmartRef__":true,"id":4074}},"11325":{"timestamp":{"__isSmartRef__":true,"id":11326},"user":"soergel","tags":["debug"]},"11326":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11327":{"varMapping":{"__isSmartRef__":true,"id":11328},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11328":{"this":{"__isSmartRef__":true,"id":4074}},"11329":{"timestamp":{"__isSmartRef__":true,"id":11330},"user":"josi","tags":["gemtypes"]},"11330":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11331":{"varMapping":{"__isSmartRef__":true,"id":11332},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11332":{"this":{"__isSmartRef__":true,"id":4074}},"11333":{"timestamp":{"__isSmartRef__":true,"id":11334},"user":"soergel","tags":[]},"11334":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11335":{"varMapping":{"__isSmartRef__":true,"id":11336},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11336":{"this":{"__isSmartRef__":true,"id":4074}},"11337":{"timestamp":{"__isSmartRef__":true,"id":11338},"user":"soergel","tags":[]},"11338":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11339":{"varMapping":{"__isSmartRef__":true,"id":11340},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11340":{"this":{"__isSmartRef__":true,"id":4074}},"11341":{"timestamp":{"__isSmartRef__":true,"id":11342},"user":"soergel","tags":[]},"11342":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11343":{"varMapping":{"__isSmartRef__":true,"id":11344},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11344":{"this":{"__isSmartRef__":true,"id":4074}},"11345":{"timestamp":{"__isSmartRef__":true,"id":11346},"user":"josi","tags":["gemtypes"]},"11346":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11347":{"varMapping":{"__isSmartRef__":true,"id":11348},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11348":{"this":{"__isSmartRef__":true,"id":4074}},"11349":{"timestamp":{"__isSmartRef__":true,"id":11350},"user":"josi","tags":["gemtypes"]},"11350":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11351":{"varMapping":{"__isSmartRef__":true,"id":11352},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11352":{"this":{"__isSmartRef__":true,"id":4074}},"11353":{"timestamp":{"__isSmartRef__":true,"id":11354},"user":"jan.sandbrink","tags":[]},"11354":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"11355":{"become":{"__isSmartRef__":true,"id":11356},"onMouseDown":{"__isSmartRef__":true,"id":11360},"updatePicture":{"__isSmartRef__":true,"id":11368},"ruby":{"__isSmartRef__":true,"id":11372},"switchPositionWith":{"__isSmartRef__":true,"id":11376},"addNeighbour":{"__isSmartRef__":true,"id":11380},"amethyst":{"__isSmartRef__":true,"id":11384},"diopside":{"__isSmartRef__":true,"id":11388},"gemTypes":{"__isSmartRef__":true,"id":11392},"becomeRandomGem":{"__isSmartRef__":true,"id":11396},"mark":{"__isSmartRef__":true,"id":11400},"unmark":{"__isSmartRef__":true,"id":11404},"hasNeighbour":{"__isSmartRef__":true,"id":11408},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11412},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11416},"disappear":{"__isSmartRef__":true,"id":11420},"findStreakStart":{"__isSmartRef__":true,"id":11424},"buildStreak":{"__isSmartRef__":true,"id":11428},"scoreStreak":{"__isSmartRef__":true,"id":11432},"tryToStreak":{"__isSmartRef__":true,"id":11436},"blueDiamond":{"__isSmartRef__":true,"id":11440},"prehnite":{"__isSmartRef__":true,"id":11444},"debugUnmark":{"__isSmartRef__":true,"id":11448},"debugMark":{"__isSmartRef__":true,"id":11452},"citrine":{"__isSmartRef__":true,"id":11456},"move":{"__isSmartRef__":true,"id":11460},"performMovement":{"__isSmartRef__":true,"id":11464},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11468},"zircon":{"__isSmartRef__":true,"id":11472},"emerald":{"__isSmartRef__":true,"id":11476},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11480}},"11356":{"varMapping":{"__isSmartRef__":true,"id":11357},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11358},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11357":{"this":{"__isSmartRef__":true,"id":3973}},"11358":{"timestamp":{"__isSmartRef__":true,"id":11359},"user":"josi","tags":[]},"11359":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"11360":{"varMapping":{"__isSmartRef__":true,"id":11361},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":11366},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11361":{"this":{"__isSmartRef__":true,"id":3973},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11362}},"11362":{"$super":{"__isSmartRef__":true,"id":11363}},"11363":{"varMapping":{"__isSmartRef__":true,"id":11364},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11364":{"obj":{"__isSmartRef__":true,"id":3973},"name":"onMouseDown"},"11365":{},"11366":{"timestamp":{"__isSmartRef__":true,"id":11367},"user":"soergel","tags":[]},"11367":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"11368":{"varMapping":{"__isSmartRef__":true,"id":11369},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":11370},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11369":{"this":{"__isSmartRef__":true,"id":3973}},"11370":{"timestamp":{"__isSmartRef__":true,"id":11371},"user":"soergel","tags":[]},"11371":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"11372":{"varMapping":{"__isSmartRef__":true,"id":11373},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":11374},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11373":{"this":{"__isSmartRef__":true,"id":3973}},"11374":{"timestamp":{"__isSmartRef__":true,"id":11375},"user":"josi","tags":["gemtypes"]},"11375":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"11376":{"varMapping":{"__isSmartRef__":true,"id":11377},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11378},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11377":{"this":{"__isSmartRef__":true,"id":3973}},"11378":{"timestamp":{"__isSmartRef__":true,"id":11379},"user":"jan.sandbrink","tags":[]},"11379":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"11380":{"varMapping":{"__isSmartRef__":true,"id":11381},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11382},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11381":{"this":{"__isSmartRef__":true,"id":3973}},"11382":{"timestamp":{"__isSmartRef__":true,"id":11383},"user":"jan.sandbrink","tags":[]},"11383":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"11384":{"varMapping":{"__isSmartRef__":true,"id":11385},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":11386},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11385":{"this":{"__isSmartRef__":true,"id":3973}},"11386":{"timestamp":{"__isSmartRef__":true,"id":11387},"user":"josi","tags":["gemtypes"]},"11387":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11388":{"varMapping":{"__isSmartRef__":true,"id":11389},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11390},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11389":{"this":{"__isSmartRef__":true,"id":3973}},"11390":{"timestamp":{"__isSmartRef__":true,"id":11391},"user":"josi","tags":["gemtypes"]},"11391":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11392":{"varMapping":{"__isSmartRef__":true,"id":11393},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11394},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11393":{"this":{"__isSmartRef__":true,"id":3973}},"11394":{"timestamp":{"__isSmartRef__":true,"id":11395},"user":"josi","tags":[]},"11395":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11396":{"varMapping":{"__isSmartRef__":true,"id":11397},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11398},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11397":{"this":{"__isSmartRef__":true,"id":3973}},"11398":{"timestamp":{"__isSmartRef__":true,"id":11399},"user":"josi","tags":[]},"11399":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11400":{"varMapping":{"__isSmartRef__":true,"id":11401},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11402},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11401":{"this":{"__isSmartRef__":true,"id":3973}},"11402":{"timestamp":{"__isSmartRef__":true,"id":11403},"user":"soergel","tags":[]},"11403":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11404":{"varMapping":{"__isSmartRef__":true,"id":11405},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11405":{"this":{"__isSmartRef__":true,"id":3973}},"11406":{"timestamp":{"__isSmartRef__":true,"id":11407},"user":"soergel","tags":[]},"11407":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11408":{"varMapping":{"__isSmartRef__":true,"id":11409},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11410},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11409":{"this":{"__isSmartRef__":true,"id":3973}},"11410":{"timestamp":{"__isSmartRef__":true,"id":11411},"user":"soergel","tags":[]},"11411":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11412":{"varMapping":{"__isSmartRef__":true,"id":11413},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11414},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11413":{"this":{"__isSmartRef__":true,"id":3973}},"11414":{"timestamp":{"__isSmartRef__":true,"id":11415},"user":"soergel","tags":["debug"]},"11415":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11416":{"varMapping":{"__isSmartRef__":true,"id":11417},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11418},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11417":{"this":{"__isSmartRef__":true,"id":3973}},"11418":{"timestamp":{"__isSmartRef__":true,"id":11419},"user":"soergel","tags":["debug"]},"11419":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11420":{"varMapping":{"__isSmartRef__":true,"id":11421},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11422},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11421":{"this":{"__isSmartRef__":true,"id":3973}},"11422":{"timestamp":{"__isSmartRef__":true,"id":11423},"user":"soergel","tags":[]},"11423":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11424":{"varMapping":{"__isSmartRef__":true,"id":11425},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11426},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11425":{"this":{"__isSmartRef__":true,"id":3973}},"11426":{"timestamp":{"__isSmartRef__":true,"id":11427},"user":"jan.sandbrink","tags":[]},"11427":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11428":{"varMapping":{"__isSmartRef__":true,"id":11429},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11430},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11429":{"this":{"__isSmartRef__":true,"id":3973}},"11430":{"timestamp":{"__isSmartRef__":true,"id":11431},"user":"jan.sandbrink","tags":[]},"11431":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11432":{"varMapping":{"__isSmartRef__":true,"id":11433},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11434},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11433":{"this":{"__isSmartRef__":true,"id":3973}},"11434":{"timestamp":{"__isSmartRef__":true,"id":11435},"user":"jan.sandbrink","tags":[]},"11435":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11436":{"varMapping":{"__isSmartRef__":true,"id":11437},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11438},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11437":{"this":{"__isSmartRef__":true,"id":3973}},"11438":{"timestamp":{"__isSmartRef__":true,"id":11439},"user":"jan.sandbrink","tags":[]},"11439":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11440":{"varMapping":{"__isSmartRef__":true,"id":11441},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11442},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11441":{"this":{"__isSmartRef__":true,"id":3973}},"11442":{"timestamp":{"__isSmartRef__":true,"id":11443},"user":"josi","tags":["gemtypes"]},"11443":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11444":{"varMapping":{"__isSmartRef__":true,"id":11445},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11445":{"this":{"__isSmartRef__":true,"id":3973}},"11446":{"timestamp":{"__isSmartRef__":true,"id":11447},"user":"josi","tags":["gemtypes"]},"11447":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11448":{"varMapping":{"__isSmartRef__":true,"id":11449},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11450},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11449":{"this":{"__isSmartRef__":true,"id":3973}},"11450":{"timestamp":{"__isSmartRef__":true,"id":11451},"user":"soergel","tags":["debug"]},"11451":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11452":{"varMapping":{"__isSmartRef__":true,"id":11453},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11454},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11453":{"this":{"__isSmartRef__":true,"id":3973}},"11454":{"timestamp":{"__isSmartRef__":true,"id":11455},"user":"soergel","tags":["debug"]},"11455":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11456":{"varMapping":{"__isSmartRef__":true,"id":11457},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11458},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11457":{"this":{"__isSmartRef__":true,"id":3973}},"11458":{"timestamp":{"__isSmartRef__":true,"id":11459},"user":"josi","tags":["gemtypes"]},"11459":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11460":{"varMapping":{"__isSmartRef__":true,"id":11461},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11462},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11461":{"this":{"__isSmartRef__":true,"id":3973}},"11462":{"timestamp":{"__isSmartRef__":true,"id":11463},"user":"soergel","tags":[]},"11463":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11464":{"varMapping":{"__isSmartRef__":true,"id":11465},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11465":{"this":{"__isSmartRef__":true,"id":3973}},"11466":{"timestamp":{"__isSmartRef__":true,"id":11467},"user":"soergel","tags":[]},"11467":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11468":{"varMapping":{"__isSmartRef__":true,"id":11469},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11470},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11469":{"this":{"__isSmartRef__":true,"id":3973}},"11470":{"timestamp":{"__isSmartRef__":true,"id":11471},"user":"soergel","tags":[]},"11471":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11472":{"varMapping":{"__isSmartRef__":true,"id":11473},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11474},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11473":{"this":{"__isSmartRef__":true,"id":3973}},"11474":{"timestamp":{"__isSmartRef__":true,"id":11475},"user":"josi","tags":["gemtypes"]},"11475":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11476":{"varMapping":{"__isSmartRef__":true,"id":11477},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11478},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11477":{"this":{"__isSmartRef__":true,"id":3973}},"11478":{"timestamp":{"__isSmartRef__":true,"id":11479},"user":"josi","tags":["gemtypes"]},"11479":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11480":{"varMapping":{"__isSmartRef__":true,"id":11481},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11481":{"this":{"__isSmartRef__":true,"id":3973}},"11482":{"timestamp":{"__isSmartRef__":true,"id":11483},"user":"jan.sandbrink","tags":[]},"11483":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"11484":{"become":{"__isSmartRef__":true,"id":11485},"onMouseDown":{"__isSmartRef__":true,"id":11489},"updatePicture":{"__isSmartRef__":true,"id":11497},"ruby":{"__isSmartRef__":true,"id":11501},"switchPositionWith":{"__isSmartRef__":true,"id":11505},"addNeighbour":{"__isSmartRef__":true,"id":11509},"amethyst":{"__isSmartRef__":true,"id":11513},"diopside":{"__isSmartRef__":true,"id":11517},"gemTypes":{"__isSmartRef__":true,"id":11521},"becomeRandomGem":{"__isSmartRef__":true,"id":11525},"mark":{"__isSmartRef__":true,"id":11529},"unmark":{"__isSmartRef__":true,"id":11533},"hasNeighbour":{"__isSmartRef__":true,"id":11537},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11541},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11545},"disappear":{"__isSmartRef__":true,"id":11549},"findStreakStart":{"__isSmartRef__":true,"id":11553},"buildStreak":{"__isSmartRef__":true,"id":11557},"scoreStreak":{"__isSmartRef__":true,"id":11561},"tryToStreak":{"__isSmartRef__":true,"id":11565},"blueDiamond":{"__isSmartRef__":true,"id":11569},"prehnite":{"__isSmartRef__":true,"id":11573},"debugUnmark":{"__isSmartRef__":true,"id":11577},"debugMark":{"__isSmartRef__":true,"id":11581},"citrine":{"__isSmartRef__":true,"id":11585},"move":{"__isSmartRef__":true,"id":11589},"performMovement":{"__isSmartRef__":true,"id":11593},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11597},"zircon":{"__isSmartRef__":true,"id":11601},"emerald":{"__isSmartRef__":true,"id":11605},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11609}},"11485":{"varMapping":{"__isSmartRef__":true,"id":11486},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11487},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11486":{"this":{"__isSmartRef__":true,"id":3881}},"11487":{"timestamp":{"__isSmartRef__":true,"id":11488},"user":"josi","tags":[]},"11488":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"11489":{"varMapping":{"__isSmartRef__":true,"id":11490},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":11495},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11490":{"this":{"__isSmartRef__":true,"id":3881},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11491}},"11491":{"$super":{"__isSmartRef__":true,"id":11492}},"11492":{"varMapping":{"__isSmartRef__":true,"id":11493},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11494},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11493":{"obj":{"__isSmartRef__":true,"id":3881},"name":"onMouseDown"},"11494":{},"11495":{"timestamp":{"__isSmartRef__":true,"id":11496},"user":"soergel","tags":[]},"11496":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"11497":{"varMapping":{"__isSmartRef__":true,"id":11498},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":11499},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11498":{"this":{"__isSmartRef__":true,"id":3881}},"11499":{"timestamp":{"__isSmartRef__":true,"id":11500},"user":"soergel","tags":[]},"11500":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"11501":{"varMapping":{"__isSmartRef__":true,"id":11502},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":11503},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11502":{"this":{"__isSmartRef__":true,"id":3881}},"11503":{"timestamp":{"__isSmartRef__":true,"id":11504},"user":"josi","tags":["gemtypes"]},"11504":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"11505":{"varMapping":{"__isSmartRef__":true,"id":11506},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11507},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11506":{"this":{"__isSmartRef__":true,"id":3881}},"11507":{"timestamp":{"__isSmartRef__":true,"id":11508},"user":"jan.sandbrink","tags":[]},"11508":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"11509":{"varMapping":{"__isSmartRef__":true,"id":11510},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11511},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11510":{"this":{"__isSmartRef__":true,"id":3881}},"11511":{"timestamp":{"__isSmartRef__":true,"id":11512},"user":"jan.sandbrink","tags":[]},"11512":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"11513":{"varMapping":{"__isSmartRef__":true,"id":11514},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":11515},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11514":{"this":{"__isSmartRef__":true,"id":3881}},"11515":{"timestamp":{"__isSmartRef__":true,"id":11516},"user":"josi","tags":["gemtypes"]},"11516":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11517":{"varMapping":{"__isSmartRef__":true,"id":11518},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11519},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11518":{"this":{"__isSmartRef__":true,"id":3881}},"11519":{"timestamp":{"__isSmartRef__":true,"id":11520},"user":"josi","tags":["gemtypes"]},"11520":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11521":{"varMapping":{"__isSmartRef__":true,"id":11522},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11523},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11522":{"this":{"__isSmartRef__":true,"id":3881}},"11523":{"timestamp":{"__isSmartRef__":true,"id":11524},"user":"josi","tags":[]},"11524":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11525":{"varMapping":{"__isSmartRef__":true,"id":11526},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11527},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11526":{"this":{"__isSmartRef__":true,"id":3881}},"11527":{"timestamp":{"__isSmartRef__":true,"id":11528},"user":"josi","tags":[]},"11528":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11529":{"varMapping":{"__isSmartRef__":true,"id":11530},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11531},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11530":{"this":{"__isSmartRef__":true,"id":3881}},"11531":{"timestamp":{"__isSmartRef__":true,"id":11532},"user":"soergel","tags":[]},"11532":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11533":{"varMapping":{"__isSmartRef__":true,"id":11534},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11535},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11534":{"this":{"__isSmartRef__":true,"id":3881}},"11535":{"timestamp":{"__isSmartRef__":true,"id":11536},"user":"soergel","tags":[]},"11536":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11537":{"varMapping":{"__isSmartRef__":true,"id":11538},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11539},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11538":{"this":{"__isSmartRef__":true,"id":3881}},"11539":{"timestamp":{"__isSmartRef__":true,"id":11540},"user":"soergel","tags":[]},"11540":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11541":{"varMapping":{"__isSmartRef__":true,"id":11542},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11543},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11542":{"this":{"__isSmartRef__":true,"id":3881}},"11543":{"timestamp":{"__isSmartRef__":true,"id":11544},"user":"soergel","tags":["debug"]},"11544":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11545":{"varMapping":{"__isSmartRef__":true,"id":11546},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11547},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11546":{"this":{"__isSmartRef__":true,"id":3881}},"11547":{"timestamp":{"__isSmartRef__":true,"id":11548},"user":"soergel","tags":["debug"]},"11548":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11549":{"varMapping":{"__isSmartRef__":true,"id":11550},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11551},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11550":{"this":{"__isSmartRef__":true,"id":3881}},"11551":{"timestamp":{"__isSmartRef__":true,"id":11552},"user":"soergel","tags":[]},"11552":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11553":{"varMapping":{"__isSmartRef__":true,"id":11554},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11555},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11554":{"this":{"__isSmartRef__":true,"id":3881}},"11555":{"timestamp":{"__isSmartRef__":true,"id":11556},"user":"jan.sandbrink","tags":[]},"11556":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11557":{"varMapping":{"__isSmartRef__":true,"id":11558},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11559},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11558":{"this":{"__isSmartRef__":true,"id":3881}},"11559":{"timestamp":{"__isSmartRef__":true,"id":11560},"user":"jan.sandbrink","tags":[]},"11560":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11561":{"varMapping":{"__isSmartRef__":true,"id":11562},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11563},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11562":{"this":{"__isSmartRef__":true,"id":3881}},"11563":{"timestamp":{"__isSmartRef__":true,"id":11564},"user":"jan.sandbrink","tags":[]},"11564":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11565":{"varMapping":{"__isSmartRef__":true,"id":11566},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11566":{"this":{"__isSmartRef__":true,"id":3881}},"11567":{"timestamp":{"__isSmartRef__":true,"id":11568},"user":"jan.sandbrink","tags":[]},"11568":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11569":{"varMapping":{"__isSmartRef__":true,"id":11570},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11570":{"this":{"__isSmartRef__":true,"id":3881}},"11571":{"timestamp":{"__isSmartRef__":true,"id":11572},"user":"josi","tags":["gemtypes"]},"11572":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11573":{"varMapping":{"__isSmartRef__":true,"id":11574},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11575},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11574":{"this":{"__isSmartRef__":true,"id":3881}},"11575":{"timestamp":{"__isSmartRef__":true,"id":11576},"user":"josi","tags":["gemtypes"]},"11576":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11577":{"varMapping":{"__isSmartRef__":true,"id":11578},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11578":{"this":{"__isSmartRef__":true,"id":3881}},"11579":{"timestamp":{"__isSmartRef__":true,"id":11580},"user":"soergel","tags":["debug"]},"11580":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11581":{"varMapping":{"__isSmartRef__":true,"id":11582},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11582":{"this":{"__isSmartRef__":true,"id":3881}},"11583":{"timestamp":{"__isSmartRef__":true,"id":11584},"user":"soergel","tags":["debug"]},"11584":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11585":{"varMapping":{"__isSmartRef__":true,"id":11586},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11587},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11586":{"this":{"__isSmartRef__":true,"id":3881}},"11587":{"timestamp":{"__isSmartRef__":true,"id":11588},"user":"josi","tags":["gemtypes"]},"11588":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11589":{"varMapping":{"__isSmartRef__":true,"id":11590},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11591},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11590":{"this":{"__isSmartRef__":true,"id":3881}},"11591":{"timestamp":{"__isSmartRef__":true,"id":11592},"user":"soergel","tags":[]},"11592":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11593":{"varMapping":{"__isSmartRef__":true,"id":11594},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11594":{"this":{"__isSmartRef__":true,"id":3881}},"11595":{"timestamp":{"__isSmartRef__":true,"id":11596},"user":"soergel","tags":[]},"11596":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11597":{"varMapping":{"__isSmartRef__":true,"id":11598},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11599},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11598":{"this":{"__isSmartRef__":true,"id":3881}},"11599":{"timestamp":{"__isSmartRef__":true,"id":11600},"user":"soergel","tags":[]},"11600":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11601":{"varMapping":{"__isSmartRef__":true,"id":11602},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11603},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11602":{"this":{"__isSmartRef__":true,"id":3881}},"11603":{"timestamp":{"__isSmartRef__":true,"id":11604},"user":"josi","tags":["gemtypes"]},"11604":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11605":{"varMapping":{"__isSmartRef__":true,"id":11606},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11606":{"this":{"__isSmartRef__":true,"id":3881}},"11607":{"timestamp":{"__isSmartRef__":true,"id":11608},"user":"josi","tags":["gemtypes"]},"11608":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11609":{"varMapping":{"__isSmartRef__":true,"id":11610},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11611},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11610":{"this":{"__isSmartRef__":true,"id":3881}},"11611":{"timestamp":{"__isSmartRef__":true,"id":11612},"user":"jan.sandbrink","tags":[]},"11612":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"11613":{"become":{"__isSmartRef__":true,"id":11614},"onMouseDown":{"__isSmartRef__":true,"id":11618},"updatePicture":{"__isSmartRef__":true,"id":11626},"ruby":{"__isSmartRef__":true,"id":11630},"switchPositionWith":{"__isSmartRef__":true,"id":11634},"addNeighbour":{"__isSmartRef__":true,"id":11638},"amethyst":{"__isSmartRef__":true,"id":11642},"diopside":{"__isSmartRef__":true,"id":11646},"gemTypes":{"__isSmartRef__":true,"id":11650},"becomeRandomGem":{"__isSmartRef__":true,"id":11654},"mark":{"__isSmartRef__":true,"id":11658},"unmark":{"__isSmartRef__":true,"id":11662},"hasNeighbour":{"__isSmartRef__":true,"id":11666},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11670},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11674},"disappear":{"__isSmartRef__":true,"id":11678},"findStreakStart":{"__isSmartRef__":true,"id":11682},"buildStreak":{"__isSmartRef__":true,"id":11686},"scoreStreak":{"__isSmartRef__":true,"id":11690},"tryToStreak":{"__isSmartRef__":true,"id":11694},"blueDiamond":{"__isSmartRef__":true,"id":11698},"prehnite":{"__isSmartRef__":true,"id":11702},"debugUnmark":{"__isSmartRef__":true,"id":11706},"debugMark":{"__isSmartRef__":true,"id":11710},"citrine":{"__isSmartRef__":true,"id":11714},"move":{"__isSmartRef__":true,"id":11718},"performMovement":{"__isSmartRef__":true,"id":11722},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11726},"zircon":{"__isSmartRef__":true,"id":11730},"emerald":{"__isSmartRef__":true,"id":11734},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11738}},"11614":{"varMapping":{"__isSmartRef__":true,"id":11615},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11616},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11615":{"this":{"__isSmartRef__":true,"id":3754}},"11616":{"timestamp":{"__isSmartRef__":true,"id":11617},"user":"josi","tags":[]},"11617":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"11618":{"varMapping":{"__isSmartRef__":true,"id":11619},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":11624},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11619":{"this":{"__isSmartRef__":true,"id":3754},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11620}},"11620":{"$super":{"__isSmartRef__":true,"id":11621}},"11621":{"varMapping":{"__isSmartRef__":true,"id":11622},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11622":{"obj":{"__isSmartRef__":true,"id":3754},"name":"onMouseDown"},"11623":{},"11624":{"timestamp":{"__isSmartRef__":true,"id":11625},"user":"soergel","tags":[]},"11625":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"11626":{"varMapping":{"__isSmartRef__":true,"id":11627},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":11628},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11627":{"this":{"__isSmartRef__":true,"id":3754}},"11628":{"timestamp":{"__isSmartRef__":true,"id":11629},"user":"soergel","tags":[]},"11629":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"11630":{"varMapping":{"__isSmartRef__":true,"id":11631},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":11632},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11631":{"this":{"__isSmartRef__":true,"id":3754}},"11632":{"timestamp":{"__isSmartRef__":true,"id":11633},"user":"josi","tags":["gemtypes"]},"11633":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"11634":{"varMapping":{"__isSmartRef__":true,"id":11635},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11636},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11635":{"this":{"__isSmartRef__":true,"id":3754}},"11636":{"timestamp":{"__isSmartRef__":true,"id":11637},"user":"jan.sandbrink","tags":[]},"11637":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"11638":{"varMapping":{"__isSmartRef__":true,"id":11639},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11640},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11639":{"this":{"__isSmartRef__":true,"id":3754}},"11640":{"timestamp":{"__isSmartRef__":true,"id":11641},"user":"jan.sandbrink","tags":[]},"11641":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"11642":{"varMapping":{"__isSmartRef__":true,"id":11643},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":11644},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11643":{"this":{"__isSmartRef__":true,"id":3754}},"11644":{"timestamp":{"__isSmartRef__":true,"id":11645},"user":"josi","tags":["gemtypes"]},"11645":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11646":{"varMapping":{"__isSmartRef__":true,"id":11647},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11648},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11647":{"this":{"__isSmartRef__":true,"id":3754}},"11648":{"timestamp":{"__isSmartRef__":true,"id":11649},"user":"josi","tags":["gemtypes"]},"11649":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11650":{"varMapping":{"__isSmartRef__":true,"id":11651},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11652},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11651":{"this":{"__isSmartRef__":true,"id":3754}},"11652":{"timestamp":{"__isSmartRef__":true,"id":11653},"user":"josi","tags":[]},"11653":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11654":{"varMapping":{"__isSmartRef__":true,"id":11655},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11656},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11655":{"this":{"__isSmartRef__":true,"id":3754}},"11656":{"timestamp":{"__isSmartRef__":true,"id":11657},"user":"josi","tags":[]},"11657":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11658":{"varMapping":{"__isSmartRef__":true,"id":11659},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11660},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11659":{"this":{"__isSmartRef__":true,"id":3754}},"11660":{"timestamp":{"__isSmartRef__":true,"id":11661},"user":"soergel","tags":[]},"11661":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11662":{"varMapping":{"__isSmartRef__":true,"id":11663},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11664},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11663":{"this":{"__isSmartRef__":true,"id":3754}},"11664":{"timestamp":{"__isSmartRef__":true,"id":11665},"user":"soergel","tags":[]},"11665":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11666":{"varMapping":{"__isSmartRef__":true,"id":11667},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11668},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11667":{"this":{"__isSmartRef__":true,"id":3754}},"11668":{"timestamp":{"__isSmartRef__":true,"id":11669},"user":"soergel","tags":[]},"11669":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11670":{"varMapping":{"__isSmartRef__":true,"id":11671},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11672},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11671":{"this":{"__isSmartRef__":true,"id":3754}},"11672":{"timestamp":{"__isSmartRef__":true,"id":11673},"user":"soergel","tags":["debug"]},"11673":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11674":{"varMapping":{"__isSmartRef__":true,"id":11675},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11676},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11675":{"this":{"__isSmartRef__":true,"id":3754}},"11676":{"timestamp":{"__isSmartRef__":true,"id":11677},"user":"soergel","tags":["debug"]},"11677":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11678":{"varMapping":{"__isSmartRef__":true,"id":11679},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11680},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11679":{"this":{"__isSmartRef__":true,"id":3754}},"11680":{"timestamp":{"__isSmartRef__":true,"id":11681},"user":"soergel","tags":[]},"11681":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11682":{"varMapping":{"__isSmartRef__":true,"id":11683},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11684},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11683":{"this":{"__isSmartRef__":true,"id":3754}},"11684":{"timestamp":{"__isSmartRef__":true,"id":11685},"user":"jan.sandbrink","tags":[]},"11685":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11686":{"varMapping":{"__isSmartRef__":true,"id":11687},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11688},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11687":{"this":{"__isSmartRef__":true,"id":3754}},"11688":{"timestamp":{"__isSmartRef__":true,"id":11689},"user":"jan.sandbrink","tags":[]},"11689":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11690":{"varMapping":{"__isSmartRef__":true,"id":11691},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11692},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11691":{"this":{"__isSmartRef__":true,"id":3754}},"11692":{"timestamp":{"__isSmartRef__":true,"id":11693},"user":"jan.sandbrink","tags":[]},"11693":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11694":{"varMapping":{"__isSmartRef__":true,"id":11695},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11696},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11695":{"this":{"__isSmartRef__":true,"id":3754}},"11696":{"timestamp":{"__isSmartRef__":true,"id":11697},"user":"jan.sandbrink","tags":[]},"11697":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11698":{"varMapping":{"__isSmartRef__":true,"id":11699},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11700},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11699":{"this":{"__isSmartRef__":true,"id":3754}},"11700":{"timestamp":{"__isSmartRef__":true,"id":11701},"user":"josi","tags":["gemtypes"]},"11701":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11702":{"varMapping":{"__isSmartRef__":true,"id":11703},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11704},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11703":{"this":{"__isSmartRef__":true,"id":3754}},"11704":{"timestamp":{"__isSmartRef__":true,"id":11705},"user":"josi","tags":["gemtypes"]},"11705":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11706":{"varMapping":{"__isSmartRef__":true,"id":11707},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11708},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11707":{"this":{"__isSmartRef__":true,"id":3754}},"11708":{"timestamp":{"__isSmartRef__":true,"id":11709},"user":"soergel","tags":["debug"]},"11709":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11710":{"varMapping":{"__isSmartRef__":true,"id":11711},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11712},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11711":{"this":{"__isSmartRef__":true,"id":3754}},"11712":{"timestamp":{"__isSmartRef__":true,"id":11713},"user":"soergel","tags":["debug"]},"11713":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11714":{"varMapping":{"__isSmartRef__":true,"id":11715},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11716},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11715":{"this":{"__isSmartRef__":true,"id":3754}},"11716":{"timestamp":{"__isSmartRef__":true,"id":11717},"user":"josi","tags":["gemtypes"]},"11717":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11718":{"varMapping":{"__isSmartRef__":true,"id":11719},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11720},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11719":{"this":{"__isSmartRef__":true,"id":3754}},"11720":{"timestamp":{"__isSmartRef__":true,"id":11721},"user":"soergel","tags":[]},"11721":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11722":{"varMapping":{"__isSmartRef__":true,"id":11723},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11724},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11723":{"this":{"__isSmartRef__":true,"id":3754}},"11724":{"timestamp":{"__isSmartRef__":true,"id":11725},"user":"soergel","tags":[]},"11725":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11726":{"varMapping":{"__isSmartRef__":true,"id":11727},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11728},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11727":{"this":{"__isSmartRef__":true,"id":3754}},"11728":{"timestamp":{"__isSmartRef__":true,"id":11729},"user":"soergel","tags":[]},"11729":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11730":{"varMapping":{"__isSmartRef__":true,"id":11731},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11732},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11731":{"this":{"__isSmartRef__":true,"id":3754}},"11732":{"timestamp":{"__isSmartRef__":true,"id":11733},"user":"josi","tags":["gemtypes"]},"11733":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11734":{"varMapping":{"__isSmartRef__":true,"id":11735},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11736},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11735":{"this":{"__isSmartRef__":true,"id":3754}},"11736":{"timestamp":{"__isSmartRef__":true,"id":11737},"user":"josi","tags":["gemtypes"]},"11737":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11738":{"varMapping":{"__isSmartRef__":true,"id":11739},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11740},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11739":{"this":{"__isSmartRef__":true,"id":3754}},"11740":{"timestamp":{"__isSmartRef__":true,"id":11741},"user":"jan.sandbrink","tags":[]},"11741":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"11742":{"become":{"__isSmartRef__":true,"id":11743},"onMouseDown":{"__isSmartRef__":true,"id":11747},"updatePicture":{"__isSmartRef__":true,"id":11755},"ruby":{"__isSmartRef__":true,"id":11759},"switchPositionWith":{"__isSmartRef__":true,"id":11763},"addNeighbour":{"__isSmartRef__":true,"id":11767},"amethyst":{"__isSmartRef__":true,"id":11771},"diopside":{"__isSmartRef__":true,"id":11775},"gemTypes":{"__isSmartRef__":true,"id":11779},"becomeRandomGem":{"__isSmartRef__":true,"id":11783},"mark":{"__isSmartRef__":true,"id":11787},"unmark":{"__isSmartRef__":true,"id":11791},"hasNeighbour":{"__isSmartRef__":true,"id":11795},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11799},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11803},"disappear":{"__isSmartRef__":true,"id":11807},"findStreakStart":{"__isSmartRef__":true,"id":11811},"buildStreak":{"__isSmartRef__":true,"id":11815},"scoreStreak":{"__isSmartRef__":true,"id":11819},"tryToStreak":{"__isSmartRef__":true,"id":11823},"blueDiamond":{"__isSmartRef__":true,"id":11827},"prehnite":{"__isSmartRef__":true,"id":11831},"debugUnmark":{"__isSmartRef__":true,"id":11835},"debugMark":{"__isSmartRef__":true,"id":11839},"citrine":{"__isSmartRef__":true,"id":11843},"move":{"__isSmartRef__":true,"id":11847},"performMovement":{"__isSmartRef__":true,"id":11851},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11855},"zircon":{"__isSmartRef__":true,"id":11859},"emerald":{"__isSmartRef__":true,"id":11863},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11867}},"11743":{"varMapping":{"__isSmartRef__":true,"id":11744},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11745},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11744":{"this":{"__isSmartRef__":true,"id":3619}},"11745":{"timestamp":{"__isSmartRef__":true,"id":11746},"user":"josi","tags":[]},"11746":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"11747":{"varMapping":{"__isSmartRef__":true,"id":11748},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":11753},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11748":{"this":{"__isSmartRef__":true,"id":3619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11749}},"11749":{"$super":{"__isSmartRef__":true,"id":11750}},"11750":{"varMapping":{"__isSmartRef__":true,"id":11751},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11752},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11751":{"obj":{"__isSmartRef__":true,"id":3619},"name":"onMouseDown"},"11752":{},"11753":{"timestamp":{"__isSmartRef__":true,"id":11754},"user":"soergel","tags":[]},"11754":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"11755":{"varMapping":{"__isSmartRef__":true,"id":11756},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":11757},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11756":{"this":{"__isSmartRef__":true,"id":3619}},"11757":{"timestamp":{"__isSmartRef__":true,"id":11758},"user":"soergel","tags":[]},"11758":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"11759":{"varMapping":{"__isSmartRef__":true,"id":11760},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":11761},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11760":{"this":{"__isSmartRef__":true,"id":3619}},"11761":{"timestamp":{"__isSmartRef__":true,"id":11762},"user":"josi","tags":["gemtypes"]},"11762":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"11763":{"varMapping":{"__isSmartRef__":true,"id":11764},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11765},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11764":{"this":{"__isSmartRef__":true,"id":3619}},"11765":{"timestamp":{"__isSmartRef__":true,"id":11766},"user":"jan.sandbrink","tags":[]},"11766":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"11767":{"varMapping":{"__isSmartRef__":true,"id":11768},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11769},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11768":{"this":{"__isSmartRef__":true,"id":3619}},"11769":{"timestamp":{"__isSmartRef__":true,"id":11770},"user":"jan.sandbrink","tags":[]},"11770":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"11771":{"varMapping":{"__isSmartRef__":true,"id":11772},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":11773},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11772":{"this":{"__isSmartRef__":true,"id":3619}},"11773":{"timestamp":{"__isSmartRef__":true,"id":11774},"user":"josi","tags":["gemtypes"]},"11774":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11775":{"varMapping":{"__isSmartRef__":true,"id":11776},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11777},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11776":{"this":{"__isSmartRef__":true,"id":3619}},"11777":{"timestamp":{"__isSmartRef__":true,"id":11778},"user":"josi","tags":["gemtypes"]},"11778":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11779":{"varMapping":{"__isSmartRef__":true,"id":11780},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11781},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11780":{"this":{"__isSmartRef__":true,"id":3619}},"11781":{"timestamp":{"__isSmartRef__":true,"id":11782},"user":"josi","tags":[]},"11782":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11783":{"varMapping":{"__isSmartRef__":true,"id":11784},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11785},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11784":{"this":{"__isSmartRef__":true,"id":3619}},"11785":{"timestamp":{"__isSmartRef__":true,"id":11786},"user":"josi","tags":[]},"11786":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11787":{"varMapping":{"__isSmartRef__":true,"id":11788},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11789},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11788":{"this":{"__isSmartRef__":true,"id":3619}},"11789":{"timestamp":{"__isSmartRef__":true,"id":11790},"user":"soergel","tags":[]},"11790":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11791":{"varMapping":{"__isSmartRef__":true,"id":11792},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11793},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11792":{"this":{"__isSmartRef__":true,"id":3619}},"11793":{"timestamp":{"__isSmartRef__":true,"id":11794},"user":"soergel","tags":[]},"11794":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11795":{"varMapping":{"__isSmartRef__":true,"id":11796},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11797},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11796":{"this":{"__isSmartRef__":true,"id":3619}},"11797":{"timestamp":{"__isSmartRef__":true,"id":11798},"user":"soergel","tags":[]},"11798":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11799":{"varMapping":{"__isSmartRef__":true,"id":11800},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11801},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11800":{"this":{"__isSmartRef__":true,"id":3619}},"11801":{"timestamp":{"__isSmartRef__":true,"id":11802},"user":"soergel","tags":["debug"]},"11802":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11803":{"varMapping":{"__isSmartRef__":true,"id":11804},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11805},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11804":{"this":{"__isSmartRef__":true,"id":3619}},"11805":{"timestamp":{"__isSmartRef__":true,"id":11806},"user":"soergel","tags":["debug"]},"11806":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11807":{"varMapping":{"__isSmartRef__":true,"id":11808},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11809},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11808":{"this":{"__isSmartRef__":true,"id":3619}},"11809":{"timestamp":{"__isSmartRef__":true,"id":11810},"user":"soergel","tags":[]},"11810":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11811":{"varMapping":{"__isSmartRef__":true,"id":11812},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11813},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11812":{"this":{"__isSmartRef__":true,"id":3619}},"11813":{"timestamp":{"__isSmartRef__":true,"id":11814},"user":"jan.sandbrink","tags":[]},"11814":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11815":{"varMapping":{"__isSmartRef__":true,"id":11816},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11817},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11816":{"this":{"__isSmartRef__":true,"id":3619}},"11817":{"timestamp":{"__isSmartRef__":true,"id":11818},"user":"jan.sandbrink","tags":[]},"11818":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11819":{"varMapping":{"__isSmartRef__":true,"id":11820},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11821},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11820":{"this":{"__isSmartRef__":true,"id":3619}},"11821":{"timestamp":{"__isSmartRef__":true,"id":11822},"user":"jan.sandbrink","tags":[]},"11822":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11823":{"varMapping":{"__isSmartRef__":true,"id":11824},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11825},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11824":{"this":{"__isSmartRef__":true,"id":3619}},"11825":{"timestamp":{"__isSmartRef__":true,"id":11826},"user":"jan.sandbrink","tags":[]},"11826":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11827":{"varMapping":{"__isSmartRef__":true,"id":11828},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11829},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11828":{"this":{"__isSmartRef__":true,"id":3619}},"11829":{"timestamp":{"__isSmartRef__":true,"id":11830},"user":"josi","tags":["gemtypes"]},"11830":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11831":{"varMapping":{"__isSmartRef__":true,"id":11832},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11833},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11832":{"this":{"__isSmartRef__":true,"id":3619}},"11833":{"timestamp":{"__isSmartRef__":true,"id":11834},"user":"josi","tags":["gemtypes"]},"11834":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11835":{"varMapping":{"__isSmartRef__":true,"id":11836},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11837},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11836":{"this":{"__isSmartRef__":true,"id":3619}},"11837":{"timestamp":{"__isSmartRef__":true,"id":11838},"user":"soergel","tags":["debug"]},"11838":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11839":{"varMapping":{"__isSmartRef__":true,"id":11840},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11841},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11840":{"this":{"__isSmartRef__":true,"id":3619}},"11841":{"timestamp":{"__isSmartRef__":true,"id":11842},"user":"soergel","tags":["debug"]},"11842":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11843":{"varMapping":{"__isSmartRef__":true,"id":11844},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11845},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11844":{"this":{"__isSmartRef__":true,"id":3619}},"11845":{"timestamp":{"__isSmartRef__":true,"id":11846},"user":"josi","tags":["gemtypes"]},"11846":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11847":{"varMapping":{"__isSmartRef__":true,"id":11848},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11849},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11848":{"this":{"__isSmartRef__":true,"id":3619}},"11849":{"timestamp":{"__isSmartRef__":true,"id":11850},"user":"soergel","tags":[]},"11850":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11851":{"varMapping":{"__isSmartRef__":true,"id":11852},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11853},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11852":{"this":{"__isSmartRef__":true,"id":3619}},"11853":{"timestamp":{"__isSmartRef__":true,"id":11854},"user":"soergel","tags":[]},"11854":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11855":{"varMapping":{"__isSmartRef__":true,"id":11856},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11857},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11856":{"this":{"__isSmartRef__":true,"id":3619}},"11857":{"timestamp":{"__isSmartRef__":true,"id":11858},"user":"soergel","tags":[]},"11858":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11859":{"varMapping":{"__isSmartRef__":true,"id":11860},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11861},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11860":{"this":{"__isSmartRef__":true,"id":3619}},"11861":{"timestamp":{"__isSmartRef__":true,"id":11862},"user":"josi","tags":["gemtypes"]},"11862":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11863":{"varMapping":{"__isSmartRef__":true,"id":11864},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11865},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11864":{"this":{"__isSmartRef__":true,"id":3619}},"11865":{"timestamp":{"__isSmartRef__":true,"id":11866},"user":"josi","tags":["gemtypes"]},"11866":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11867":{"varMapping":{"__isSmartRef__":true,"id":11868},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11869},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11868":{"this":{"__isSmartRef__":true,"id":3619}},"11869":{"timestamp":{"__isSmartRef__":true,"id":11870},"user":"jan.sandbrink","tags":[]},"11870":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"11871":{"become":{"__isSmartRef__":true,"id":11872},"onMouseDown":{"__isSmartRef__":true,"id":11876},"updatePicture":{"__isSmartRef__":true,"id":11884},"ruby":{"__isSmartRef__":true,"id":11888},"switchPositionWith":{"__isSmartRef__":true,"id":11892},"addNeighbour":{"__isSmartRef__":true,"id":11896},"amethyst":{"__isSmartRef__":true,"id":11900},"diopside":{"__isSmartRef__":true,"id":11904},"gemTypes":{"__isSmartRef__":true,"id":11908},"becomeRandomGem":{"__isSmartRef__":true,"id":11912},"mark":{"__isSmartRef__":true,"id":11916},"unmark":{"__isSmartRef__":true,"id":11920},"hasNeighbour":{"__isSmartRef__":true,"id":11924},"debugMarkNeighbours":{"__isSmartRef__":true,"id":11928},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":11932},"disappear":{"__isSmartRef__":true,"id":11936},"findStreakStart":{"__isSmartRef__":true,"id":11940},"buildStreak":{"__isSmartRef__":true,"id":11944},"scoreStreak":{"__isSmartRef__":true,"id":11948},"tryToStreak":{"__isSmartRef__":true,"id":11952},"blueDiamond":{"__isSmartRef__":true,"id":11956},"prehnite":{"__isSmartRef__":true,"id":11960},"debugUnmark":{"__isSmartRef__":true,"id":11964},"debugMark":{"__isSmartRef__":true,"id":11968},"citrine":{"__isSmartRef__":true,"id":11972},"move":{"__isSmartRef__":true,"id":11976},"performMovement":{"__isSmartRef__":true,"id":11980},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":11984},"zircon":{"__isSmartRef__":true,"id":11988},"emerald":{"__isSmartRef__":true,"id":11992},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":11996}},"11872":{"varMapping":{"__isSmartRef__":true,"id":11873},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11874},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11873":{"this":{"__isSmartRef__":true,"id":3487}},"11874":{"timestamp":{"__isSmartRef__":true,"id":11875},"user":"josi","tags":[]},"11875":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"11876":{"varMapping":{"__isSmartRef__":true,"id":11877},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":11882},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11877":{"this":{"__isSmartRef__":true,"id":3487},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":11878}},"11878":{"$super":{"__isSmartRef__":true,"id":11879}},"11879":{"varMapping":{"__isSmartRef__":true,"id":11880},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":11881},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11880":{"obj":{"__isSmartRef__":true,"id":3487},"name":"onMouseDown"},"11881":{},"11882":{"timestamp":{"__isSmartRef__":true,"id":11883},"user":"soergel","tags":[]},"11883":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"11884":{"varMapping":{"__isSmartRef__":true,"id":11885},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":11886},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11885":{"this":{"__isSmartRef__":true,"id":3487}},"11886":{"timestamp":{"__isSmartRef__":true,"id":11887},"user":"soergel","tags":[]},"11887":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"11888":{"varMapping":{"__isSmartRef__":true,"id":11889},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":11890},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11889":{"this":{"__isSmartRef__":true,"id":3487}},"11890":{"timestamp":{"__isSmartRef__":true,"id":11891},"user":"josi","tags":["gemtypes"]},"11891":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"11892":{"varMapping":{"__isSmartRef__":true,"id":11893},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":11894},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11893":{"this":{"__isSmartRef__":true,"id":3487}},"11894":{"timestamp":{"__isSmartRef__":true,"id":11895},"user":"jan.sandbrink","tags":[]},"11895":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"11896":{"varMapping":{"__isSmartRef__":true,"id":11897},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11898},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11897":{"this":{"__isSmartRef__":true,"id":3487}},"11898":{"timestamp":{"__isSmartRef__":true,"id":11899},"user":"jan.sandbrink","tags":[]},"11899":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"11900":{"varMapping":{"__isSmartRef__":true,"id":11901},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":11902},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11901":{"this":{"__isSmartRef__":true,"id":3487}},"11902":{"timestamp":{"__isSmartRef__":true,"id":11903},"user":"josi","tags":["gemtypes"]},"11903":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"11904":{"varMapping":{"__isSmartRef__":true,"id":11905},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":11906},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11905":{"this":{"__isSmartRef__":true,"id":3487}},"11906":{"timestamp":{"__isSmartRef__":true,"id":11907},"user":"josi","tags":["gemtypes"]},"11907":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"11908":{"varMapping":{"__isSmartRef__":true,"id":11909},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":11910},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11909":{"this":{"__isSmartRef__":true,"id":3487}},"11910":{"timestamp":{"__isSmartRef__":true,"id":11911},"user":"josi","tags":[]},"11911":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"11912":{"varMapping":{"__isSmartRef__":true,"id":11913},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":11914},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11913":{"this":{"__isSmartRef__":true,"id":3487}},"11914":{"timestamp":{"__isSmartRef__":true,"id":11915},"user":"josi","tags":[]},"11915":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"11916":{"varMapping":{"__isSmartRef__":true,"id":11917},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":11918},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11917":{"this":{"__isSmartRef__":true,"id":3487}},"11918":{"timestamp":{"__isSmartRef__":true,"id":11919},"user":"soergel","tags":[]},"11919":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"11920":{"varMapping":{"__isSmartRef__":true,"id":11921},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":11922},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11921":{"this":{"__isSmartRef__":true,"id":3487}},"11922":{"timestamp":{"__isSmartRef__":true,"id":11923},"user":"soergel","tags":[]},"11923":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"11924":{"varMapping":{"__isSmartRef__":true,"id":11925},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":11926},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11925":{"this":{"__isSmartRef__":true,"id":3487}},"11926":{"timestamp":{"__isSmartRef__":true,"id":11927},"user":"soergel","tags":[]},"11927":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"11928":{"varMapping":{"__isSmartRef__":true,"id":11929},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11930},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11929":{"this":{"__isSmartRef__":true,"id":3487}},"11930":{"timestamp":{"__isSmartRef__":true,"id":11931},"user":"soergel","tags":["debug"]},"11931":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"11932":{"varMapping":{"__isSmartRef__":true,"id":11933},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":11934},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11933":{"this":{"__isSmartRef__":true,"id":3487}},"11934":{"timestamp":{"__isSmartRef__":true,"id":11935},"user":"soergel","tags":["debug"]},"11935":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"11936":{"varMapping":{"__isSmartRef__":true,"id":11937},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11938},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11937":{"this":{"__isSmartRef__":true,"id":3487}},"11938":{"timestamp":{"__isSmartRef__":true,"id":11939},"user":"soergel","tags":[]},"11939":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"11940":{"varMapping":{"__isSmartRef__":true,"id":11941},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11942},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11941":{"this":{"__isSmartRef__":true,"id":3487}},"11942":{"timestamp":{"__isSmartRef__":true,"id":11943},"user":"jan.sandbrink","tags":[]},"11943":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"11944":{"varMapping":{"__isSmartRef__":true,"id":11945},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":11946},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11945":{"this":{"__isSmartRef__":true,"id":3487}},"11946":{"timestamp":{"__isSmartRef__":true,"id":11947},"user":"jan.sandbrink","tags":[]},"11947":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"11948":{"varMapping":{"__isSmartRef__":true,"id":11949},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":11950},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11949":{"this":{"__isSmartRef__":true,"id":3487}},"11950":{"timestamp":{"__isSmartRef__":true,"id":11951},"user":"jan.sandbrink","tags":[]},"11951":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"11952":{"varMapping":{"__isSmartRef__":true,"id":11953},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":11954},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11953":{"this":{"__isSmartRef__":true,"id":3487}},"11954":{"timestamp":{"__isSmartRef__":true,"id":11955},"user":"jan.sandbrink","tags":[]},"11955":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"11956":{"varMapping":{"__isSmartRef__":true,"id":11957},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":11958},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11957":{"this":{"__isSmartRef__":true,"id":3487}},"11958":{"timestamp":{"__isSmartRef__":true,"id":11959},"user":"josi","tags":["gemtypes"]},"11959":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"11960":{"varMapping":{"__isSmartRef__":true,"id":11961},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":11962},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11961":{"this":{"__isSmartRef__":true,"id":3487}},"11962":{"timestamp":{"__isSmartRef__":true,"id":11963},"user":"josi","tags":["gemtypes"]},"11963":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"11964":{"varMapping":{"__isSmartRef__":true,"id":11965},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":11966},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11965":{"this":{"__isSmartRef__":true,"id":3487}},"11966":{"timestamp":{"__isSmartRef__":true,"id":11967},"user":"soergel","tags":["debug"]},"11967":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"11968":{"varMapping":{"__isSmartRef__":true,"id":11969},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":11970},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11969":{"this":{"__isSmartRef__":true,"id":3487}},"11970":{"timestamp":{"__isSmartRef__":true,"id":11971},"user":"soergel","tags":["debug"]},"11971":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"11972":{"varMapping":{"__isSmartRef__":true,"id":11973},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":11974},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11973":{"this":{"__isSmartRef__":true,"id":3487}},"11974":{"timestamp":{"__isSmartRef__":true,"id":11975},"user":"josi","tags":["gemtypes"]},"11975":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"11976":{"varMapping":{"__isSmartRef__":true,"id":11977},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":11978},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11977":{"this":{"__isSmartRef__":true,"id":3487}},"11978":{"timestamp":{"__isSmartRef__":true,"id":11979},"user":"soergel","tags":[]},"11979":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"11980":{"varMapping":{"__isSmartRef__":true,"id":11981},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":11982},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11981":{"this":{"__isSmartRef__":true,"id":3487}},"11982":{"timestamp":{"__isSmartRef__":true,"id":11983},"user":"soergel","tags":[]},"11983":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"11984":{"varMapping":{"__isSmartRef__":true,"id":11985},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":11986},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11985":{"this":{"__isSmartRef__":true,"id":3487}},"11986":{"timestamp":{"__isSmartRef__":true,"id":11987},"user":"soergel","tags":[]},"11987":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"11988":{"varMapping":{"__isSmartRef__":true,"id":11989},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":11990},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11989":{"this":{"__isSmartRef__":true,"id":3487}},"11990":{"timestamp":{"__isSmartRef__":true,"id":11991},"user":"josi","tags":["gemtypes"]},"11991":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"11992":{"varMapping":{"__isSmartRef__":true,"id":11993},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":11994},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11993":{"this":{"__isSmartRef__":true,"id":3487}},"11994":{"timestamp":{"__isSmartRef__":true,"id":11995},"user":"josi","tags":["gemtypes"]},"11995":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"11996":{"varMapping":{"__isSmartRef__":true,"id":11997},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":11998},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"11997":{"this":{"__isSmartRef__":true,"id":3487}},"11998":{"timestamp":{"__isSmartRef__":true,"id":11999},"user":"jan.sandbrink","tags":[]},"11999":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12000":{"x":148.61108261184663,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12001":{"become":{"__isSmartRef__":true,"id":12002},"onMouseDown":{"__isSmartRef__":true,"id":12006},"updatePicture":{"__isSmartRef__":true,"id":12014},"ruby":{"__isSmartRef__":true,"id":12018},"switchPositionWith":{"__isSmartRef__":true,"id":12022},"addNeighbour":{"__isSmartRef__":true,"id":12026},"amethyst":{"__isSmartRef__":true,"id":12030},"diopside":{"__isSmartRef__":true,"id":12034},"gemTypes":{"__isSmartRef__":true,"id":12038},"becomeRandomGem":{"__isSmartRef__":true,"id":12042},"mark":{"__isSmartRef__":true,"id":12046},"unmark":{"__isSmartRef__":true,"id":12050},"hasNeighbour":{"__isSmartRef__":true,"id":12054},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12058},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12062},"disappear":{"__isSmartRef__":true,"id":12066},"findStreakStart":{"__isSmartRef__":true,"id":12070},"buildStreak":{"__isSmartRef__":true,"id":12074},"scoreStreak":{"__isSmartRef__":true,"id":12078},"tryToStreak":{"__isSmartRef__":true,"id":12082},"blueDiamond":{"__isSmartRef__":true,"id":12086},"prehnite":{"__isSmartRef__":true,"id":12090},"debugUnmark":{"__isSmartRef__":true,"id":12094},"debugMark":{"__isSmartRef__":true,"id":12098},"citrine":{"__isSmartRef__":true,"id":12102},"move":{"__isSmartRef__":true,"id":12106},"performMovement":{"__isSmartRef__":true,"id":12110},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":12114},"zircon":{"__isSmartRef__":true,"id":12118},"emerald":{"__isSmartRef__":true,"id":12122},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":12126}},"12002":{"varMapping":{"__isSmartRef__":true,"id":12003},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12004},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12003":{"this":{"__isSmartRef__":true,"id":3360}},"12004":{"timestamp":{"__isSmartRef__":true,"id":12005},"user":"josi","tags":[]},"12005":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12006":{"varMapping":{"__isSmartRef__":true,"id":12007},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12012},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12007":{"this":{"__isSmartRef__":true,"id":3360},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12008}},"12008":{"$super":{"__isSmartRef__":true,"id":12009}},"12009":{"varMapping":{"__isSmartRef__":true,"id":12010},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12011},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12010":{"obj":{"__isSmartRef__":true,"id":3360},"name":"onMouseDown"},"12011":{},"12012":{"timestamp":{"__isSmartRef__":true,"id":12013},"user":"soergel","tags":[]},"12013":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12014":{"varMapping":{"__isSmartRef__":true,"id":12015},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12016},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12015":{"this":{"__isSmartRef__":true,"id":3360}},"12016":{"timestamp":{"__isSmartRef__":true,"id":12017},"user":"soergel","tags":[]},"12017":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12018":{"varMapping":{"__isSmartRef__":true,"id":12019},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12020},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12019":{"this":{"__isSmartRef__":true,"id":3360}},"12020":{"timestamp":{"__isSmartRef__":true,"id":12021},"user":"josi","tags":["gemtypes"]},"12021":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12022":{"varMapping":{"__isSmartRef__":true,"id":12023},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12024},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12023":{"this":{"__isSmartRef__":true,"id":3360}},"12024":{"timestamp":{"__isSmartRef__":true,"id":12025},"user":"jan.sandbrink","tags":[]},"12025":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12026":{"varMapping":{"__isSmartRef__":true,"id":12027},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12028},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12027":{"this":{"__isSmartRef__":true,"id":3360}},"12028":{"timestamp":{"__isSmartRef__":true,"id":12029},"user":"jan.sandbrink","tags":[]},"12029":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12030":{"varMapping":{"__isSmartRef__":true,"id":12031},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12032},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12031":{"this":{"__isSmartRef__":true,"id":3360}},"12032":{"timestamp":{"__isSmartRef__":true,"id":12033},"user":"josi","tags":["gemtypes"]},"12033":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12034":{"varMapping":{"__isSmartRef__":true,"id":12035},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12036},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12035":{"this":{"__isSmartRef__":true,"id":3360}},"12036":{"timestamp":{"__isSmartRef__":true,"id":12037},"user":"josi","tags":["gemtypes"]},"12037":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12038":{"varMapping":{"__isSmartRef__":true,"id":12039},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12040},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12039":{"this":{"__isSmartRef__":true,"id":3360}},"12040":{"timestamp":{"__isSmartRef__":true,"id":12041},"user":"josi","tags":[]},"12041":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12042":{"varMapping":{"__isSmartRef__":true,"id":12043},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12044},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12043":{"this":{"__isSmartRef__":true,"id":3360}},"12044":{"timestamp":{"__isSmartRef__":true,"id":12045},"user":"josi","tags":[]},"12045":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12046":{"varMapping":{"__isSmartRef__":true,"id":12047},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12048},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12047":{"this":{"__isSmartRef__":true,"id":3360}},"12048":{"timestamp":{"__isSmartRef__":true,"id":12049},"user":"soergel","tags":[]},"12049":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12050":{"varMapping":{"__isSmartRef__":true,"id":12051},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12052},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12051":{"this":{"__isSmartRef__":true,"id":3360}},"12052":{"timestamp":{"__isSmartRef__":true,"id":12053},"user":"soergel","tags":[]},"12053":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12054":{"varMapping":{"__isSmartRef__":true,"id":12055},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12056},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12055":{"this":{"__isSmartRef__":true,"id":3360}},"12056":{"timestamp":{"__isSmartRef__":true,"id":12057},"user":"soergel","tags":[]},"12057":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12058":{"varMapping":{"__isSmartRef__":true,"id":12059},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12060},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12059":{"this":{"__isSmartRef__":true,"id":3360}},"12060":{"timestamp":{"__isSmartRef__":true,"id":12061},"user":"soergel","tags":["debug"]},"12061":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12062":{"varMapping":{"__isSmartRef__":true,"id":12063},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12064},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12063":{"this":{"__isSmartRef__":true,"id":3360}},"12064":{"timestamp":{"__isSmartRef__":true,"id":12065},"user":"soergel","tags":["debug"]},"12065":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12066":{"varMapping":{"__isSmartRef__":true,"id":12067},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12068},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12067":{"this":{"__isSmartRef__":true,"id":3360}},"12068":{"timestamp":{"__isSmartRef__":true,"id":12069},"user":"soergel","tags":[]},"12069":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12070":{"varMapping":{"__isSmartRef__":true,"id":12071},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12072},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12071":{"this":{"__isSmartRef__":true,"id":3360}},"12072":{"timestamp":{"__isSmartRef__":true,"id":12073},"user":"jan.sandbrink","tags":[]},"12073":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12074":{"varMapping":{"__isSmartRef__":true,"id":12075},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12076},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12075":{"this":{"__isSmartRef__":true,"id":3360}},"12076":{"timestamp":{"__isSmartRef__":true,"id":12077},"user":"jan.sandbrink","tags":[]},"12077":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12078":{"varMapping":{"__isSmartRef__":true,"id":12079},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12080},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12079":{"this":{"__isSmartRef__":true,"id":3360}},"12080":{"timestamp":{"__isSmartRef__":true,"id":12081},"user":"jan.sandbrink","tags":[]},"12081":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12082":{"varMapping":{"__isSmartRef__":true,"id":12083},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12084},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12083":{"this":{"__isSmartRef__":true,"id":3360}},"12084":{"timestamp":{"__isSmartRef__":true,"id":12085},"user":"jan.sandbrink","tags":[]},"12085":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12086":{"varMapping":{"__isSmartRef__":true,"id":12087},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12088},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12087":{"this":{"__isSmartRef__":true,"id":3360}},"12088":{"timestamp":{"__isSmartRef__":true,"id":12089},"user":"josi","tags":["gemtypes"]},"12089":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12090":{"varMapping":{"__isSmartRef__":true,"id":12091},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":12092},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12091":{"this":{"__isSmartRef__":true,"id":3360}},"12092":{"timestamp":{"__isSmartRef__":true,"id":12093},"user":"josi","tags":["gemtypes"]},"12093":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"12094":{"varMapping":{"__isSmartRef__":true,"id":12095},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12096},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12095":{"this":{"__isSmartRef__":true,"id":3360}},"12096":{"timestamp":{"__isSmartRef__":true,"id":12097},"user":"soergel","tags":["debug"]},"12097":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"12098":{"varMapping":{"__isSmartRef__":true,"id":12099},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12100},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12099":{"this":{"__isSmartRef__":true,"id":3360}},"12100":{"timestamp":{"__isSmartRef__":true,"id":12101},"user":"soergel","tags":["debug"]},"12101":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"12102":{"varMapping":{"__isSmartRef__":true,"id":12103},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":12104},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12103":{"this":{"__isSmartRef__":true,"id":3360}},"12104":{"timestamp":{"__isSmartRef__":true,"id":12105},"user":"josi","tags":["gemtypes"]},"12105":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"12106":{"varMapping":{"__isSmartRef__":true,"id":12107},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":12108},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12107":{"this":{"__isSmartRef__":true,"id":3360}},"12108":{"timestamp":{"__isSmartRef__":true,"id":12109},"user":"soergel","tags":[]},"12109":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"12110":{"varMapping":{"__isSmartRef__":true,"id":12111},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":12112},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12111":{"this":{"__isSmartRef__":true,"id":3360}},"12112":{"timestamp":{"__isSmartRef__":true,"id":12113},"user":"soergel","tags":[]},"12113":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"12114":{"varMapping":{"__isSmartRef__":true,"id":12115},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":12116},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12115":{"this":{"__isSmartRef__":true,"id":3360}},"12116":{"timestamp":{"__isSmartRef__":true,"id":12117},"user":"soergel","tags":[]},"12117":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"12118":{"varMapping":{"__isSmartRef__":true,"id":12119},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":12120},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12119":{"this":{"__isSmartRef__":true,"id":3360}},"12120":{"timestamp":{"__isSmartRef__":true,"id":12121},"user":"josi","tags":["gemtypes"]},"12121":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"12122":{"varMapping":{"__isSmartRef__":true,"id":12123},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":12124},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12123":{"this":{"__isSmartRef__":true,"id":3360}},"12124":{"timestamp":{"__isSmartRef__":true,"id":12125},"user":"josi","tags":["gemtypes"]},"12125":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"12126":{"varMapping":{"__isSmartRef__":true,"id":12127},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":12128},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12127":{"this":{"__isSmartRef__":true,"id":3360}},"12128":{"timestamp":{"__isSmartRef__":true,"id":12129},"user":"jan.sandbrink","tags":[]},"12129":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12130":{"x":197.8147768157955,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12131":{"become":{"__isSmartRef__":true,"id":12132},"onMouseDown":{"__isSmartRef__":true,"id":12136},"updatePicture":{"__isSmartRef__":true,"id":12144},"ruby":{"__isSmartRef__":true,"id":12148},"switchPositionWith":{"__isSmartRef__":true,"id":12152},"addNeighbour":{"__isSmartRef__":true,"id":12156},"amethyst":{"__isSmartRef__":true,"id":12160},"diopside":{"__isSmartRef__":true,"id":12164},"gemTypes":{"__isSmartRef__":true,"id":12168},"becomeRandomGem":{"__isSmartRef__":true,"id":12172},"mark":{"__isSmartRef__":true,"id":12176},"unmark":{"__isSmartRef__":true,"id":12180},"hasNeighbour":{"__isSmartRef__":true,"id":12184},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12188},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12192},"disappear":{"__isSmartRef__":true,"id":12196},"findStreakStart":{"__isSmartRef__":true,"id":12200},"buildStreak":{"__isSmartRef__":true,"id":12204},"scoreStreak":{"__isSmartRef__":true,"id":12208},"tryToStreak":{"__isSmartRef__":true,"id":12212},"blueDiamond":{"__isSmartRef__":true,"id":12216},"prehnite":{"__isSmartRef__":true,"id":12220},"debugUnmark":{"__isSmartRef__":true,"id":12224},"debugMark":{"__isSmartRef__":true,"id":12228},"citrine":{"__isSmartRef__":true,"id":12232},"move":{"__isSmartRef__":true,"id":12236},"performMovement":{"__isSmartRef__":true,"id":12240},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":12244},"zircon":{"__isSmartRef__":true,"id":12248},"emerald":{"__isSmartRef__":true,"id":12252},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":12256}},"12132":{"varMapping":{"__isSmartRef__":true,"id":12133},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12134},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12133":{"this":{"__isSmartRef__":true,"id":3233}},"12134":{"timestamp":{"__isSmartRef__":true,"id":12135},"user":"josi","tags":[]},"12135":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12136":{"varMapping":{"__isSmartRef__":true,"id":12137},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12142},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12137":{"this":{"__isSmartRef__":true,"id":3233},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12138}},"12138":{"$super":{"__isSmartRef__":true,"id":12139}},"12139":{"varMapping":{"__isSmartRef__":true,"id":12140},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12141},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12140":{"obj":{"__isSmartRef__":true,"id":3233},"name":"onMouseDown"},"12141":{},"12142":{"timestamp":{"__isSmartRef__":true,"id":12143},"user":"soergel","tags":[]},"12143":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12144":{"varMapping":{"__isSmartRef__":true,"id":12145},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12146},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12145":{"this":{"__isSmartRef__":true,"id":3233}},"12146":{"timestamp":{"__isSmartRef__":true,"id":12147},"user":"soergel","tags":[]},"12147":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12148":{"varMapping":{"__isSmartRef__":true,"id":12149},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12150},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12149":{"this":{"__isSmartRef__":true,"id":3233}},"12150":{"timestamp":{"__isSmartRef__":true,"id":12151},"user":"josi","tags":["gemtypes"]},"12151":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12152":{"varMapping":{"__isSmartRef__":true,"id":12153},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12154},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12153":{"this":{"__isSmartRef__":true,"id":3233}},"12154":{"timestamp":{"__isSmartRef__":true,"id":12155},"user":"jan.sandbrink","tags":[]},"12155":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12156":{"varMapping":{"__isSmartRef__":true,"id":12157},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12158},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12157":{"this":{"__isSmartRef__":true,"id":3233}},"12158":{"timestamp":{"__isSmartRef__":true,"id":12159},"user":"jan.sandbrink","tags":[]},"12159":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12160":{"varMapping":{"__isSmartRef__":true,"id":12161},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12162},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12161":{"this":{"__isSmartRef__":true,"id":3233}},"12162":{"timestamp":{"__isSmartRef__":true,"id":12163},"user":"josi","tags":["gemtypes"]},"12163":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12164":{"varMapping":{"__isSmartRef__":true,"id":12165},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12166},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12165":{"this":{"__isSmartRef__":true,"id":3233}},"12166":{"timestamp":{"__isSmartRef__":true,"id":12167},"user":"josi","tags":["gemtypes"]},"12167":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12168":{"varMapping":{"__isSmartRef__":true,"id":12169},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12170},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12169":{"this":{"__isSmartRef__":true,"id":3233}},"12170":{"timestamp":{"__isSmartRef__":true,"id":12171},"user":"josi","tags":[]},"12171":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12172":{"varMapping":{"__isSmartRef__":true,"id":12173},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12174},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12173":{"this":{"__isSmartRef__":true,"id":3233}},"12174":{"timestamp":{"__isSmartRef__":true,"id":12175},"user":"josi","tags":[]},"12175":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12176":{"varMapping":{"__isSmartRef__":true,"id":12177},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12178},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12177":{"this":{"__isSmartRef__":true,"id":3233}},"12178":{"timestamp":{"__isSmartRef__":true,"id":12179},"user":"soergel","tags":[]},"12179":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12180":{"varMapping":{"__isSmartRef__":true,"id":12181},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12182},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12181":{"this":{"__isSmartRef__":true,"id":3233}},"12182":{"timestamp":{"__isSmartRef__":true,"id":12183},"user":"soergel","tags":[]},"12183":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12184":{"varMapping":{"__isSmartRef__":true,"id":12185},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12186},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12185":{"this":{"__isSmartRef__":true,"id":3233}},"12186":{"timestamp":{"__isSmartRef__":true,"id":12187},"user":"soergel","tags":[]},"12187":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12188":{"varMapping":{"__isSmartRef__":true,"id":12189},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12190},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12189":{"this":{"__isSmartRef__":true,"id":3233}},"12190":{"timestamp":{"__isSmartRef__":true,"id":12191},"user":"soergel","tags":["debug"]},"12191":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12192":{"varMapping":{"__isSmartRef__":true,"id":12193},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12194},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12193":{"this":{"__isSmartRef__":true,"id":3233}},"12194":{"timestamp":{"__isSmartRef__":true,"id":12195},"user":"soergel","tags":["debug"]},"12195":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12196":{"varMapping":{"__isSmartRef__":true,"id":12197},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12198},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12197":{"this":{"__isSmartRef__":true,"id":3233}},"12198":{"timestamp":{"__isSmartRef__":true,"id":12199},"user":"soergel","tags":[]},"12199":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12200":{"varMapping":{"__isSmartRef__":true,"id":12201},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12202},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12201":{"this":{"__isSmartRef__":true,"id":3233}},"12202":{"timestamp":{"__isSmartRef__":true,"id":12203},"user":"jan.sandbrink","tags":[]},"12203":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12204":{"varMapping":{"__isSmartRef__":true,"id":12205},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12206},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12205":{"this":{"__isSmartRef__":true,"id":3233}},"12206":{"timestamp":{"__isSmartRef__":true,"id":12207},"user":"jan.sandbrink","tags":[]},"12207":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12208":{"varMapping":{"__isSmartRef__":true,"id":12209},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12210},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12209":{"this":{"__isSmartRef__":true,"id":3233}},"12210":{"timestamp":{"__isSmartRef__":true,"id":12211},"user":"jan.sandbrink","tags":[]},"12211":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12212":{"varMapping":{"__isSmartRef__":true,"id":12213},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12214},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12213":{"this":{"__isSmartRef__":true,"id":3233}},"12214":{"timestamp":{"__isSmartRef__":true,"id":12215},"user":"jan.sandbrink","tags":[]},"12215":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12216":{"varMapping":{"__isSmartRef__":true,"id":12217},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12218},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12217":{"this":{"__isSmartRef__":true,"id":3233}},"12218":{"timestamp":{"__isSmartRef__":true,"id":12219},"user":"josi","tags":["gemtypes"]},"12219":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12220":{"varMapping":{"__isSmartRef__":true,"id":12221},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":12222},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12221":{"this":{"__isSmartRef__":true,"id":3233}},"12222":{"timestamp":{"__isSmartRef__":true,"id":12223},"user":"josi","tags":["gemtypes"]},"12223":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"12224":{"varMapping":{"__isSmartRef__":true,"id":12225},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12226},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12225":{"this":{"__isSmartRef__":true,"id":3233}},"12226":{"timestamp":{"__isSmartRef__":true,"id":12227},"user":"soergel","tags":["debug"]},"12227":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"12228":{"varMapping":{"__isSmartRef__":true,"id":12229},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12230},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12229":{"this":{"__isSmartRef__":true,"id":3233}},"12230":{"timestamp":{"__isSmartRef__":true,"id":12231},"user":"soergel","tags":["debug"]},"12231":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"12232":{"varMapping":{"__isSmartRef__":true,"id":12233},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":12234},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12233":{"this":{"__isSmartRef__":true,"id":3233}},"12234":{"timestamp":{"__isSmartRef__":true,"id":12235},"user":"josi","tags":["gemtypes"]},"12235":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"12236":{"varMapping":{"__isSmartRef__":true,"id":12237},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":12238},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12237":{"this":{"__isSmartRef__":true,"id":3233}},"12238":{"timestamp":{"__isSmartRef__":true,"id":12239},"user":"soergel","tags":[]},"12239":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"12240":{"varMapping":{"__isSmartRef__":true,"id":12241},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":12242},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12241":{"this":{"__isSmartRef__":true,"id":3233}},"12242":{"timestamp":{"__isSmartRef__":true,"id":12243},"user":"soergel","tags":[]},"12243":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"12244":{"varMapping":{"__isSmartRef__":true,"id":12245},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":12246},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12245":{"this":{"__isSmartRef__":true,"id":3233}},"12246":{"timestamp":{"__isSmartRef__":true,"id":12247},"user":"soergel","tags":[]},"12247":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"12248":{"varMapping":{"__isSmartRef__":true,"id":12249},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":12250},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12249":{"this":{"__isSmartRef__":true,"id":3233}},"12250":{"timestamp":{"__isSmartRef__":true,"id":12251},"user":"josi","tags":["gemtypes"]},"12251":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"12252":{"varMapping":{"__isSmartRef__":true,"id":12253},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":12254},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12253":{"this":{"__isSmartRef__":true,"id":3233}},"12254":{"timestamp":{"__isSmartRef__":true,"id":12255},"user":"josi","tags":["gemtypes"]},"12255":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"12256":{"varMapping":{"__isSmartRef__":true,"id":12257},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":12258},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12257":{"this":{"__isSmartRef__":true,"id":3233}},"12258":{"timestamp":{"__isSmartRef__":true,"id":12259},"user":"jan.sandbrink","tags":[]},"12259":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12260":{"x":247.0184710197444,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12261":{"become":{"__isSmartRef__":true,"id":12262},"onMouseDown":{"__isSmartRef__":true,"id":12266},"updatePicture":{"__isSmartRef__":true,"id":12274},"ruby":{"__isSmartRef__":true,"id":12278},"switchPositionWith":{"__isSmartRef__":true,"id":12282},"addNeighbour":{"__isSmartRef__":true,"id":12286},"amethyst":{"__isSmartRef__":true,"id":12290},"diopside":{"__isSmartRef__":true,"id":12294},"gemTypes":{"__isSmartRef__":true,"id":12298},"becomeRandomGem":{"__isSmartRef__":true,"id":12302},"mark":{"__isSmartRef__":true,"id":12306},"unmark":{"__isSmartRef__":true,"id":12310},"hasNeighbour":{"__isSmartRef__":true,"id":12314},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12318},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12322},"disappear":{"__isSmartRef__":true,"id":12326},"findStreakStart":{"__isSmartRef__":true,"id":12330},"buildStreak":{"__isSmartRef__":true,"id":12334},"scoreStreak":{"__isSmartRef__":true,"id":12338},"tryToStreak":{"__isSmartRef__":true,"id":12342},"blueDiamond":{"__isSmartRef__":true,"id":12346},"prehnite":{"__isSmartRef__":true,"id":12350},"debugUnmark":{"__isSmartRef__":true,"id":12354},"debugMark":{"__isSmartRef__":true,"id":12358},"citrine":{"__isSmartRef__":true,"id":12362},"move":{"__isSmartRef__":true,"id":12366},"performMovement":{"__isSmartRef__":true,"id":12370},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":12374},"zircon":{"__isSmartRef__":true,"id":12378},"emerald":{"__isSmartRef__":true,"id":12382},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":12386}},"12262":{"varMapping":{"__isSmartRef__":true,"id":12263},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12264},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12263":{"this":{"__isSmartRef__":true,"id":3132}},"12264":{"timestamp":{"__isSmartRef__":true,"id":12265},"user":"josi","tags":[]},"12265":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12266":{"varMapping":{"__isSmartRef__":true,"id":12267},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12267":{"this":{"__isSmartRef__":true,"id":3132},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12268}},"12268":{"$super":{"__isSmartRef__":true,"id":12269}},"12269":{"varMapping":{"__isSmartRef__":true,"id":12270},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12271},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12270":{"obj":{"__isSmartRef__":true,"id":3132},"name":"onMouseDown"},"12271":{},"12272":{"timestamp":{"__isSmartRef__":true,"id":12273},"user":"soergel","tags":[]},"12273":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12274":{"varMapping":{"__isSmartRef__":true,"id":12275},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12275":{"this":{"__isSmartRef__":true,"id":3132}},"12276":{"timestamp":{"__isSmartRef__":true,"id":12277},"user":"soergel","tags":[]},"12277":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12278":{"varMapping":{"__isSmartRef__":true,"id":12279},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12280},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12279":{"this":{"__isSmartRef__":true,"id":3132}},"12280":{"timestamp":{"__isSmartRef__":true,"id":12281},"user":"josi","tags":["gemtypes"]},"12281":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12282":{"varMapping":{"__isSmartRef__":true,"id":12283},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12284},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12283":{"this":{"__isSmartRef__":true,"id":3132}},"12284":{"timestamp":{"__isSmartRef__":true,"id":12285},"user":"jan.sandbrink","tags":[]},"12285":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12286":{"varMapping":{"__isSmartRef__":true,"id":12287},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12288},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12287":{"this":{"__isSmartRef__":true,"id":3132}},"12288":{"timestamp":{"__isSmartRef__":true,"id":12289},"user":"jan.sandbrink","tags":[]},"12289":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12290":{"varMapping":{"__isSmartRef__":true,"id":12291},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12292},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12291":{"this":{"__isSmartRef__":true,"id":3132}},"12292":{"timestamp":{"__isSmartRef__":true,"id":12293},"user":"josi","tags":["gemtypes"]},"12293":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12294":{"varMapping":{"__isSmartRef__":true,"id":12295},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12296},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12295":{"this":{"__isSmartRef__":true,"id":3132}},"12296":{"timestamp":{"__isSmartRef__":true,"id":12297},"user":"josi","tags":["gemtypes"]},"12297":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12298":{"varMapping":{"__isSmartRef__":true,"id":12299},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12300},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12299":{"this":{"__isSmartRef__":true,"id":3132}},"12300":{"timestamp":{"__isSmartRef__":true,"id":12301},"user":"josi","tags":[]},"12301":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12302":{"varMapping":{"__isSmartRef__":true,"id":12303},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12304},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12303":{"this":{"__isSmartRef__":true,"id":3132}},"12304":{"timestamp":{"__isSmartRef__":true,"id":12305},"user":"josi","tags":[]},"12305":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12306":{"varMapping":{"__isSmartRef__":true,"id":12307},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12308},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12307":{"this":{"__isSmartRef__":true,"id":3132}},"12308":{"timestamp":{"__isSmartRef__":true,"id":12309},"user":"soergel","tags":[]},"12309":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12310":{"varMapping":{"__isSmartRef__":true,"id":12311},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12312},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12311":{"this":{"__isSmartRef__":true,"id":3132}},"12312":{"timestamp":{"__isSmartRef__":true,"id":12313},"user":"soergel","tags":[]},"12313":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12314":{"varMapping":{"__isSmartRef__":true,"id":12315},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12316},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12315":{"this":{"__isSmartRef__":true,"id":3132}},"12316":{"timestamp":{"__isSmartRef__":true,"id":12317},"user":"soergel","tags":[]},"12317":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12318":{"varMapping":{"__isSmartRef__":true,"id":12319},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12320},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12319":{"this":{"__isSmartRef__":true,"id":3132}},"12320":{"timestamp":{"__isSmartRef__":true,"id":12321},"user":"soergel","tags":["debug"]},"12321":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12322":{"varMapping":{"__isSmartRef__":true,"id":12323},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12324},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12323":{"this":{"__isSmartRef__":true,"id":3132}},"12324":{"timestamp":{"__isSmartRef__":true,"id":12325},"user":"soergel","tags":["debug"]},"12325":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12326":{"varMapping":{"__isSmartRef__":true,"id":12327},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12328},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12327":{"this":{"__isSmartRef__":true,"id":3132}},"12328":{"timestamp":{"__isSmartRef__":true,"id":12329},"user":"soergel","tags":[]},"12329":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12330":{"varMapping":{"__isSmartRef__":true,"id":12331},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12332},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12331":{"this":{"__isSmartRef__":true,"id":3132}},"12332":{"timestamp":{"__isSmartRef__":true,"id":12333},"user":"jan.sandbrink","tags":[]},"12333":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12334":{"varMapping":{"__isSmartRef__":true,"id":12335},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12335":{"this":{"__isSmartRef__":true,"id":3132}},"12336":{"timestamp":{"__isSmartRef__":true,"id":12337},"user":"jan.sandbrink","tags":[]},"12337":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12338":{"varMapping":{"__isSmartRef__":true,"id":12339},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12340},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12339":{"this":{"__isSmartRef__":true,"id":3132}},"12340":{"timestamp":{"__isSmartRef__":true,"id":12341},"user":"jan.sandbrink","tags":[]},"12341":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12342":{"varMapping":{"__isSmartRef__":true,"id":12343},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12343":{"this":{"__isSmartRef__":true,"id":3132}},"12344":{"timestamp":{"__isSmartRef__":true,"id":12345},"user":"jan.sandbrink","tags":[]},"12345":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12346":{"varMapping":{"__isSmartRef__":true,"id":12347},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12348},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12347":{"this":{"__isSmartRef__":true,"id":3132}},"12348":{"timestamp":{"__isSmartRef__":true,"id":12349},"user":"josi","tags":["gemtypes"]},"12349":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12350":{"varMapping":{"__isSmartRef__":true,"id":12351},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":12352},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12351":{"this":{"__isSmartRef__":true,"id":3132}},"12352":{"timestamp":{"__isSmartRef__":true,"id":12353},"user":"josi","tags":["gemtypes"]},"12353":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"12354":{"varMapping":{"__isSmartRef__":true,"id":12355},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12356},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12355":{"this":{"__isSmartRef__":true,"id":3132}},"12356":{"timestamp":{"__isSmartRef__":true,"id":12357},"user":"soergel","tags":["debug"]},"12357":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"12358":{"varMapping":{"__isSmartRef__":true,"id":12359},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12360},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12359":{"this":{"__isSmartRef__":true,"id":3132}},"12360":{"timestamp":{"__isSmartRef__":true,"id":12361},"user":"soergel","tags":["debug"]},"12361":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"12362":{"varMapping":{"__isSmartRef__":true,"id":12363},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":12364},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12363":{"this":{"__isSmartRef__":true,"id":3132}},"12364":{"timestamp":{"__isSmartRef__":true,"id":12365},"user":"josi","tags":["gemtypes"]},"12365":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"12366":{"varMapping":{"__isSmartRef__":true,"id":12367},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":12368},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12367":{"this":{"__isSmartRef__":true,"id":3132}},"12368":{"timestamp":{"__isSmartRef__":true,"id":12369},"user":"soergel","tags":[]},"12369":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"12370":{"varMapping":{"__isSmartRef__":true,"id":12371},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":12372},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12371":{"this":{"__isSmartRef__":true,"id":3132}},"12372":{"timestamp":{"__isSmartRef__":true,"id":12373},"user":"soergel","tags":[]},"12373":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"12374":{"varMapping":{"__isSmartRef__":true,"id":12375},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":12376},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12375":{"this":{"__isSmartRef__":true,"id":3132}},"12376":{"timestamp":{"__isSmartRef__":true,"id":12377},"user":"soergel","tags":[]},"12377":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"12378":{"varMapping":{"__isSmartRef__":true,"id":12379},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":12380},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12379":{"this":{"__isSmartRef__":true,"id":3132}},"12380":{"timestamp":{"__isSmartRef__":true,"id":12381},"user":"josi","tags":["gemtypes"]},"12381":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"12382":{"varMapping":{"__isSmartRef__":true,"id":12383},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":12384},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12383":{"this":{"__isSmartRef__":true,"id":3132}},"12384":{"timestamp":{"__isSmartRef__":true,"id":12385},"user":"josi","tags":["gemtypes"]},"12385":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"12386":{"varMapping":{"__isSmartRef__":true,"id":12387},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":12388},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12387":{"this":{"__isSmartRef__":true,"id":3132}},"12388":{"timestamp":{"__isSmartRef__":true,"id":12389},"user":"jan.sandbrink","tags":[]},"12389":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12390":{"x":296.22216522369325,"y":154.58711858785233,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12391":{"become":{"__isSmartRef__":true,"id":12392},"onMouseDown":{"__isSmartRef__":true,"id":12396},"updatePicture":{"__isSmartRef__":true,"id":12404},"ruby":{"__isSmartRef__":true,"id":12408},"switchPositionWith":{"__isSmartRef__":true,"id":12412},"addNeighbour":{"__isSmartRef__":true,"id":12416},"amethyst":{"__isSmartRef__":true,"id":12420},"diopside":{"__isSmartRef__":true,"id":12424},"gemTypes":{"__isSmartRef__":true,"id":12428},"becomeRandomGem":{"__isSmartRef__":true,"id":12432},"mark":{"__isSmartRef__":true,"id":12436},"unmark":{"__isSmartRef__":true,"id":12440},"hasNeighbour":{"__isSmartRef__":true,"id":12444},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12448},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12452},"disappear":{"__isSmartRef__":true,"id":12456},"findStreakStart":{"__isSmartRef__":true,"id":12460},"buildStreak":{"__isSmartRef__":true,"id":12464},"scoreStreak":{"__isSmartRef__":true,"id":12468},"tryToStreak":{"__isSmartRef__":true,"id":12472},"blueDiamond":{"__isSmartRef__":true,"id":12476},"prehnite":{"__isSmartRef__":true,"id":12480},"debugUnmark":{"__isSmartRef__":true,"id":12484},"debugMark":{"__isSmartRef__":true,"id":12488},"citrine":{"__isSmartRef__":true,"id":12492},"move":{"__isSmartRef__":true,"id":12496},"performMovement":{"__isSmartRef__":true,"id":12500},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":12504},"zircon":{"__isSmartRef__":true,"id":12508},"emerald":{"__isSmartRef__":true,"id":12512},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":12516}},"12392":{"varMapping":{"__isSmartRef__":true,"id":12393},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12394},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12393":{"this":{"__isSmartRef__":true,"id":3031}},"12394":{"timestamp":{"__isSmartRef__":true,"id":12395},"user":"josi","tags":[]},"12395":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12396":{"varMapping":{"__isSmartRef__":true,"id":12397},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12402},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12397":{"this":{"__isSmartRef__":true,"id":3031},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12398}},"12398":{"$super":{"__isSmartRef__":true,"id":12399}},"12399":{"varMapping":{"__isSmartRef__":true,"id":12400},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12401},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12400":{"obj":{"__isSmartRef__":true,"id":3031},"name":"onMouseDown"},"12401":{},"12402":{"timestamp":{"__isSmartRef__":true,"id":12403},"user":"soergel","tags":[]},"12403":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12404":{"varMapping":{"__isSmartRef__":true,"id":12405},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12406},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12405":{"this":{"__isSmartRef__":true,"id":3031}},"12406":{"timestamp":{"__isSmartRef__":true,"id":12407},"user":"soergel","tags":[]},"12407":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12408":{"varMapping":{"__isSmartRef__":true,"id":12409},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12410},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12409":{"this":{"__isSmartRef__":true,"id":3031}},"12410":{"timestamp":{"__isSmartRef__":true,"id":12411},"user":"josi","tags":["gemtypes"]},"12411":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12412":{"varMapping":{"__isSmartRef__":true,"id":12413},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12414},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12413":{"this":{"__isSmartRef__":true,"id":3031}},"12414":{"timestamp":{"__isSmartRef__":true,"id":12415},"user":"jan.sandbrink","tags":[]},"12415":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12416":{"varMapping":{"__isSmartRef__":true,"id":12417},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12418},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12417":{"this":{"__isSmartRef__":true,"id":3031}},"12418":{"timestamp":{"__isSmartRef__":true,"id":12419},"user":"jan.sandbrink","tags":[]},"12419":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12420":{"varMapping":{"__isSmartRef__":true,"id":12421},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12422},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12421":{"this":{"__isSmartRef__":true,"id":3031}},"12422":{"timestamp":{"__isSmartRef__":true,"id":12423},"user":"josi","tags":["gemtypes"]},"12423":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12424":{"varMapping":{"__isSmartRef__":true,"id":12425},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12426},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12425":{"this":{"__isSmartRef__":true,"id":3031}},"12426":{"timestamp":{"__isSmartRef__":true,"id":12427},"user":"josi","tags":["gemtypes"]},"12427":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12428":{"varMapping":{"__isSmartRef__":true,"id":12429},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12430},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12429":{"this":{"__isSmartRef__":true,"id":3031}},"12430":{"timestamp":{"__isSmartRef__":true,"id":12431},"user":"josi","tags":[]},"12431":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12432":{"varMapping":{"__isSmartRef__":true,"id":12433},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12434},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12433":{"this":{"__isSmartRef__":true,"id":3031}},"12434":{"timestamp":{"__isSmartRef__":true,"id":12435},"user":"josi","tags":[]},"12435":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12436":{"varMapping":{"__isSmartRef__":true,"id":12437},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12438},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12437":{"this":{"__isSmartRef__":true,"id":3031}},"12438":{"timestamp":{"__isSmartRef__":true,"id":12439},"user":"soergel","tags":[]},"12439":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12440":{"varMapping":{"__isSmartRef__":true,"id":12441},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12442},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12441":{"this":{"__isSmartRef__":true,"id":3031}},"12442":{"timestamp":{"__isSmartRef__":true,"id":12443},"user":"soergel","tags":[]},"12443":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12444":{"varMapping":{"__isSmartRef__":true,"id":12445},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12445":{"this":{"__isSmartRef__":true,"id":3031}},"12446":{"timestamp":{"__isSmartRef__":true,"id":12447},"user":"soergel","tags":[]},"12447":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12448":{"varMapping":{"__isSmartRef__":true,"id":12449},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12450},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12449":{"this":{"__isSmartRef__":true,"id":3031}},"12450":{"timestamp":{"__isSmartRef__":true,"id":12451},"user":"soergel","tags":["debug"]},"12451":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12452":{"varMapping":{"__isSmartRef__":true,"id":12453},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12454},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12453":{"this":{"__isSmartRef__":true,"id":3031}},"12454":{"timestamp":{"__isSmartRef__":true,"id":12455},"user":"soergel","tags":["debug"]},"12455":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12456":{"varMapping":{"__isSmartRef__":true,"id":12457},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12458},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12457":{"this":{"__isSmartRef__":true,"id":3031}},"12458":{"timestamp":{"__isSmartRef__":true,"id":12459},"user":"soergel","tags":[]},"12459":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12460":{"varMapping":{"__isSmartRef__":true,"id":12461},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12462},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12461":{"this":{"__isSmartRef__":true,"id":3031}},"12462":{"timestamp":{"__isSmartRef__":true,"id":12463},"user":"jan.sandbrink","tags":[]},"12463":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12464":{"varMapping":{"__isSmartRef__":true,"id":12465},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12465":{"this":{"__isSmartRef__":true,"id":3031}},"12466":{"timestamp":{"__isSmartRef__":true,"id":12467},"user":"jan.sandbrink","tags":[]},"12467":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12468":{"varMapping":{"__isSmartRef__":true,"id":12469},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12470},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12469":{"this":{"__isSmartRef__":true,"id":3031}},"12470":{"timestamp":{"__isSmartRef__":true,"id":12471},"user":"jan.sandbrink","tags":[]},"12471":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12472":{"varMapping":{"__isSmartRef__":true,"id":12473},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12474},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12473":{"this":{"__isSmartRef__":true,"id":3031}},"12474":{"timestamp":{"__isSmartRef__":true,"id":12475},"user":"jan.sandbrink","tags":[]},"12475":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12476":{"varMapping":{"__isSmartRef__":true,"id":12477},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12478},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12477":{"this":{"__isSmartRef__":true,"id":3031}},"12478":{"timestamp":{"__isSmartRef__":true,"id":12479},"user":"josi","tags":["gemtypes"]},"12479":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12480":{"varMapping":{"__isSmartRef__":true,"id":12481},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":12482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12481":{"this":{"__isSmartRef__":true,"id":3031}},"12482":{"timestamp":{"__isSmartRef__":true,"id":12483},"user":"josi","tags":["gemtypes"]},"12483":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"12484":{"varMapping":{"__isSmartRef__":true,"id":12485},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12486},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12485":{"this":{"__isSmartRef__":true,"id":3031}},"12486":{"timestamp":{"__isSmartRef__":true,"id":12487},"user":"soergel","tags":["debug"]},"12487":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"12488":{"varMapping":{"__isSmartRef__":true,"id":12489},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12490},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12489":{"this":{"__isSmartRef__":true,"id":3031}},"12490":{"timestamp":{"__isSmartRef__":true,"id":12491},"user":"soergel","tags":["debug"]},"12491":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"12492":{"varMapping":{"__isSmartRef__":true,"id":12493},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":12494},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12493":{"this":{"__isSmartRef__":true,"id":3031}},"12494":{"timestamp":{"__isSmartRef__":true,"id":12495},"user":"josi","tags":["gemtypes"]},"12495":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"12496":{"varMapping":{"__isSmartRef__":true,"id":12497},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":12498},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12497":{"this":{"__isSmartRef__":true,"id":3031}},"12498":{"timestamp":{"__isSmartRef__":true,"id":12499},"user":"soergel","tags":[]},"12499":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"12500":{"varMapping":{"__isSmartRef__":true,"id":12501},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":12502},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12501":{"this":{"__isSmartRef__":true,"id":3031}},"12502":{"timestamp":{"__isSmartRef__":true,"id":12503},"user":"soergel","tags":[]},"12503":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"12504":{"varMapping":{"__isSmartRef__":true,"id":12505},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":12506},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12505":{"this":{"__isSmartRef__":true,"id":3031}},"12506":{"timestamp":{"__isSmartRef__":true,"id":12507},"user":"soergel","tags":[]},"12507":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"12508":{"varMapping":{"__isSmartRef__":true,"id":12509},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":12510},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12509":{"this":{"__isSmartRef__":true,"id":3031}},"12510":{"timestamp":{"__isSmartRef__":true,"id":12511},"user":"josi","tags":["gemtypes"]},"12511":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"12512":{"varMapping":{"__isSmartRef__":true,"id":12513},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":12514},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12513":{"this":{"__isSmartRef__":true,"id":3031}},"12514":{"timestamp":{"__isSmartRef__":true,"id":12515},"user":"josi","tags":["gemtypes"]},"12515":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"12516":{"varMapping":{"__isSmartRef__":true,"id":12517},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":12518},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12517":{"this":{"__isSmartRef__":true,"id":3031}},"12518":{"timestamp":{"__isSmartRef__":true,"id":12519},"user":"jan.sandbrink","tags":[]},"12519":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12520":{"become":{"__isSmartRef__":true,"id":12521},"onMouseDown":{"__isSmartRef__":true,"id":12525},"updatePicture":{"__isSmartRef__":true,"id":12533},"ruby":{"__isSmartRef__":true,"id":12537},"switchPositionWith":{"__isSmartRef__":true,"id":12541},"addNeighbour":{"__isSmartRef__":true,"id":12545},"amethyst":{"__isSmartRef__":true,"id":12549},"diopside":{"__isSmartRef__":true,"id":12553},"gemTypes":{"__isSmartRef__":true,"id":12557},"becomeRandomGem":{"__isSmartRef__":true,"id":12561},"mark":{"__isSmartRef__":true,"id":12565},"unmark":{"__isSmartRef__":true,"id":12569},"hasNeighbour":{"__isSmartRef__":true,"id":12573},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12577},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12581},"disappear":{"__isSmartRef__":true,"id":12585},"findStreakStart":{"__isSmartRef__":true,"id":12589},"buildStreak":{"__isSmartRef__":true,"id":12593},"scoreStreak":{"__isSmartRef__":true,"id":12597},"tryToStreak":{"__isSmartRef__":true,"id":12601},"blueDiamond":{"__isSmartRef__":true,"id":12605},"prehnite":{"__isSmartRef__":true,"id":12609},"debugUnmark":{"__isSmartRef__":true,"id":12613},"debugMark":{"__isSmartRef__":true,"id":12617},"citrine":{"__isSmartRef__":true,"id":12621},"move":{"__isSmartRef__":true,"id":12625},"performMovement":{"__isSmartRef__":true,"id":12629},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":12633},"zircon":{"__isSmartRef__":true,"id":12637},"emerald":{"__isSmartRef__":true,"id":12641},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":12645}},"12521":{"varMapping":{"__isSmartRef__":true,"id":12522},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12523},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12522":{"this":{"__isSmartRef__":true,"id":2939}},"12523":{"timestamp":{"__isSmartRef__":true,"id":12524},"user":"josi","tags":[]},"12524":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12525":{"varMapping":{"__isSmartRef__":true,"id":12526},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12531},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12526":{"this":{"__isSmartRef__":true,"id":2939},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12527}},"12527":{"$super":{"__isSmartRef__":true,"id":12528}},"12528":{"varMapping":{"__isSmartRef__":true,"id":12529},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12530},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12529":{"obj":{"__isSmartRef__":true,"id":2939},"name":"onMouseDown"},"12530":{},"12531":{"timestamp":{"__isSmartRef__":true,"id":12532},"user":"soergel","tags":[]},"12532":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12533":{"varMapping":{"__isSmartRef__":true,"id":12534},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12535},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12534":{"this":{"__isSmartRef__":true,"id":2939}},"12535":{"timestamp":{"__isSmartRef__":true,"id":12536},"user":"soergel","tags":[]},"12536":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12537":{"varMapping":{"__isSmartRef__":true,"id":12538},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12539},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12538":{"this":{"__isSmartRef__":true,"id":2939}},"12539":{"timestamp":{"__isSmartRef__":true,"id":12540},"user":"josi","tags":["gemtypes"]},"12540":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12541":{"varMapping":{"__isSmartRef__":true,"id":12542},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12543},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12542":{"this":{"__isSmartRef__":true,"id":2939}},"12543":{"timestamp":{"__isSmartRef__":true,"id":12544},"user":"jan.sandbrink","tags":[]},"12544":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12545":{"varMapping":{"__isSmartRef__":true,"id":12546},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12547},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12546":{"this":{"__isSmartRef__":true,"id":2939}},"12547":{"timestamp":{"__isSmartRef__":true,"id":12548},"user":"jan.sandbrink","tags":[]},"12548":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12549":{"varMapping":{"__isSmartRef__":true,"id":12550},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12551},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12550":{"this":{"__isSmartRef__":true,"id":2939}},"12551":{"timestamp":{"__isSmartRef__":true,"id":12552},"user":"josi","tags":["gemtypes"]},"12552":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12553":{"varMapping":{"__isSmartRef__":true,"id":12554},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12555},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12554":{"this":{"__isSmartRef__":true,"id":2939}},"12555":{"timestamp":{"__isSmartRef__":true,"id":12556},"user":"josi","tags":["gemtypes"]},"12556":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12557":{"varMapping":{"__isSmartRef__":true,"id":12558},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12559},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12558":{"this":{"__isSmartRef__":true,"id":2939}},"12559":{"timestamp":{"__isSmartRef__":true,"id":12560},"user":"josi","tags":[]},"12560":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12561":{"varMapping":{"__isSmartRef__":true,"id":12562},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12563},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12562":{"this":{"__isSmartRef__":true,"id":2939}},"12563":{"timestamp":{"__isSmartRef__":true,"id":12564},"user":"josi","tags":[]},"12564":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12565":{"varMapping":{"__isSmartRef__":true,"id":12566},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12566":{"this":{"__isSmartRef__":true,"id":2939}},"12567":{"timestamp":{"__isSmartRef__":true,"id":12568},"user":"soergel","tags":[]},"12568":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12569":{"varMapping":{"__isSmartRef__":true,"id":12570},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12570":{"this":{"__isSmartRef__":true,"id":2939}},"12571":{"timestamp":{"__isSmartRef__":true,"id":12572},"user":"soergel","tags":[]},"12572":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12573":{"varMapping":{"__isSmartRef__":true,"id":12574},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12575},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12574":{"this":{"__isSmartRef__":true,"id":2939}},"12575":{"timestamp":{"__isSmartRef__":true,"id":12576},"user":"soergel","tags":[]},"12576":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12577":{"varMapping":{"__isSmartRef__":true,"id":12578},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12578":{"this":{"__isSmartRef__":true,"id":2939}},"12579":{"timestamp":{"__isSmartRef__":true,"id":12580},"user":"soergel","tags":["debug"]},"12580":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12581":{"varMapping":{"__isSmartRef__":true,"id":12582},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12582":{"this":{"__isSmartRef__":true,"id":2939}},"12583":{"timestamp":{"__isSmartRef__":true,"id":12584},"user":"soergel","tags":["debug"]},"12584":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12585":{"varMapping":{"__isSmartRef__":true,"id":12586},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12587},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12586":{"this":{"__isSmartRef__":true,"id":2939}},"12587":{"timestamp":{"__isSmartRef__":true,"id":12588},"user":"soergel","tags":[]},"12588":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12589":{"varMapping":{"__isSmartRef__":true,"id":12590},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12591},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12590":{"this":{"__isSmartRef__":true,"id":2939}},"12591":{"timestamp":{"__isSmartRef__":true,"id":12592},"user":"jan.sandbrink","tags":[]},"12592":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12593":{"varMapping":{"__isSmartRef__":true,"id":12594},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12594":{"this":{"__isSmartRef__":true,"id":2939}},"12595":{"timestamp":{"__isSmartRef__":true,"id":12596},"user":"jan.sandbrink","tags":[]},"12596":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12597":{"varMapping":{"__isSmartRef__":true,"id":12598},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12599},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12598":{"this":{"__isSmartRef__":true,"id":2939}},"12599":{"timestamp":{"__isSmartRef__":true,"id":12600},"user":"jan.sandbrink","tags":[]},"12600":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12601":{"varMapping":{"__isSmartRef__":true,"id":12602},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12603},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12602":{"this":{"__isSmartRef__":true,"id":2939}},"12603":{"timestamp":{"__isSmartRef__":true,"id":12604},"user":"jan.sandbrink","tags":[]},"12604":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12605":{"varMapping":{"__isSmartRef__":true,"id":12606},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12606":{"this":{"__isSmartRef__":true,"id":2939}},"12607":{"timestamp":{"__isSmartRef__":true,"id":12608},"user":"josi","tags":["gemtypes"]},"12608":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12609":{"varMapping":{"__isSmartRef__":true,"id":12610},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":12611},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12610":{"this":{"__isSmartRef__":true,"id":2939}},"12611":{"timestamp":{"__isSmartRef__":true,"id":12612},"user":"josi","tags":["gemtypes"]},"12612":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"12613":{"varMapping":{"__isSmartRef__":true,"id":12614},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12614":{"this":{"__isSmartRef__":true,"id":2939}},"12615":{"timestamp":{"__isSmartRef__":true,"id":12616},"user":"soergel","tags":["debug"]},"12616":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"12617":{"varMapping":{"__isSmartRef__":true,"id":12618},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12619},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12618":{"this":{"__isSmartRef__":true,"id":2939}},"12619":{"timestamp":{"__isSmartRef__":true,"id":12620},"user":"soergel","tags":["debug"]},"12620":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"12621":{"varMapping":{"__isSmartRef__":true,"id":12622},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":12623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12622":{"this":{"__isSmartRef__":true,"id":2939}},"12623":{"timestamp":{"__isSmartRef__":true,"id":12624},"user":"josi","tags":["gemtypes"]},"12624":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"12625":{"varMapping":{"__isSmartRef__":true,"id":12626},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":12627},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12626":{"this":{"__isSmartRef__":true,"id":2939}},"12627":{"timestamp":{"__isSmartRef__":true,"id":12628},"user":"soergel","tags":[]},"12628":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"12629":{"varMapping":{"__isSmartRef__":true,"id":12630},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":12631},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12630":{"this":{"__isSmartRef__":true,"id":2939}},"12631":{"timestamp":{"__isSmartRef__":true,"id":12632},"user":"soergel","tags":[]},"12632":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"12633":{"varMapping":{"__isSmartRef__":true,"id":12634},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":12635},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12634":{"this":{"__isSmartRef__":true,"id":2939}},"12635":{"timestamp":{"__isSmartRef__":true,"id":12636},"user":"soergel","tags":[]},"12636":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"12637":{"varMapping":{"__isSmartRef__":true,"id":12638},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":12639},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12638":{"this":{"__isSmartRef__":true,"id":2939}},"12639":{"timestamp":{"__isSmartRef__":true,"id":12640},"user":"josi","tags":["gemtypes"]},"12640":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"12641":{"varMapping":{"__isSmartRef__":true,"id":12642},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":12643},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12642":{"this":{"__isSmartRef__":true,"id":2939}},"12643":{"timestamp":{"__isSmartRef__":true,"id":12644},"user":"josi","tags":["gemtypes"]},"12644":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"12645":{"varMapping":{"__isSmartRef__":true,"id":12646},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":12647},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12646":{"this":{"__isSmartRef__":true,"id":2939}},"12647":{"timestamp":{"__isSmartRef__":true,"id":12648},"user":"jan.sandbrink","tags":[]},"12648":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12649":{"become":{"__isSmartRef__":true,"id":12650},"onMouseDown":{"__isSmartRef__":true,"id":12654},"updatePicture":{"__isSmartRef__":true,"id":12662},"ruby":{"__isSmartRef__":true,"id":12666},"switchPositionWith":{"__isSmartRef__":true,"id":12670},"addNeighbour":{"__isSmartRef__":true,"id":12674},"amethyst":{"__isSmartRef__":true,"id":12678},"diopside":{"__isSmartRef__":true,"id":12682},"gemTypes":{"__isSmartRef__":true,"id":12686},"becomeRandomGem":{"__isSmartRef__":true,"id":12690},"mark":{"__isSmartRef__":true,"id":12694},"unmark":{"__isSmartRef__":true,"id":12698},"hasNeighbour":{"__isSmartRef__":true,"id":12702},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12706},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12710},"disappear":{"__isSmartRef__":true,"id":12714},"findStreakStart":{"__isSmartRef__":true,"id":12718},"buildStreak":{"__isSmartRef__":true,"id":12722},"scoreStreak":{"__isSmartRef__":true,"id":12726},"tryToStreak":{"__isSmartRef__":true,"id":12730},"blueDiamond":{"__isSmartRef__":true,"id":12734},"prehnite":{"__isSmartRef__":true,"id":12738},"debugUnmark":{"__isSmartRef__":true,"id":12742},"debugMark":{"__isSmartRef__":true,"id":12746},"citrine":{"__isSmartRef__":true,"id":12750},"move":{"__isSmartRef__":true,"id":12754},"performMovement":{"__isSmartRef__":true,"id":12758},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":12762},"zircon":{"__isSmartRef__":true,"id":12766},"emerald":{"__isSmartRef__":true,"id":12770},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":12774}},"12650":{"varMapping":{"__isSmartRef__":true,"id":12651},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12652},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12651":{"this":{"__isSmartRef__":true,"id":2821}},"12652":{"timestamp":{"__isSmartRef__":true,"id":12653},"user":"josi","tags":[]},"12653":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12654":{"varMapping":{"__isSmartRef__":true,"id":12655},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12660},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12655":{"this":{"__isSmartRef__":true,"id":2821},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12656}},"12656":{"$super":{"__isSmartRef__":true,"id":12657}},"12657":{"varMapping":{"__isSmartRef__":true,"id":12658},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12659},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12658":{"obj":{"__isSmartRef__":true,"id":2821},"name":"onMouseDown"},"12659":{},"12660":{"timestamp":{"__isSmartRef__":true,"id":12661},"user":"soergel","tags":[]},"12661":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12662":{"varMapping":{"__isSmartRef__":true,"id":12663},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12664},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12663":{"this":{"__isSmartRef__":true,"id":2821}},"12664":{"timestamp":{"__isSmartRef__":true,"id":12665},"user":"soergel","tags":[]},"12665":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12666":{"varMapping":{"__isSmartRef__":true,"id":12667},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12668},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12667":{"this":{"__isSmartRef__":true,"id":2821}},"12668":{"timestamp":{"__isSmartRef__":true,"id":12669},"user":"josi","tags":["gemtypes"]},"12669":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12670":{"varMapping":{"__isSmartRef__":true,"id":12671},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12672},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12671":{"this":{"__isSmartRef__":true,"id":2821}},"12672":{"timestamp":{"__isSmartRef__":true,"id":12673},"user":"jan.sandbrink","tags":[]},"12673":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12674":{"varMapping":{"__isSmartRef__":true,"id":12675},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12676},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12675":{"this":{"__isSmartRef__":true,"id":2821}},"12676":{"timestamp":{"__isSmartRef__":true,"id":12677},"user":"jan.sandbrink","tags":[]},"12677":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12678":{"varMapping":{"__isSmartRef__":true,"id":12679},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12680},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12679":{"this":{"__isSmartRef__":true,"id":2821}},"12680":{"timestamp":{"__isSmartRef__":true,"id":12681},"user":"josi","tags":["gemtypes"]},"12681":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12682":{"varMapping":{"__isSmartRef__":true,"id":12683},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12684},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12683":{"this":{"__isSmartRef__":true,"id":2821}},"12684":{"timestamp":{"__isSmartRef__":true,"id":12685},"user":"josi","tags":["gemtypes"]},"12685":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12686":{"varMapping":{"__isSmartRef__":true,"id":12687},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12688},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12687":{"this":{"__isSmartRef__":true,"id":2821}},"12688":{"timestamp":{"__isSmartRef__":true,"id":12689},"user":"josi","tags":[]},"12689":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12690":{"varMapping":{"__isSmartRef__":true,"id":12691},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12692},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12691":{"this":{"__isSmartRef__":true,"id":2821}},"12692":{"timestamp":{"__isSmartRef__":true,"id":12693},"user":"josi","tags":[]},"12693":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12694":{"varMapping":{"__isSmartRef__":true,"id":12695},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12696},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12695":{"this":{"__isSmartRef__":true,"id":2821}},"12696":{"timestamp":{"__isSmartRef__":true,"id":12697},"user":"soergel","tags":[]},"12697":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12698":{"varMapping":{"__isSmartRef__":true,"id":12699},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12700},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12699":{"this":{"__isSmartRef__":true,"id":2821}},"12700":{"timestamp":{"__isSmartRef__":true,"id":12701},"user":"soergel","tags":[]},"12701":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12702":{"varMapping":{"__isSmartRef__":true,"id":12703},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12704},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12703":{"this":{"__isSmartRef__":true,"id":2821}},"12704":{"timestamp":{"__isSmartRef__":true,"id":12705},"user":"soergel","tags":[]},"12705":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12706":{"varMapping":{"__isSmartRef__":true,"id":12707},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12708},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12707":{"this":{"__isSmartRef__":true,"id":2821}},"12708":{"timestamp":{"__isSmartRef__":true,"id":12709},"user":"soergel","tags":["debug"]},"12709":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12710":{"varMapping":{"__isSmartRef__":true,"id":12711},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12712},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12711":{"this":{"__isSmartRef__":true,"id":2821}},"12712":{"timestamp":{"__isSmartRef__":true,"id":12713},"user":"soergel","tags":["debug"]},"12713":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12714":{"varMapping":{"__isSmartRef__":true,"id":12715},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12716},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12715":{"this":{"__isSmartRef__":true,"id":2821}},"12716":{"timestamp":{"__isSmartRef__":true,"id":12717},"user":"soergel","tags":[]},"12717":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12718":{"varMapping":{"__isSmartRef__":true,"id":12719},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12720},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12719":{"this":{"__isSmartRef__":true,"id":2821}},"12720":{"timestamp":{"__isSmartRef__":true,"id":12721},"user":"jan.sandbrink","tags":[]},"12721":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12722":{"varMapping":{"__isSmartRef__":true,"id":12723},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12724},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12723":{"this":{"__isSmartRef__":true,"id":2821}},"12724":{"timestamp":{"__isSmartRef__":true,"id":12725},"user":"jan.sandbrink","tags":[]},"12725":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12726":{"varMapping":{"__isSmartRef__":true,"id":12727},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12728},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12727":{"this":{"__isSmartRef__":true,"id":2821}},"12728":{"timestamp":{"__isSmartRef__":true,"id":12729},"user":"jan.sandbrink","tags":[]},"12729":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12730":{"varMapping":{"__isSmartRef__":true,"id":12731},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12732},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12731":{"this":{"__isSmartRef__":true,"id":2821}},"12732":{"timestamp":{"__isSmartRef__":true,"id":12733},"user":"jan.sandbrink","tags":[]},"12733":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12734":{"varMapping":{"__isSmartRef__":true,"id":12735},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12736},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12735":{"this":{"__isSmartRef__":true,"id":2821}},"12736":{"timestamp":{"__isSmartRef__":true,"id":12737},"user":"josi","tags":["gemtypes"]},"12737":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12738":{"varMapping":{"__isSmartRef__":true,"id":12739},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":12740},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12739":{"this":{"__isSmartRef__":true,"id":2821}},"12740":{"timestamp":{"__isSmartRef__":true,"id":12741},"user":"josi","tags":["gemtypes"]},"12741":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"12742":{"varMapping":{"__isSmartRef__":true,"id":12743},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12744},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12743":{"this":{"__isSmartRef__":true,"id":2821}},"12744":{"timestamp":{"__isSmartRef__":true,"id":12745},"user":"soergel","tags":["debug"]},"12745":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"12746":{"varMapping":{"__isSmartRef__":true,"id":12747},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12748},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12747":{"this":{"__isSmartRef__":true,"id":2821}},"12748":{"timestamp":{"__isSmartRef__":true,"id":12749},"user":"soergel","tags":["debug"]},"12749":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"12750":{"varMapping":{"__isSmartRef__":true,"id":12751},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":12752},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12751":{"this":{"__isSmartRef__":true,"id":2821}},"12752":{"timestamp":{"__isSmartRef__":true,"id":12753},"user":"josi","tags":["gemtypes"]},"12753":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"12754":{"varMapping":{"__isSmartRef__":true,"id":12755},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":12756},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12755":{"this":{"__isSmartRef__":true,"id":2821}},"12756":{"timestamp":{"__isSmartRef__":true,"id":12757},"user":"soergel","tags":[]},"12757":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"12758":{"varMapping":{"__isSmartRef__":true,"id":12759},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":12760},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12759":{"this":{"__isSmartRef__":true,"id":2821}},"12760":{"timestamp":{"__isSmartRef__":true,"id":12761},"user":"soergel","tags":[]},"12761":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"12762":{"varMapping":{"__isSmartRef__":true,"id":12763},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":12764},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12763":{"this":{"__isSmartRef__":true,"id":2821}},"12764":{"timestamp":{"__isSmartRef__":true,"id":12765},"user":"soergel","tags":[]},"12765":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"12766":{"varMapping":{"__isSmartRef__":true,"id":12767},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":12768},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12767":{"this":{"__isSmartRef__":true,"id":2821}},"12768":{"timestamp":{"__isSmartRef__":true,"id":12769},"user":"josi","tags":["gemtypes"]},"12769":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"12770":{"varMapping":{"__isSmartRef__":true,"id":12771},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":12772},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12771":{"this":{"__isSmartRef__":true,"id":2821}},"12772":{"timestamp":{"__isSmartRef__":true,"id":12773},"user":"josi","tags":["gemtypes"]},"12773":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"12774":{"varMapping":{"__isSmartRef__":true,"id":12775},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":12776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12775":{"this":{"__isSmartRef__":true,"id":2821}},"12776":{"timestamp":{"__isSmartRef__":true,"id":12777},"user":"jan.sandbrink","tags":[]},"12777":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12778":{"x":296.22216522369325,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12779":{"become":{"__isSmartRef__":true,"id":12780},"onMouseDown":{"__isSmartRef__":true,"id":12784},"updatePicture":{"__isSmartRef__":true,"id":12792},"ruby":{"__isSmartRef__":true,"id":12796},"switchPositionWith":{"__isSmartRef__":true,"id":12800},"addNeighbour":{"__isSmartRef__":true,"id":12804},"amethyst":{"__isSmartRef__":true,"id":12808},"diopside":{"__isSmartRef__":true,"id":12812},"gemTypes":{"__isSmartRef__":true,"id":12816},"becomeRandomGem":{"__isSmartRef__":true,"id":12820},"mark":{"__isSmartRef__":true,"id":12824},"unmark":{"__isSmartRef__":true,"id":12828},"hasNeighbour":{"__isSmartRef__":true,"id":12832},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12836},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12840},"disappear":{"__isSmartRef__":true,"id":12844},"findStreakStart":{"__isSmartRef__":true,"id":12848},"buildStreak":{"__isSmartRef__":true,"id":12852},"scoreStreak":{"__isSmartRef__":true,"id":12856},"tryToStreak":{"__isSmartRef__":true,"id":12860},"blueDiamond":{"__isSmartRef__":true,"id":12864},"prehnite":{"__isSmartRef__":true,"id":12868},"debugUnmark":{"__isSmartRef__":true,"id":12872},"debugMark":{"__isSmartRef__":true,"id":12876},"citrine":{"__isSmartRef__":true,"id":12880},"move":{"__isSmartRef__":true,"id":12884},"performMovement":{"__isSmartRef__":true,"id":12888},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":12892},"zircon":{"__isSmartRef__":true,"id":12896},"emerald":{"__isSmartRef__":true,"id":12900},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":12904}},"12780":{"varMapping":{"__isSmartRef__":true,"id":12781},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12782},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12781":{"this":{"__isSmartRef__":true,"id":2703}},"12782":{"timestamp":{"__isSmartRef__":true,"id":12783},"user":"josi","tags":[]},"12783":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12784":{"varMapping":{"__isSmartRef__":true,"id":12785},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12790},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12785":{"this":{"__isSmartRef__":true,"id":2703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12786}},"12786":{"$super":{"__isSmartRef__":true,"id":12787}},"12787":{"varMapping":{"__isSmartRef__":true,"id":12788},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12789},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12788":{"obj":{"__isSmartRef__":true,"id":2703},"name":"onMouseDown"},"12789":{},"12790":{"timestamp":{"__isSmartRef__":true,"id":12791},"user":"soergel","tags":[]},"12791":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12792":{"varMapping":{"__isSmartRef__":true,"id":12793},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12794},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12793":{"this":{"__isSmartRef__":true,"id":2703}},"12794":{"timestamp":{"__isSmartRef__":true,"id":12795},"user":"soergel","tags":[]},"12795":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12796":{"varMapping":{"__isSmartRef__":true,"id":12797},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12798},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12797":{"this":{"__isSmartRef__":true,"id":2703}},"12798":{"timestamp":{"__isSmartRef__":true,"id":12799},"user":"josi","tags":["gemtypes"]},"12799":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12800":{"varMapping":{"__isSmartRef__":true,"id":12801},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12802},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12801":{"this":{"__isSmartRef__":true,"id":2703}},"12802":{"timestamp":{"__isSmartRef__":true,"id":12803},"user":"jan.sandbrink","tags":[]},"12803":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12804":{"varMapping":{"__isSmartRef__":true,"id":12805},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12806},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12805":{"this":{"__isSmartRef__":true,"id":2703}},"12806":{"timestamp":{"__isSmartRef__":true,"id":12807},"user":"jan.sandbrink","tags":[]},"12807":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12808":{"varMapping":{"__isSmartRef__":true,"id":12809},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12810},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12809":{"this":{"__isSmartRef__":true,"id":2703}},"12810":{"timestamp":{"__isSmartRef__":true,"id":12811},"user":"josi","tags":["gemtypes"]},"12811":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12812":{"varMapping":{"__isSmartRef__":true,"id":12813},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12814},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12813":{"this":{"__isSmartRef__":true,"id":2703}},"12814":{"timestamp":{"__isSmartRef__":true,"id":12815},"user":"josi","tags":["gemtypes"]},"12815":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12816":{"varMapping":{"__isSmartRef__":true,"id":12817},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12818},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12817":{"this":{"__isSmartRef__":true,"id":2703}},"12818":{"timestamp":{"__isSmartRef__":true,"id":12819},"user":"josi","tags":[]},"12819":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12820":{"varMapping":{"__isSmartRef__":true,"id":12821},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12822},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12821":{"this":{"__isSmartRef__":true,"id":2703}},"12822":{"timestamp":{"__isSmartRef__":true,"id":12823},"user":"josi","tags":[]},"12823":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12824":{"varMapping":{"__isSmartRef__":true,"id":12825},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12826},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12825":{"this":{"__isSmartRef__":true,"id":2703}},"12826":{"timestamp":{"__isSmartRef__":true,"id":12827},"user":"soergel","tags":[]},"12827":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12828":{"varMapping":{"__isSmartRef__":true,"id":12829},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12830},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12829":{"this":{"__isSmartRef__":true,"id":2703}},"12830":{"timestamp":{"__isSmartRef__":true,"id":12831},"user":"soergel","tags":[]},"12831":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12832":{"varMapping":{"__isSmartRef__":true,"id":12833},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12834},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12833":{"this":{"__isSmartRef__":true,"id":2703}},"12834":{"timestamp":{"__isSmartRef__":true,"id":12835},"user":"soergel","tags":[]},"12835":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12836":{"varMapping":{"__isSmartRef__":true,"id":12837},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12838},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12837":{"this":{"__isSmartRef__":true,"id":2703}},"12838":{"timestamp":{"__isSmartRef__":true,"id":12839},"user":"soergel","tags":["debug"]},"12839":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12840":{"varMapping":{"__isSmartRef__":true,"id":12841},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12842},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12841":{"this":{"__isSmartRef__":true,"id":2703}},"12842":{"timestamp":{"__isSmartRef__":true,"id":12843},"user":"soergel","tags":["debug"]},"12843":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12844":{"varMapping":{"__isSmartRef__":true,"id":12845},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12846},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12845":{"this":{"__isSmartRef__":true,"id":2703}},"12846":{"timestamp":{"__isSmartRef__":true,"id":12847},"user":"soergel","tags":[]},"12847":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12848":{"varMapping":{"__isSmartRef__":true,"id":12849},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12850},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12849":{"this":{"__isSmartRef__":true,"id":2703}},"12850":{"timestamp":{"__isSmartRef__":true,"id":12851},"user":"jan.sandbrink","tags":[]},"12851":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12852":{"varMapping":{"__isSmartRef__":true,"id":12853},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12854},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12853":{"this":{"__isSmartRef__":true,"id":2703}},"12854":{"timestamp":{"__isSmartRef__":true,"id":12855},"user":"jan.sandbrink","tags":[]},"12855":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12856":{"varMapping":{"__isSmartRef__":true,"id":12857},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12858},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12857":{"this":{"__isSmartRef__":true,"id":2703}},"12858":{"timestamp":{"__isSmartRef__":true,"id":12859},"user":"jan.sandbrink","tags":[]},"12859":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12860":{"varMapping":{"__isSmartRef__":true,"id":12861},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12862},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12861":{"this":{"__isSmartRef__":true,"id":2703}},"12862":{"timestamp":{"__isSmartRef__":true,"id":12863},"user":"jan.sandbrink","tags":[]},"12863":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12864":{"varMapping":{"__isSmartRef__":true,"id":12865},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12866},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12865":{"this":{"__isSmartRef__":true,"id":2703}},"12866":{"timestamp":{"__isSmartRef__":true,"id":12867},"user":"josi","tags":["gemtypes"]},"12867":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12868":{"varMapping":{"__isSmartRef__":true,"id":12869},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":12870},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12869":{"this":{"__isSmartRef__":true,"id":2703}},"12870":{"timestamp":{"__isSmartRef__":true,"id":12871},"user":"josi","tags":["gemtypes"]},"12871":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"12872":{"varMapping":{"__isSmartRef__":true,"id":12873},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":12874},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12873":{"this":{"__isSmartRef__":true,"id":2703}},"12874":{"timestamp":{"__isSmartRef__":true,"id":12875},"user":"soergel","tags":["debug"]},"12875":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"12876":{"varMapping":{"__isSmartRef__":true,"id":12877},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":12878},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12877":{"this":{"__isSmartRef__":true,"id":2703}},"12878":{"timestamp":{"__isSmartRef__":true,"id":12879},"user":"soergel","tags":["debug"]},"12879":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"12880":{"varMapping":{"__isSmartRef__":true,"id":12881},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":12882},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12881":{"this":{"__isSmartRef__":true,"id":2703}},"12882":{"timestamp":{"__isSmartRef__":true,"id":12883},"user":"josi","tags":["gemtypes"]},"12883":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"12884":{"varMapping":{"__isSmartRef__":true,"id":12885},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":12886},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12885":{"this":{"__isSmartRef__":true,"id":2703}},"12886":{"timestamp":{"__isSmartRef__":true,"id":12887},"user":"soergel","tags":[]},"12887":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"12888":{"varMapping":{"__isSmartRef__":true,"id":12889},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":12890},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12889":{"this":{"__isSmartRef__":true,"id":2703}},"12890":{"timestamp":{"__isSmartRef__":true,"id":12891},"user":"soergel","tags":[]},"12891":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"12892":{"varMapping":{"__isSmartRef__":true,"id":12893},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":12894},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12893":{"this":{"__isSmartRef__":true,"id":2703}},"12894":{"timestamp":{"__isSmartRef__":true,"id":12895},"user":"soergel","tags":[]},"12895":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"12896":{"varMapping":{"__isSmartRef__":true,"id":12897},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":12898},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12897":{"this":{"__isSmartRef__":true,"id":2703}},"12898":{"timestamp":{"__isSmartRef__":true,"id":12899},"user":"josi","tags":["gemtypes"]},"12899":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"12900":{"varMapping":{"__isSmartRef__":true,"id":12901},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":12902},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12901":{"this":{"__isSmartRef__":true,"id":2703}},"12902":{"timestamp":{"__isSmartRef__":true,"id":12903},"user":"josi","tags":["gemtypes"]},"12903":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"12904":{"varMapping":{"__isSmartRef__":true,"id":12905},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":12906},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12905":{"this":{"__isSmartRef__":true,"id":2703}},"12906":{"timestamp":{"__isSmartRef__":true,"id":12907},"user":"jan.sandbrink","tags":[]},"12907":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"12908":{"x":247.0184710197444,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"12909":{"become":{"__isSmartRef__":true,"id":12910},"onMouseDown":{"__isSmartRef__":true,"id":12914},"updatePicture":{"__isSmartRef__":true,"id":12922},"ruby":{"__isSmartRef__":true,"id":12926},"switchPositionWith":{"__isSmartRef__":true,"id":12930},"addNeighbour":{"__isSmartRef__":true,"id":12934},"amethyst":{"__isSmartRef__":true,"id":12938},"diopside":{"__isSmartRef__":true,"id":12942},"gemTypes":{"__isSmartRef__":true,"id":12946},"becomeRandomGem":{"__isSmartRef__":true,"id":12950},"mark":{"__isSmartRef__":true,"id":12954},"unmark":{"__isSmartRef__":true,"id":12958},"hasNeighbour":{"__isSmartRef__":true,"id":12962},"debugMarkNeighbours":{"__isSmartRef__":true,"id":12966},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":12970},"disappear":{"__isSmartRef__":true,"id":12974},"findStreakStart":{"__isSmartRef__":true,"id":12978},"buildStreak":{"__isSmartRef__":true,"id":12982},"scoreStreak":{"__isSmartRef__":true,"id":12986},"tryToStreak":{"__isSmartRef__":true,"id":12990},"blueDiamond":{"__isSmartRef__":true,"id":12994},"prehnite":{"__isSmartRef__":true,"id":12998},"debugUnmark":{"__isSmartRef__":true,"id":13002},"debugMark":{"__isSmartRef__":true,"id":13006},"citrine":{"__isSmartRef__":true,"id":13010},"move":{"__isSmartRef__":true,"id":13014},"performMovement":{"__isSmartRef__":true,"id":13018},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13022},"zircon":{"__isSmartRef__":true,"id":13026},"emerald":{"__isSmartRef__":true,"id":13030},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13034}},"12910":{"varMapping":{"__isSmartRef__":true,"id":12911},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12912},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12911":{"this":{"__isSmartRef__":true,"id":2576}},"12912":{"timestamp":{"__isSmartRef__":true,"id":12913},"user":"josi","tags":[]},"12913":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"12914":{"varMapping":{"__isSmartRef__":true,"id":12915},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":12920},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12915":{"this":{"__isSmartRef__":true,"id":2576},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":12916}},"12916":{"$super":{"__isSmartRef__":true,"id":12917}},"12917":{"varMapping":{"__isSmartRef__":true,"id":12918},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":12919},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12918":{"obj":{"__isSmartRef__":true,"id":2576},"name":"onMouseDown"},"12919":{},"12920":{"timestamp":{"__isSmartRef__":true,"id":12921},"user":"soergel","tags":[]},"12921":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"12922":{"varMapping":{"__isSmartRef__":true,"id":12923},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":12924},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12923":{"this":{"__isSmartRef__":true,"id":2576}},"12924":{"timestamp":{"__isSmartRef__":true,"id":12925},"user":"soergel","tags":[]},"12925":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"12926":{"varMapping":{"__isSmartRef__":true,"id":12927},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":12928},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12927":{"this":{"__isSmartRef__":true,"id":2576}},"12928":{"timestamp":{"__isSmartRef__":true,"id":12929},"user":"josi","tags":["gemtypes"]},"12929":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"12930":{"varMapping":{"__isSmartRef__":true,"id":12931},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":12932},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12931":{"this":{"__isSmartRef__":true,"id":2576}},"12932":{"timestamp":{"__isSmartRef__":true,"id":12933},"user":"jan.sandbrink","tags":[]},"12933":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"12934":{"varMapping":{"__isSmartRef__":true,"id":12935},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12936},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12935":{"this":{"__isSmartRef__":true,"id":2576}},"12936":{"timestamp":{"__isSmartRef__":true,"id":12937},"user":"jan.sandbrink","tags":[]},"12937":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"12938":{"varMapping":{"__isSmartRef__":true,"id":12939},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":12940},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12939":{"this":{"__isSmartRef__":true,"id":2576}},"12940":{"timestamp":{"__isSmartRef__":true,"id":12941},"user":"josi","tags":["gemtypes"]},"12941":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"12942":{"varMapping":{"__isSmartRef__":true,"id":12943},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":12944},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12943":{"this":{"__isSmartRef__":true,"id":2576}},"12944":{"timestamp":{"__isSmartRef__":true,"id":12945},"user":"josi","tags":["gemtypes"]},"12945":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"12946":{"varMapping":{"__isSmartRef__":true,"id":12947},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":12948},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12947":{"this":{"__isSmartRef__":true,"id":2576}},"12948":{"timestamp":{"__isSmartRef__":true,"id":12949},"user":"josi","tags":[]},"12949":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"12950":{"varMapping":{"__isSmartRef__":true,"id":12951},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":12952},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12951":{"this":{"__isSmartRef__":true,"id":2576}},"12952":{"timestamp":{"__isSmartRef__":true,"id":12953},"user":"josi","tags":[]},"12953":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"12954":{"varMapping":{"__isSmartRef__":true,"id":12955},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":12956},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12955":{"this":{"__isSmartRef__":true,"id":2576}},"12956":{"timestamp":{"__isSmartRef__":true,"id":12957},"user":"soergel","tags":[]},"12957":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"12958":{"varMapping":{"__isSmartRef__":true,"id":12959},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":12960},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12959":{"this":{"__isSmartRef__":true,"id":2576}},"12960":{"timestamp":{"__isSmartRef__":true,"id":12961},"user":"soergel","tags":[]},"12961":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"12962":{"varMapping":{"__isSmartRef__":true,"id":12963},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":12964},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12963":{"this":{"__isSmartRef__":true,"id":2576}},"12964":{"timestamp":{"__isSmartRef__":true,"id":12965},"user":"soergel","tags":[]},"12965":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"12966":{"varMapping":{"__isSmartRef__":true,"id":12967},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12968},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12967":{"this":{"__isSmartRef__":true,"id":2576}},"12968":{"timestamp":{"__isSmartRef__":true,"id":12969},"user":"soergel","tags":["debug"]},"12969":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"12970":{"varMapping":{"__isSmartRef__":true,"id":12971},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":12972},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12971":{"this":{"__isSmartRef__":true,"id":2576}},"12972":{"timestamp":{"__isSmartRef__":true,"id":12973},"user":"soergel","tags":["debug"]},"12973":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"12974":{"varMapping":{"__isSmartRef__":true,"id":12975},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12976},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12975":{"this":{"__isSmartRef__":true,"id":2576}},"12976":{"timestamp":{"__isSmartRef__":true,"id":12977},"user":"soergel","tags":[]},"12977":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"12978":{"varMapping":{"__isSmartRef__":true,"id":12979},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12980},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12979":{"this":{"__isSmartRef__":true,"id":2576}},"12980":{"timestamp":{"__isSmartRef__":true,"id":12981},"user":"jan.sandbrink","tags":[]},"12981":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"12982":{"varMapping":{"__isSmartRef__":true,"id":12983},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":12984},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12983":{"this":{"__isSmartRef__":true,"id":2576}},"12984":{"timestamp":{"__isSmartRef__":true,"id":12985},"user":"jan.sandbrink","tags":[]},"12985":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"12986":{"varMapping":{"__isSmartRef__":true,"id":12987},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":12988},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12987":{"this":{"__isSmartRef__":true,"id":2576}},"12988":{"timestamp":{"__isSmartRef__":true,"id":12989},"user":"jan.sandbrink","tags":[]},"12989":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"12990":{"varMapping":{"__isSmartRef__":true,"id":12991},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":12992},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12991":{"this":{"__isSmartRef__":true,"id":2576}},"12992":{"timestamp":{"__isSmartRef__":true,"id":12993},"user":"jan.sandbrink","tags":[]},"12993":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"12994":{"varMapping":{"__isSmartRef__":true,"id":12995},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":12996},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12995":{"this":{"__isSmartRef__":true,"id":2576}},"12996":{"timestamp":{"__isSmartRef__":true,"id":12997},"user":"josi","tags":["gemtypes"]},"12997":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"12998":{"varMapping":{"__isSmartRef__":true,"id":12999},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13000},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"12999":{"this":{"__isSmartRef__":true,"id":2576}},"13000":{"timestamp":{"__isSmartRef__":true,"id":13001},"user":"josi","tags":["gemtypes"]},"13001":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13002":{"varMapping":{"__isSmartRef__":true,"id":13003},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13004},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13003":{"this":{"__isSmartRef__":true,"id":2576}},"13004":{"timestamp":{"__isSmartRef__":true,"id":13005},"user":"soergel","tags":["debug"]},"13005":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13006":{"varMapping":{"__isSmartRef__":true,"id":13007},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13008},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13007":{"this":{"__isSmartRef__":true,"id":2576}},"13008":{"timestamp":{"__isSmartRef__":true,"id":13009},"user":"soergel","tags":["debug"]},"13009":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13010":{"varMapping":{"__isSmartRef__":true,"id":13011},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13012},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13011":{"this":{"__isSmartRef__":true,"id":2576}},"13012":{"timestamp":{"__isSmartRef__":true,"id":13013},"user":"josi","tags":["gemtypes"]},"13013":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13014":{"varMapping":{"__isSmartRef__":true,"id":13015},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13016},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13015":{"this":{"__isSmartRef__":true,"id":2576}},"13016":{"timestamp":{"__isSmartRef__":true,"id":13017},"user":"soergel","tags":[]},"13017":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13018":{"varMapping":{"__isSmartRef__":true,"id":13019},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13020},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13019":{"this":{"__isSmartRef__":true,"id":2576}},"13020":{"timestamp":{"__isSmartRef__":true,"id":13021},"user":"soergel","tags":[]},"13021":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13022":{"varMapping":{"__isSmartRef__":true,"id":13023},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13024},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13023":{"this":{"__isSmartRef__":true,"id":2576}},"13024":{"timestamp":{"__isSmartRef__":true,"id":13025},"user":"soergel","tags":[]},"13025":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13026":{"varMapping":{"__isSmartRef__":true,"id":13027},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13028},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13027":{"this":{"__isSmartRef__":true,"id":2576}},"13028":{"timestamp":{"__isSmartRef__":true,"id":13029},"user":"josi","tags":["gemtypes"]},"13029":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13030":{"varMapping":{"__isSmartRef__":true,"id":13031},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13032},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13031":{"this":{"__isSmartRef__":true,"id":2576}},"13032":{"timestamp":{"__isSmartRef__":true,"id":13033},"user":"josi","tags":["gemtypes"]},"13033":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13034":{"varMapping":{"__isSmartRef__":true,"id":13035},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13036},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13035":{"this":{"__isSmartRef__":true,"id":2576}},"13036":{"timestamp":{"__isSmartRef__":true,"id":13037},"user":"jan.sandbrink","tags":[]},"13037":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13038":{"x":197.8147768157955,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"13039":{"become":{"__isSmartRef__":true,"id":13040},"onMouseDown":{"__isSmartRef__":true,"id":13044},"updatePicture":{"__isSmartRef__":true,"id":13052},"ruby":{"__isSmartRef__":true,"id":13056},"switchPositionWith":{"__isSmartRef__":true,"id":13060},"addNeighbour":{"__isSmartRef__":true,"id":13064},"amethyst":{"__isSmartRef__":true,"id":13068},"diopside":{"__isSmartRef__":true,"id":13072},"gemTypes":{"__isSmartRef__":true,"id":13076},"becomeRandomGem":{"__isSmartRef__":true,"id":13080},"mark":{"__isSmartRef__":true,"id":13084},"unmark":{"__isSmartRef__":true,"id":13088},"hasNeighbour":{"__isSmartRef__":true,"id":13092},"debugMarkNeighbours":{"__isSmartRef__":true,"id":13096},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":13100},"disappear":{"__isSmartRef__":true,"id":13104},"findStreakStart":{"__isSmartRef__":true,"id":13108},"buildStreak":{"__isSmartRef__":true,"id":13112},"scoreStreak":{"__isSmartRef__":true,"id":13116},"tryToStreak":{"__isSmartRef__":true,"id":13120},"blueDiamond":{"__isSmartRef__":true,"id":13124},"prehnite":{"__isSmartRef__":true,"id":13128},"debugUnmark":{"__isSmartRef__":true,"id":13132},"debugMark":{"__isSmartRef__":true,"id":13136},"citrine":{"__isSmartRef__":true,"id":13140},"move":{"__isSmartRef__":true,"id":13144},"performMovement":{"__isSmartRef__":true,"id":13148},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13152},"zircon":{"__isSmartRef__":true,"id":13156},"emerald":{"__isSmartRef__":true,"id":13160},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13164}},"13040":{"varMapping":{"__isSmartRef__":true,"id":13041},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13042},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13041":{"this":{"__isSmartRef__":true,"id":2484}},"13042":{"timestamp":{"__isSmartRef__":true,"id":13043},"user":"josi","tags":[]},"13043":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13044":{"varMapping":{"__isSmartRef__":true,"id":13045},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13050},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13045":{"this":{"__isSmartRef__":true,"id":2484},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13046}},"13046":{"$super":{"__isSmartRef__":true,"id":13047}},"13047":{"varMapping":{"__isSmartRef__":true,"id":13048},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13049},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13048":{"obj":{"__isSmartRef__":true,"id":2484},"name":"onMouseDown"},"13049":{},"13050":{"timestamp":{"__isSmartRef__":true,"id":13051},"user":"soergel","tags":[]},"13051":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13052":{"varMapping":{"__isSmartRef__":true,"id":13053},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13054},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13053":{"this":{"__isSmartRef__":true,"id":2484}},"13054":{"timestamp":{"__isSmartRef__":true,"id":13055},"user":"soergel","tags":[]},"13055":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13056":{"varMapping":{"__isSmartRef__":true,"id":13057},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13058},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13057":{"this":{"__isSmartRef__":true,"id":2484}},"13058":{"timestamp":{"__isSmartRef__":true,"id":13059},"user":"josi","tags":["gemtypes"]},"13059":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13060":{"varMapping":{"__isSmartRef__":true,"id":13061},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13062},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13061":{"this":{"__isSmartRef__":true,"id":2484}},"13062":{"timestamp":{"__isSmartRef__":true,"id":13063},"user":"jan.sandbrink","tags":[]},"13063":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13064":{"varMapping":{"__isSmartRef__":true,"id":13065},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13066},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13065":{"this":{"__isSmartRef__":true,"id":2484}},"13066":{"timestamp":{"__isSmartRef__":true,"id":13067},"user":"jan.sandbrink","tags":[]},"13067":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13068":{"varMapping":{"__isSmartRef__":true,"id":13069},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13070},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13069":{"this":{"__isSmartRef__":true,"id":2484}},"13070":{"timestamp":{"__isSmartRef__":true,"id":13071},"user":"josi","tags":["gemtypes"]},"13071":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13072":{"varMapping":{"__isSmartRef__":true,"id":13073},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13074},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13073":{"this":{"__isSmartRef__":true,"id":2484}},"13074":{"timestamp":{"__isSmartRef__":true,"id":13075},"user":"josi","tags":["gemtypes"]},"13075":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13076":{"varMapping":{"__isSmartRef__":true,"id":13077},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13078},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13077":{"this":{"__isSmartRef__":true,"id":2484}},"13078":{"timestamp":{"__isSmartRef__":true,"id":13079},"user":"josi","tags":[]},"13079":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13080":{"varMapping":{"__isSmartRef__":true,"id":13081},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13082},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13081":{"this":{"__isSmartRef__":true,"id":2484}},"13082":{"timestamp":{"__isSmartRef__":true,"id":13083},"user":"josi","tags":[]},"13083":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13084":{"varMapping":{"__isSmartRef__":true,"id":13085},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13086},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13085":{"this":{"__isSmartRef__":true,"id":2484}},"13086":{"timestamp":{"__isSmartRef__":true,"id":13087},"user":"soergel","tags":[]},"13087":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13088":{"varMapping":{"__isSmartRef__":true,"id":13089},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13090},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13089":{"this":{"__isSmartRef__":true,"id":2484}},"13090":{"timestamp":{"__isSmartRef__":true,"id":13091},"user":"soergel","tags":[]},"13091":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13092":{"varMapping":{"__isSmartRef__":true,"id":13093},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13094},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13093":{"this":{"__isSmartRef__":true,"id":2484}},"13094":{"timestamp":{"__isSmartRef__":true,"id":13095},"user":"soergel","tags":[]},"13095":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"13096":{"varMapping":{"__isSmartRef__":true,"id":13097},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13098},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13097":{"this":{"__isSmartRef__":true,"id":2484}},"13098":{"timestamp":{"__isSmartRef__":true,"id":13099},"user":"soergel","tags":["debug"]},"13099":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"13100":{"varMapping":{"__isSmartRef__":true,"id":13101},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13102},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13101":{"this":{"__isSmartRef__":true,"id":2484}},"13102":{"timestamp":{"__isSmartRef__":true,"id":13103},"user":"soergel","tags":["debug"]},"13103":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"13104":{"varMapping":{"__isSmartRef__":true,"id":13105},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13106},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13105":{"this":{"__isSmartRef__":true,"id":2484}},"13106":{"timestamp":{"__isSmartRef__":true,"id":13107},"user":"soergel","tags":[]},"13107":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"13108":{"varMapping":{"__isSmartRef__":true,"id":13109},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13110},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13109":{"this":{"__isSmartRef__":true,"id":2484}},"13110":{"timestamp":{"__isSmartRef__":true,"id":13111},"user":"jan.sandbrink","tags":[]},"13111":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"13112":{"varMapping":{"__isSmartRef__":true,"id":13113},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":13114},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13113":{"this":{"__isSmartRef__":true,"id":2484}},"13114":{"timestamp":{"__isSmartRef__":true,"id":13115},"user":"jan.sandbrink","tags":[]},"13115":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"13116":{"varMapping":{"__isSmartRef__":true,"id":13117},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13118},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13117":{"this":{"__isSmartRef__":true,"id":2484}},"13118":{"timestamp":{"__isSmartRef__":true,"id":13119},"user":"jan.sandbrink","tags":[]},"13119":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"13120":{"varMapping":{"__isSmartRef__":true,"id":13121},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":13122},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13121":{"this":{"__isSmartRef__":true,"id":2484}},"13122":{"timestamp":{"__isSmartRef__":true,"id":13123},"user":"jan.sandbrink","tags":[]},"13123":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"13124":{"varMapping":{"__isSmartRef__":true,"id":13125},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":13126},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13125":{"this":{"__isSmartRef__":true,"id":2484}},"13126":{"timestamp":{"__isSmartRef__":true,"id":13127},"user":"josi","tags":["gemtypes"]},"13127":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"13128":{"varMapping":{"__isSmartRef__":true,"id":13129},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13130},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13129":{"this":{"__isSmartRef__":true,"id":2484}},"13130":{"timestamp":{"__isSmartRef__":true,"id":13131},"user":"josi","tags":["gemtypes"]},"13131":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13132":{"varMapping":{"__isSmartRef__":true,"id":13133},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13134},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13133":{"this":{"__isSmartRef__":true,"id":2484}},"13134":{"timestamp":{"__isSmartRef__":true,"id":13135},"user":"soergel","tags":["debug"]},"13135":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13136":{"varMapping":{"__isSmartRef__":true,"id":13137},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13137":{"this":{"__isSmartRef__":true,"id":2484}},"13138":{"timestamp":{"__isSmartRef__":true,"id":13139},"user":"soergel","tags":["debug"]},"13139":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13140":{"varMapping":{"__isSmartRef__":true,"id":13141},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13142},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13141":{"this":{"__isSmartRef__":true,"id":2484}},"13142":{"timestamp":{"__isSmartRef__":true,"id":13143},"user":"josi","tags":["gemtypes"]},"13143":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13144":{"varMapping":{"__isSmartRef__":true,"id":13145},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13146},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13145":{"this":{"__isSmartRef__":true,"id":2484}},"13146":{"timestamp":{"__isSmartRef__":true,"id":13147},"user":"soergel","tags":[]},"13147":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13148":{"varMapping":{"__isSmartRef__":true,"id":13149},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13150},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13149":{"this":{"__isSmartRef__":true,"id":2484}},"13150":{"timestamp":{"__isSmartRef__":true,"id":13151},"user":"soergel","tags":[]},"13151":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13152":{"varMapping":{"__isSmartRef__":true,"id":13153},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13154},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13153":{"this":{"__isSmartRef__":true,"id":2484}},"13154":{"timestamp":{"__isSmartRef__":true,"id":13155},"user":"soergel","tags":[]},"13155":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13156":{"varMapping":{"__isSmartRef__":true,"id":13157},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13158},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13157":{"this":{"__isSmartRef__":true,"id":2484}},"13158":{"timestamp":{"__isSmartRef__":true,"id":13159},"user":"josi","tags":["gemtypes"]},"13159":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13160":{"varMapping":{"__isSmartRef__":true,"id":13161},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13162},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13161":{"this":{"__isSmartRef__":true,"id":2484}},"13162":{"timestamp":{"__isSmartRef__":true,"id":13163},"user":"josi","tags":["gemtypes"]},"13163":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13164":{"varMapping":{"__isSmartRef__":true,"id":13165},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13166},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13165":{"this":{"__isSmartRef__":true,"id":2484}},"13166":{"timestamp":{"__isSmartRef__":true,"id":13167},"user":"jan.sandbrink","tags":[]},"13167":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13168":{"x":148.61108261184663,"y":103.39141239190155,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"13169":{"become":{"__isSmartRef__":true,"id":13170},"onMouseDown":{"__isSmartRef__":true,"id":13174},"updatePicture":{"__isSmartRef__":true,"id":13182},"ruby":{"__isSmartRef__":true,"id":13186},"switchPositionWith":{"__isSmartRef__":true,"id":13190},"addNeighbour":{"__isSmartRef__":true,"id":13194},"amethyst":{"__isSmartRef__":true,"id":13198},"diopside":{"__isSmartRef__":true,"id":13202},"gemTypes":{"__isSmartRef__":true,"id":13206},"becomeRandomGem":{"__isSmartRef__":true,"id":13210},"mark":{"__isSmartRef__":true,"id":13214},"unmark":{"__isSmartRef__":true,"id":13218},"hasNeighbour":{"__isSmartRef__":true,"id":13222},"debugMarkNeighbours":{"__isSmartRef__":true,"id":13226},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":13230},"disappear":{"__isSmartRef__":true,"id":13234},"findStreakStart":{"__isSmartRef__":true,"id":13238},"buildStreak":{"__isSmartRef__":true,"id":13242},"scoreStreak":{"__isSmartRef__":true,"id":13246},"tryToStreak":{"__isSmartRef__":true,"id":13250},"blueDiamond":{"__isSmartRef__":true,"id":13254},"prehnite":{"__isSmartRef__":true,"id":13258},"debugUnmark":{"__isSmartRef__":true,"id":13262},"debugMark":{"__isSmartRef__":true,"id":13266},"citrine":{"__isSmartRef__":true,"id":13270},"move":{"__isSmartRef__":true,"id":13274},"performMovement":{"__isSmartRef__":true,"id":13278},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13282},"zircon":{"__isSmartRef__":true,"id":13286},"emerald":{"__isSmartRef__":true,"id":13290},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13294}},"13170":{"varMapping":{"__isSmartRef__":true,"id":13171},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13172},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13171":{"this":{"__isSmartRef__":true,"id":2357}},"13172":{"timestamp":{"__isSmartRef__":true,"id":13173},"user":"josi","tags":[]},"13173":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13174":{"varMapping":{"__isSmartRef__":true,"id":13175},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13180},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13175":{"this":{"__isSmartRef__":true,"id":2357},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13176}},"13176":{"$super":{"__isSmartRef__":true,"id":13177}},"13177":{"varMapping":{"__isSmartRef__":true,"id":13178},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13179},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13178":{"obj":{"__isSmartRef__":true,"id":2357},"name":"onMouseDown"},"13179":{},"13180":{"timestamp":{"__isSmartRef__":true,"id":13181},"user":"soergel","tags":[]},"13181":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13182":{"varMapping":{"__isSmartRef__":true,"id":13183},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13184},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13183":{"this":{"__isSmartRef__":true,"id":2357}},"13184":{"timestamp":{"__isSmartRef__":true,"id":13185},"user":"soergel","tags":[]},"13185":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13186":{"varMapping":{"__isSmartRef__":true,"id":13187},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13188},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13187":{"this":{"__isSmartRef__":true,"id":2357}},"13188":{"timestamp":{"__isSmartRef__":true,"id":13189},"user":"josi","tags":["gemtypes"]},"13189":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13190":{"varMapping":{"__isSmartRef__":true,"id":13191},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13192},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13191":{"this":{"__isSmartRef__":true,"id":2357}},"13192":{"timestamp":{"__isSmartRef__":true,"id":13193},"user":"jan.sandbrink","tags":[]},"13193":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13194":{"varMapping":{"__isSmartRef__":true,"id":13195},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13196},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13195":{"this":{"__isSmartRef__":true,"id":2357}},"13196":{"timestamp":{"__isSmartRef__":true,"id":13197},"user":"jan.sandbrink","tags":[]},"13197":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13198":{"varMapping":{"__isSmartRef__":true,"id":13199},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13200},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13199":{"this":{"__isSmartRef__":true,"id":2357}},"13200":{"timestamp":{"__isSmartRef__":true,"id":13201},"user":"josi","tags":["gemtypes"]},"13201":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13202":{"varMapping":{"__isSmartRef__":true,"id":13203},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13204},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13203":{"this":{"__isSmartRef__":true,"id":2357}},"13204":{"timestamp":{"__isSmartRef__":true,"id":13205},"user":"josi","tags":["gemtypes"]},"13205":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13206":{"varMapping":{"__isSmartRef__":true,"id":13207},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13208},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13207":{"this":{"__isSmartRef__":true,"id":2357}},"13208":{"timestamp":{"__isSmartRef__":true,"id":13209},"user":"josi","tags":[]},"13209":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13210":{"varMapping":{"__isSmartRef__":true,"id":13211},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13212},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13211":{"this":{"__isSmartRef__":true,"id":2357}},"13212":{"timestamp":{"__isSmartRef__":true,"id":13213},"user":"josi","tags":[]},"13213":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13214":{"varMapping":{"__isSmartRef__":true,"id":13215},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13216},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13215":{"this":{"__isSmartRef__":true,"id":2357}},"13216":{"timestamp":{"__isSmartRef__":true,"id":13217},"user":"soergel","tags":[]},"13217":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13218":{"varMapping":{"__isSmartRef__":true,"id":13219},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13220},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13219":{"this":{"__isSmartRef__":true,"id":2357}},"13220":{"timestamp":{"__isSmartRef__":true,"id":13221},"user":"soergel","tags":[]},"13221":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13222":{"varMapping":{"__isSmartRef__":true,"id":13223},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13224},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13223":{"this":{"__isSmartRef__":true,"id":2357}},"13224":{"timestamp":{"__isSmartRef__":true,"id":13225},"user":"soergel","tags":[]},"13225":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"13226":{"varMapping":{"__isSmartRef__":true,"id":13227},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13228},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13227":{"this":{"__isSmartRef__":true,"id":2357}},"13228":{"timestamp":{"__isSmartRef__":true,"id":13229},"user":"soergel","tags":["debug"]},"13229":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"13230":{"varMapping":{"__isSmartRef__":true,"id":13231},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13232},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13231":{"this":{"__isSmartRef__":true,"id":2357}},"13232":{"timestamp":{"__isSmartRef__":true,"id":13233},"user":"soergel","tags":["debug"]},"13233":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"13234":{"varMapping":{"__isSmartRef__":true,"id":13235},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13236},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13235":{"this":{"__isSmartRef__":true,"id":2357}},"13236":{"timestamp":{"__isSmartRef__":true,"id":13237},"user":"soergel","tags":[]},"13237":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"13238":{"varMapping":{"__isSmartRef__":true,"id":13239},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13240},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13239":{"this":{"__isSmartRef__":true,"id":2357}},"13240":{"timestamp":{"__isSmartRef__":true,"id":13241},"user":"jan.sandbrink","tags":[]},"13241":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"13242":{"varMapping":{"__isSmartRef__":true,"id":13243},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":13244},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13243":{"this":{"__isSmartRef__":true,"id":2357}},"13244":{"timestamp":{"__isSmartRef__":true,"id":13245},"user":"jan.sandbrink","tags":[]},"13245":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"13246":{"varMapping":{"__isSmartRef__":true,"id":13247},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13248},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13247":{"this":{"__isSmartRef__":true,"id":2357}},"13248":{"timestamp":{"__isSmartRef__":true,"id":13249},"user":"jan.sandbrink","tags":[]},"13249":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"13250":{"varMapping":{"__isSmartRef__":true,"id":13251},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":13252},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13251":{"this":{"__isSmartRef__":true,"id":2357}},"13252":{"timestamp":{"__isSmartRef__":true,"id":13253},"user":"jan.sandbrink","tags":[]},"13253":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"13254":{"varMapping":{"__isSmartRef__":true,"id":13255},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":13256},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13255":{"this":{"__isSmartRef__":true,"id":2357}},"13256":{"timestamp":{"__isSmartRef__":true,"id":13257},"user":"josi","tags":["gemtypes"]},"13257":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"13258":{"varMapping":{"__isSmartRef__":true,"id":13259},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13260},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13259":{"this":{"__isSmartRef__":true,"id":2357}},"13260":{"timestamp":{"__isSmartRef__":true,"id":13261},"user":"josi","tags":["gemtypes"]},"13261":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13262":{"varMapping":{"__isSmartRef__":true,"id":13263},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13264},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13263":{"this":{"__isSmartRef__":true,"id":2357}},"13264":{"timestamp":{"__isSmartRef__":true,"id":13265},"user":"soergel","tags":["debug"]},"13265":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13266":{"varMapping":{"__isSmartRef__":true,"id":13267},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13268},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13267":{"this":{"__isSmartRef__":true,"id":2357}},"13268":{"timestamp":{"__isSmartRef__":true,"id":13269},"user":"soergel","tags":["debug"]},"13269":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13270":{"varMapping":{"__isSmartRef__":true,"id":13271},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13271":{"this":{"__isSmartRef__":true,"id":2357}},"13272":{"timestamp":{"__isSmartRef__":true,"id":13273},"user":"josi","tags":["gemtypes"]},"13273":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13274":{"varMapping":{"__isSmartRef__":true,"id":13275},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13275":{"this":{"__isSmartRef__":true,"id":2357}},"13276":{"timestamp":{"__isSmartRef__":true,"id":13277},"user":"soergel","tags":[]},"13277":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13278":{"varMapping":{"__isSmartRef__":true,"id":13279},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13280},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13279":{"this":{"__isSmartRef__":true,"id":2357}},"13280":{"timestamp":{"__isSmartRef__":true,"id":13281},"user":"soergel","tags":[]},"13281":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13282":{"varMapping":{"__isSmartRef__":true,"id":13283},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13284},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13283":{"this":{"__isSmartRef__":true,"id":2357}},"13284":{"timestamp":{"__isSmartRef__":true,"id":13285},"user":"soergel","tags":[]},"13285":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13286":{"varMapping":{"__isSmartRef__":true,"id":13287},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13288},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13287":{"this":{"__isSmartRef__":true,"id":2357}},"13288":{"timestamp":{"__isSmartRef__":true,"id":13289},"user":"josi","tags":["gemtypes"]},"13289":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13290":{"varMapping":{"__isSmartRef__":true,"id":13291},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13292},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13291":{"this":{"__isSmartRef__":true,"id":2357}},"13292":{"timestamp":{"__isSmartRef__":true,"id":13293},"user":"josi","tags":["gemtypes"]},"13293":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13294":{"varMapping":{"__isSmartRef__":true,"id":13295},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13296},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13295":{"this":{"__isSmartRef__":true,"id":2357}},"13296":{"timestamp":{"__isSmartRef__":true,"id":13297},"user":"jan.sandbrink","tags":[]},"13297":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13298":{"become":{"__isSmartRef__":true,"id":13299},"onMouseDown":{"__isSmartRef__":true,"id":13303},"updatePicture":{"__isSmartRef__":true,"id":13311},"ruby":{"__isSmartRef__":true,"id":13315},"switchPositionWith":{"__isSmartRef__":true,"id":13319},"addNeighbour":{"__isSmartRef__":true,"id":13323},"amethyst":{"__isSmartRef__":true,"id":13327},"diopside":{"__isSmartRef__":true,"id":13331},"gemTypes":{"__isSmartRef__":true,"id":13335},"becomeRandomGem":{"__isSmartRef__":true,"id":13339},"mark":{"__isSmartRef__":true,"id":13343},"unmark":{"__isSmartRef__":true,"id":13347},"hasNeighbour":{"__isSmartRef__":true,"id":13351},"debugMarkNeighbours":{"__isSmartRef__":true,"id":13355},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":13359},"disappear":{"__isSmartRef__":true,"id":13363},"findStreakStart":{"__isSmartRef__":true,"id":13367},"buildStreak":{"__isSmartRef__":true,"id":13371},"scoreStreak":{"__isSmartRef__":true,"id":13375},"tryToStreak":{"__isSmartRef__":true,"id":13379},"blueDiamond":{"__isSmartRef__":true,"id":13383},"prehnite":{"__isSmartRef__":true,"id":13387},"debugUnmark":{"__isSmartRef__":true,"id":13391},"debugMark":{"__isSmartRef__":true,"id":13395},"citrine":{"__isSmartRef__":true,"id":13399},"move":{"__isSmartRef__":true,"id":13403},"performMovement":{"__isSmartRef__":true,"id":13407},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13411},"zircon":{"__isSmartRef__":true,"id":13415},"emerald":{"__isSmartRef__":true,"id":13419},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13423}},"13299":{"varMapping":{"__isSmartRef__":true,"id":13300},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13301},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13300":{"this":{"__isSmartRef__":true,"id":2239}},"13301":{"timestamp":{"__isSmartRef__":true,"id":13302},"user":"josi","tags":[]},"13302":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13303":{"varMapping":{"__isSmartRef__":true,"id":13304},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13309},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13304":{"this":{"__isSmartRef__":true,"id":2239},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13305}},"13305":{"$super":{"__isSmartRef__":true,"id":13306}},"13306":{"varMapping":{"__isSmartRef__":true,"id":13307},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13308},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13307":{"obj":{"__isSmartRef__":true,"id":2239},"name":"onMouseDown"},"13308":{},"13309":{"timestamp":{"__isSmartRef__":true,"id":13310},"user":"soergel","tags":[]},"13310":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13311":{"varMapping":{"__isSmartRef__":true,"id":13312},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13313},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13312":{"this":{"__isSmartRef__":true,"id":2239}},"13313":{"timestamp":{"__isSmartRef__":true,"id":13314},"user":"soergel","tags":[]},"13314":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13315":{"varMapping":{"__isSmartRef__":true,"id":13316},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13317},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13316":{"this":{"__isSmartRef__":true,"id":2239}},"13317":{"timestamp":{"__isSmartRef__":true,"id":13318},"user":"josi","tags":["gemtypes"]},"13318":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13319":{"varMapping":{"__isSmartRef__":true,"id":13320},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13321},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13320":{"this":{"__isSmartRef__":true,"id":2239}},"13321":{"timestamp":{"__isSmartRef__":true,"id":13322},"user":"jan.sandbrink","tags":[]},"13322":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13323":{"varMapping":{"__isSmartRef__":true,"id":13324},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13324":{"this":{"__isSmartRef__":true,"id":2239}},"13325":{"timestamp":{"__isSmartRef__":true,"id":13326},"user":"jan.sandbrink","tags":[]},"13326":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13327":{"varMapping":{"__isSmartRef__":true,"id":13328},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13328":{"this":{"__isSmartRef__":true,"id":2239}},"13329":{"timestamp":{"__isSmartRef__":true,"id":13330},"user":"josi","tags":["gemtypes"]},"13330":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13331":{"varMapping":{"__isSmartRef__":true,"id":13332},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13332":{"this":{"__isSmartRef__":true,"id":2239}},"13333":{"timestamp":{"__isSmartRef__":true,"id":13334},"user":"josi","tags":["gemtypes"]},"13334":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13335":{"varMapping":{"__isSmartRef__":true,"id":13336},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13336":{"this":{"__isSmartRef__":true,"id":2239}},"13337":{"timestamp":{"__isSmartRef__":true,"id":13338},"user":"josi","tags":[]},"13338":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13339":{"varMapping":{"__isSmartRef__":true,"id":13340},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13340":{"this":{"__isSmartRef__":true,"id":2239}},"13341":{"timestamp":{"__isSmartRef__":true,"id":13342},"user":"josi","tags":[]},"13342":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13343":{"varMapping":{"__isSmartRef__":true,"id":13344},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13344":{"this":{"__isSmartRef__":true,"id":2239}},"13345":{"timestamp":{"__isSmartRef__":true,"id":13346},"user":"soergel","tags":[]},"13346":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13347":{"varMapping":{"__isSmartRef__":true,"id":13348},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13348":{"this":{"__isSmartRef__":true,"id":2239}},"13349":{"timestamp":{"__isSmartRef__":true,"id":13350},"user":"soergel","tags":[]},"13350":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13351":{"varMapping":{"__isSmartRef__":true,"id":13352},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13352":{"this":{"__isSmartRef__":true,"id":2239}},"13353":{"timestamp":{"__isSmartRef__":true,"id":13354},"user":"soergel","tags":[]},"13354":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"13355":{"varMapping":{"__isSmartRef__":true,"id":13356},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13356":{"this":{"__isSmartRef__":true,"id":2239}},"13357":{"timestamp":{"__isSmartRef__":true,"id":13358},"user":"soergel","tags":["debug"]},"13358":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"13359":{"varMapping":{"__isSmartRef__":true,"id":13360},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13361},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13360":{"this":{"__isSmartRef__":true,"id":2239}},"13361":{"timestamp":{"__isSmartRef__":true,"id":13362},"user":"soergel","tags":["debug"]},"13362":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"13363":{"varMapping":{"__isSmartRef__":true,"id":13364},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13365},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13364":{"this":{"__isSmartRef__":true,"id":2239}},"13365":{"timestamp":{"__isSmartRef__":true,"id":13366},"user":"soergel","tags":[]},"13366":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"13367":{"varMapping":{"__isSmartRef__":true,"id":13368},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13369},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13368":{"this":{"__isSmartRef__":true,"id":2239}},"13369":{"timestamp":{"__isSmartRef__":true,"id":13370},"user":"jan.sandbrink","tags":[]},"13370":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"13371":{"varMapping":{"__isSmartRef__":true,"id":13372},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":13373},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13372":{"this":{"__isSmartRef__":true,"id":2239}},"13373":{"timestamp":{"__isSmartRef__":true,"id":13374},"user":"jan.sandbrink","tags":[]},"13374":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"13375":{"varMapping":{"__isSmartRef__":true,"id":13376},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13377},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13376":{"this":{"__isSmartRef__":true,"id":2239}},"13377":{"timestamp":{"__isSmartRef__":true,"id":13378},"user":"jan.sandbrink","tags":[]},"13378":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"13379":{"varMapping":{"__isSmartRef__":true,"id":13380},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":13381},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13380":{"this":{"__isSmartRef__":true,"id":2239}},"13381":{"timestamp":{"__isSmartRef__":true,"id":13382},"user":"jan.sandbrink","tags":[]},"13382":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"13383":{"varMapping":{"__isSmartRef__":true,"id":13384},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":13385},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13384":{"this":{"__isSmartRef__":true,"id":2239}},"13385":{"timestamp":{"__isSmartRef__":true,"id":13386},"user":"josi","tags":["gemtypes"]},"13386":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"13387":{"varMapping":{"__isSmartRef__":true,"id":13388},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13389},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13388":{"this":{"__isSmartRef__":true,"id":2239}},"13389":{"timestamp":{"__isSmartRef__":true,"id":13390},"user":"josi","tags":["gemtypes"]},"13390":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13391":{"varMapping":{"__isSmartRef__":true,"id":13392},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13393},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13392":{"this":{"__isSmartRef__":true,"id":2239}},"13393":{"timestamp":{"__isSmartRef__":true,"id":13394},"user":"soergel","tags":["debug"]},"13394":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13395":{"varMapping":{"__isSmartRef__":true,"id":13396},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13397},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13396":{"this":{"__isSmartRef__":true,"id":2239}},"13397":{"timestamp":{"__isSmartRef__":true,"id":13398},"user":"soergel","tags":["debug"]},"13398":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13399":{"varMapping":{"__isSmartRef__":true,"id":13400},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13401},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13400":{"this":{"__isSmartRef__":true,"id":2239}},"13401":{"timestamp":{"__isSmartRef__":true,"id":13402},"user":"josi","tags":["gemtypes"]},"13402":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13403":{"varMapping":{"__isSmartRef__":true,"id":13404},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13405},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13404":{"this":{"__isSmartRef__":true,"id":2239}},"13405":{"timestamp":{"__isSmartRef__":true,"id":13406},"user":"soergel","tags":[]},"13406":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13407":{"varMapping":{"__isSmartRef__":true,"id":13408},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13409},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13408":{"this":{"__isSmartRef__":true,"id":2239}},"13409":{"timestamp":{"__isSmartRef__":true,"id":13410},"user":"soergel","tags":[]},"13410":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13411":{"varMapping":{"__isSmartRef__":true,"id":13412},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13413},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13412":{"this":{"__isSmartRef__":true,"id":2239}},"13413":{"timestamp":{"__isSmartRef__":true,"id":13414},"user":"soergel","tags":[]},"13414":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13415":{"varMapping":{"__isSmartRef__":true,"id":13416},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13417},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13416":{"this":{"__isSmartRef__":true,"id":2239}},"13417":{"timestamp":{"__isSmartRef__":true,"id":13418},"user":"josi","tags":["gemtypes"]},"13418":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13419":{"varMapping":{"__isSmartRef__":true,"id":13420},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13421},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13420":{"this":{"__isSmartRef__":true,"id":2239}},"13421":{"timestamp":{"__isSmartRef__":true,"id":13422},"user":"josi","tags":["gemtypes"]},"13422":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13423":{"varMapping":{"__isSmartRef__":true,"id":13424},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13425},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13424":{"this":{"__isSmartRef__":true,"id":2239}},"13425":{"timestamp":{"__isSmartRef__":true,"id":13426},"user":"jan.sandbrink","tags":[]},"13426":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13427":{"become":{"__isSmartRef__":true,"id":13428},"onMouseDown":{"__isSmartRef__":true,"id":13432},"updatePicture":{"__isSmartRef__":true,"id":13440},"ruby":{"__isSmartRef__":true,"id":13444},"switchPositionWith":{"__isSmartRef__":true,"id":13448},"addNeighbour":{"__isSmartRef__":true,"id":13452},"amethyst":{"__isSmartRef__":true,"id":13456},"diopside":{"__isSmartRef__":true,"id":13460},"gemTypes":{"__isSmartRef__":true,"id":13464},"becomeRandomGem":{"__isSmartRef__":true,"id":13468},"mark":{"__isSmartRef__":true,"id":13472},"unmark":{"__isSmartRef__":true,"id":13476},"hasNeighbour":{"__isSmartRef__":true,"id":13480},"debugMarkNeighbours":{"__isSmartRef__":true,"id":13484},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":13488},"disappear":{"__isSmartRef__":true,"id":13492},"findStreakStart":{"__isSmartRef__":true,"id":13496},"buildStreak":{"__isSmartRef__":true,"id":13500},"scoreStreak":{"__isSmartRef__":true,"id":13504},"tryToStreak":{"__isSmartRef__":true,"id":13508},"blueDiamond":{"__isSmartRef__":true,"id":13512},"prehnite":{"__isSmartRef__":true,"id":13516},"debugUnmark":{"__isSmartRef__":true,"id":13520},"debugMark":{"__isSmartRef__":true,"id":13524},"citrine":{"__isSmartRef__":true,"id":13528},"move":{"__isSmartRef__":true,"id":13532},"performMovement":{"__isSmartRef__":true,"id":13536},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13540},"zircon":{"__isSmartRef__":true,"id":13544},"emerald":{"__isSmartRef__":true,"id":13548},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13552}},"13428":{"varMapping":{"__isSmartRef__":true,"id":13429},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13430},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13429":{"this":{"__isSmartRef__":true,"id":2147}},"13430":{"timestamp":{"__isSmartRef__":true,"id":13431},"user":"josi","tags":[]},"13431":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13432":{"varMapping":{"__isSmartRef__":true,"id":13433},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13438},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13433":{"this":{"__isSmartRef__":true,"id":2147},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13434}},"13434":{"$super":{"__isSmartRef__":true,"id":13435}},"13435":{"varMapping":{"__isSmartRef__":true,"id":13436},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13437},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13436":{"obj":{"__isSmartRef__":true,"id":2147},"name":"onMouseDown"},"13437":{},"13438":{"timestamp":{"__isSmartRef__":true,"id":13439},"user":"soergel","tags":[]},"13439":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13440":{"varMapping":{"__isSmartRef__":true,"id":13441},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13442},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13441":{"this":{"__isSmartRef__":true,"id":2147}},"13442":{"timestamp":{"__isSmartRef__":true,"id":13443},"user":"soergel","tags":[]},"13443":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13444":{"varMapping":{"__isSmartRef__":true,"id":13445},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13445":{"this":{"__isSmartRef__":true,"id":2147}},"13446":{"timestamp":{"__isSmartRef__":true,"id":13447},"user":"josi","tags":["gemtypes"]},"13447":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13448":{"varMapping":{"__isSmartRef__":true,"id":13449},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13450},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13449":{"this":{"__isSmartRef__":true,"id":2147}},"13450":{"timestamp":{"__isSmartRef__":true,"id":13451},"user":"jan.sandbrink","tags":[]},"13451":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13452":{"varMapping":{"__isSmartRef__":true,"id":13453},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13454},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13453":{"this":{"__isSmartRef__":true,"id":2147}},"13454":{"timestamp":{"__isSmartRef__":true,"id":13455},"user":"jan.sandbrink","tags":[]},"13455":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13456":{"varMapping":{"__isSmartRef__":true,"id":13457},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13458},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13457":{"this":{"__isSmartRef__":true,"id":2147}},"13458":{"timestamp":{"__isSmartRef__":true,"id":13459},"user":"josi","tags":["gemtypes"]},"13459":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13460":{"varMapping":{"__isSmartRef__":true,"id":13461},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13462},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13461":{"this":{"__isSmartRef__":true,"id":2147}},"13462":{"timestamp":{"__isSmartRef__":true,"id":13463},"user":"josi","tags":["gemtypes"]},"13463":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13464":{"varMapping":{"__isSmartRef__":true,"id":13465},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13465":{"this":{"__isSmartRef__":true,"id":2147}},"13466":{"timestamp":{"__isSmartRef__":true,"id":13467},"user":"josi","tags":[]},"13467":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13468":{"varMapping":{"__isSmartRef__":true,"id":13469},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13470},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13469":{"this":{"__isSmartRef__":true,"id":2147}},"13470":{"timestamp":{"__isSmartRef__":true,"id":13471},"user":"josi","tags":[]},"13471":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13472":{"varMapping":{"__isSmartRef__":true,"id":13473},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13474},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13473":{"this":{"__isSmartRef__":true,"id":2147}},"13474":{"timestamp":{"__isSmartRef__":true,"id":13475},"user":"soergel","tags":[]},"13475":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13476":{"varMapping":{"__isSmartRef__":true,"id":13477},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13478},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13477":{"this":{"__isSmartRef__":true,"id":2147}},"13478":{"timestamp":{"__isSmartRef__":true,"id":13479},"user":"soergel","tags":[]},"13479":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13480":{"varMapping":{"__isSmartRef__":true,"id":13481},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13481":{"this":{"__isSmartRef__":true,"id":2147}},"13482":{"timestamp":{"__isSmartRef__":true,"id":13483},"user":"soergel","tags":[]},"13483":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"13484":{"varMapping":{"__isSmartRef__":true,"id":13485},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13486},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13485":{"this":{"__isSmartRef__":true,"id":2147}},"13486":{"timestamp":{"__isSmartRef__":true,"id":13487},"user":"soergel","tags":["debug"]},"13487":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"13488":{"varMapping":{"__isSmartRef__":true,"id":13489},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13490},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13489":{"this":{"__isSmartRef__":true,"id":2147}},"13490":{"timestamp":{"__isSmartRef__":true,"id":13491},"user":"soergel","tags":["debug"]},"13491":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"13492":{"varMapping":{"__isSmartRef__":true,"id":13493},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13494},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13493":{"this":{"__isSmartRef__":true,"id":2147}},"13494":{"timestamp":{"__isSmartRef__":true,"id":13495},"user":"soergel","tags":[]},"13495":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"13496":{"varMapping":{"__isSmartRef__":true,"id":13497},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13498},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13497":{"this":{"__isSmartRef__":true,"id":2147}},"13498":{"timestamp":{"__isSmartRef__":true,"id":13499},"user":"jan.sandbrink","tags":[]},"13499":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"13500":{"varMapping":{"__isSmartRef__":true,"id":13501},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":13502},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13501":{"this":{"__isSmartRef__":true,"id":2147}},"13502":{"timestamp":{"__isSmartRef__":true,"id":13503},"user":"jan.sandbrink","tags":[]},"13503":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"13504":{"varMapping":{"__isSmartRef__":true,"id":13505},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13506},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13505":{"this":{"__isSmartRef__":true,"id":2147}},"13506":{"timestamp":{"__isSmartRef__":true,"id":13507},"user":"jan.sandbrink","tags":[]},"13507":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"13508":{"varMapping":{"__isSmartRef__":true,"id":13509},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":13510},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13509":{"this":{"__isSmartRef__":true,"id":2147}},"13510":{"timestamp":{"__isSmartRef__":true,"id":13511},"user":"jan.sandbrink","tags":[]},"13511":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"13512":{"varMapping":{"__isSmartRef__":true,"id":13513},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":13514},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13513":{"this":{"__isSmartRef__":true,"id":2147}},"13514":{"timestamp":{"__isSmartRef__":true,"id":13515},"user":"josi","tags":["gemtypes"]},"13515":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"13516":{"varMapping":{"__isSmartRef__":true,"id":13517},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13518},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13517":{"this":{"__isSmartRef__":true,"id":2147}},"13518":{"timestamp":{"__isSmartRef__":true,"id":13519},"user":"josi","tags":["gemtypes"]},"13519":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13520":{"varMapping":{"__isSmartRef__":true,"id":13521},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13522},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13521":{"this":{"__isSmartRef__":true,"id":2147}},"13522":{"timestamp":{"__isSmartRef__":true,"id":13523},"user":"soergel","tags":["debug"]},"13523":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13524":{"varMapping":{"__isSmartRef__":true,"id":13525},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13526},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13525":{"this":{"__isSmartRef__":true,"id":2147}},"13526":{"timestamp":{"__isSmartRef__":true,"id":13527},"user":"soergel","tags":["debug"]},"13527":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13528":{"varMapping":{"__isSmartRef__":true,"id":13529},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13530},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13529":{"this":{"__isSmartRef__":true,"id":2147}},"13530":{"timestamp":{"__isSmartRef__":true,"id":13531},"user":"josi","tags":["gemtypes"]},"13531":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13532":{"varMapping":{"__isSmartRef__":true,"id":13533},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13534},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13533":{"this":{"__isSmartRef__":true,"id":2147}},"13534":{"timestamp":{"__isSmartRef__":true,"id":13535},"user":"soergel","tags":[]},"13535":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13536":{"varMapping":{"__isSmartRef__":true,"id":13537},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13538},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13537":{"this":{"__isSmartRef__":true,"id":2147}},"13538":{"timestamp":{"__isSmartRef__":true,"id":13539},"user":"soergel","tags":[]},"13539":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13540":{"varMapping":{"__isSmartRef__":true,"id":13541},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13542},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13541":{"this":{"__isSmartRef__":true,"id":2147}},"13542":{"timestamp":{"__isSmartRef__":true,"id":13543},"user":"soergel","tags":[]},"13543":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13544":{"varMapping":{"__isSmartRef__":true,"id":13545},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13546},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13545":{"this":{"__isSmartRef__":true,"id":2147}},"13546":{"timestamp":{"__isSmartRef__":true,"id":13547},"user":"josi","tags":["gemtypes"]},"13547":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13548":{"varMapping":{"__isSmartRef__":true,"id":13549},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13550},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13549":{"this":{"__isSmartRef__":true,"id":2147}},"13550":{"timestamp":{"__isSmartRef__":true,"id":13551},"user":"josi","tags":["gemtypes"]},"13551":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13552":{"varMapping":{"__isSmartRef__":true,"id":13553},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13554},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13553":{"this":{"__isSmartRef__":true,"id":2147}},"13554":{"timestamp":{"__isSmartRef__":true,"id":13555},"user":"jan.sandbrink","tags":[]},"13555":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13556":{"become":{"__isSmartRef__":true,"id":13557},"onMouseDown":{"__isSmartRef__":true,"id":13561},"updatePicture":{"__isSmartRef__":true,"id":13569},"ruby":{"__isSmartRef__":true,"id":13573},"switchPositionWith":{"__isSmartRef__":true,"id":13577},"addNeighbour":{"__isSmartRef__":true,"id":13581},"amethyst":{"__isSmartRef__":true,"id":13585},"diopside":{"__isSmartRef__":true,"id":13589},"gemTypes":{"__isSmartRef__":true,"id":13593},"becomeRandomGem":{"__isSmartRef__":true,"id":13597},"mark":{"__isSmartRef__":true,"id":13601},"unmark":{"__isSmartRef__":true,"id":13605},"hasNeighbour":{"__isSmartRef__":true,"id":13609},"debugMarkNeighbours":{"__isSmartRef__":true,"id":13613},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":13617},"disappear":{"__isSmartRef__":true,"id":13621},"findStreakStart":{"__isSmartRef__":true,"id":13625},"buildStreak":{"__isSmartRef__":true,"id":13629},"scoreStreak":{"__isSmartRef__":true,"id":13633},"tryToStreak":{"__isSmartRef__":true,"id":13637},"blueDiamond":{"__isSmartRef__":true,"id":13641},"prehnite":{"__isSmartRef__":true,"id":13645},"debugUnmark":{"__isSmartRef__":true,"id":13649},"debugMark":{"__isSmartRef__":true,"id":13653},"citrine":{"__isSmartRef__":true,"id":13657},"move":{"__isSmartRef__":true,"id":13661},"performMovement":{"__isSmartRef__":true,"id":13665},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13669},"zircon":{"__isSmartRef__":true,"id":13673},"emerald":{"__isSmartRef__":true,"id":13677},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13681}},"13557":{"varMapping":{"__isSmartRef__":true,"id":13558},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13559},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13558":{"this":{"__isSmartRef__":true,"id":2029}},"13559":{"timestamp":{"__isSmartRef__":true,"id":13560},"user":"josi","tags":[]},"13560":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13561":{"varMapping":{"__isSmartRef__":true,"id":13562},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13562":{"this":{"__isSmartRef__":true,"id":2029},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13563}},"13563":{"$super":{"__isSmartRef__":true,"id":13564}},"13564":{"varMapping":{"__isSmartRef__":true,"id":13565},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13566},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13565":{"obj":{"__isSmartRef__":true,"id":2029},"name":"onMouseDown"},"13566":{},"13567":{"timestamp":{"__isSmartRef__":true,"id":13568},"user":"soergel","tags":[]},"13568":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13569":{"varMapping":{"__isSmartRef__":true,"id":13570},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13570":{"this":{"__isSmartRef__":true,"id":2029}},"13571":{"timestamp":{"__isSmartRef__":true,"id":13572},"user":"soergel","tags":[]},"13572":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13573":{"varMapping":{"__isSmartRef__":true,"id":13574},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13575},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13574":{"this":{"__isSmartRef__":true,"id":2029}},"13575":{"timestamp":{"__isSmartRef__":true,"id":13576},"user":"josi","tags":["gemtypes"]},"13576":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13577":{"varMapping":{"__isSmartRef__":true,"id":13578},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13578":{"this":{"__isSmartRef__":true,"id":2029}},"13579":{"timestamp":{"__isSmartRef__":true,"id":13580},"user":"jan.sandbrink","tags":[]},"13580":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13581":{"varMapping":{"__isSmartRef__":true,"id":13582},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13582":{"this":{"__isSmartRef__":true,"id":2029}},"13583":{"timestamp":{"__isSmartRef__":true,"id":13584},"user":"jan.sandbrink","tags":[]},"13584":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13585":{"varMapping":{"__isSmartRef__":true,"id":13586},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13587},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13586":{"this":{"__isSmartRef__":true,"id":2029}},"13587":{"timestamp":{"__isSmartRef__":true,"id":13588},"user":"josi","tags":["gemtypes"]},"13588":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13589":{"varMapping":{"__isSmartRef__":true,"id":13590},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13591},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13590":{"this":{"__isSmartRef__":true,"id":2029}},"13591":{"timestamp":{"__isSmartRef__":true,"id":13592},"user":"josi","tags":["gemtypes"]},"13592":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13593":{"varMapping":{"__isSmartRef__":true,"id":13594},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13594":{"this":{"__isSmartRef__":true,"id":2029}},"13595":{"timestamp":{"__isSmartRef__":true,"id":13596},"user":"josi","tags":[]},"13596":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13597":{"varMapping":{"__isSmartRef__":true,"id":13598},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13599},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13598":{"this":{"__isSmartRef__":true,"id":2029}},"13599":{"timestamp":{"__isSmartRef__":true,"id":13600},"user":"josi","tags":[]},"13600":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13601":{"varMapping":{"__isSmartRef__":true,"id":13602},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13603},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13602":{"this":{"__isSmartRef__":true,"id":2029}},"13603":{"timestamp":{"__isSmartRef__":true,"id":13604},"user":"soergel","tags":[]},"13604":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13605":{"varMapping":{"__isSmartRef__":true,"id":13606},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13606":{"this":{"__isSmartRef__":true,"id":2029}},"13607":{"timestamp":{"__isSmartRef__":true,"id":13608},"user":"soergel","tags":[]},"13608":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13609":{"varMapping":{"__isSmartRef__":true,"id":13610},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13611},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13610":{"this":{"__isSmartRef__":true,"id":2029}},"13611":{"timestamp":{"__isSmartRef__":true,"id":13612},"user":"soergel","tags":[]},"13612":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"13613":{"varMapping":{"__isSmartRef__":true,"id":13614},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13614":{"this":{"__isSmartRef__":true,"id":2029}},"13615":{"timestamp":{"__isSmartRef__":true,"id":13616},"user":"soergel","tags":["debug"]},"13616":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"13617":{"varMapping":{"__isSmartRef__":true,"id":13618},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13619},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13618":{"this":{"__isSmartRef__":true,"id":2029}},"13619":{"timestamp":{"__isSmartRef__":true,"id":13620},"user":"soergel","tags":["debug"]},"13620":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"13621":{"varMapping":{"__isSmartRef__":true,"id":13622},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13622":{"this":{"__isSmartRef__":true,"id":2029}},"13623":{"timestamp":{"__isSmartRef__":true,"id":13624},"user":"soergel","tags":[]},"13624":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"13625":{"varMapping":{"__isSmartRef__":true,"id":13626},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13627},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13626":{"this":{"__isSmartRef__":true,"id":2029}},"13627":{"timestamp":{"__isSmartRef__":true,"id":13628},"user":"jan.sandbrink","tags":[]},"13628":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"13629":{"varMapping":{"__isSmartRef__":true,"id":13630},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":13631},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13630":{"this":{"__isSmartRef__":true,"id":2029}},"13631":{"timestamp":{"__isSmartRef__":true,"id":13632},"user":"jan.sandbrink","tags":[]},"13632":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"13633":{"varMapping":{"__isSmartRef__":true,"id":13634},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13635},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13634":{"this":{"__isSmartRef__":true,"id":2029}},"13635":{"timestamp":{"__isSmartRef__":true,"id":13636},"user":"jan.sandbrink","tags":[]},"13636":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"13637":{"varMapping":{"__isSmartRef__":true,"id":13638},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":13639},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13638":{"this":{"__isSmartRef__":true,"id":2029}},"13639":{"timestamp":{"__isSmartRef__":true,"id":13640},"user":"jan.sandbrink","tags":[]},"13640":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"13641":{"varMapping":{"__isSmartRef__":true,"id":13642},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":13643},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13642":{"this":{"__isSmartRef__":true,"id":2029}},"13643":{"timestamp":{"__isSmartRef__":true,"id":13644},"user":"josi","tags":["gemtypes"]},"13644":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"13645":{"varMapping":{"__isSmartRef__":true,"id":13646},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13647},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13646":{"this":{"__isSmartRef__":true,"id":2029}},"13647":{"timestamp":{"__isSmartRef__":true,"id":13648},"user":"josi","tags":["gemtypes"]},"13648":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13649":{"varMapping":{"__isSmartRef__":true,"id":13650},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13651},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13650":{"this":{"__isSmartRef__":true,"id":2029}},"13651":{"timestamp":{"__isSmartRef__":true,"id":13652},"user":"soergel","tags":["debug"]},"13652":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13653":{"varMapping":{"__isSmartRef__":true,"id":13654},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13655},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13654":{"this":{"__isSmartRef__":true,"id":2029}},"13655":{"timestamp":{"__isSmartRef__":true,"id":13656},"user":"soergel","tags":["debug"]},"13656":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13657":{"varMapping":{"__isSmartRef__":true,"id":13658},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13659},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13658":{"this":{"__isSmartRef__":true,"id":2029}},"13659":{"timestamp":{"__isSmartRef__":true,"id":13660},"user":"josi","tags":["gemtypes"]},"13660":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13661":{"varMapping":{"__isSmartRef__":true,"id":13662},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13663},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13662":{"this":{"__isSmartRef__":true,"id":2029}},"13663":{"timestamp":{"__isSmartRef__":true,"id":13664},"user":"soergel","tags":[]},"13664":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13665":{"varMapping":{"__isSmartRef__":true,"id":13666},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13667},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13666":{"this":{"__isSmartRef__":true,"id":2029}},"13667":{"timestamp":{"__isSmartRef__":true,"id":13668},"user":"soergel","tags":[]},"13668":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13669":{"varMapping":{"__isSmartRef__":true,"id":13670},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13671},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13670":{"this":{"__isSmartRef__":true,"id":2029}},"13671":{"timestamp":{"__isSmartRef__":true,"id":13672},"user":"soergel","tags":[]},"13672":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13673":{"varMapping":{"__isSmartRef__":true,"id":13674},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13675},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13674":{"this":{"__isSmartRef__":true,"id":2029}},"13675":{"timestamp":{"__isSmartRef__":true,"id":13676},"user":"josi","tags":["gemtypes"]},"13676":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13677":{"varMapping":{"__isSmartRef__":true,"id":13678},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13679},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13678":{"this":{"__isSmartRef__":true,"id":2029}},"13679":{"timestamp":{"__isSmartRef__":true,"id":13680},"user":"josi","tags":["gemtypes"]},"13680":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13681":{"varMapping":{"__isSmartRef__":true,"id":13682},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13683},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13682":{"this":{"__isSmartRef__":true,"id":2029}},"13683":{"timestamp":{"__isSmartRef__":true,"id":13684},"user":"jan.sandbrink","tags":[]},"13684":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13685":{"become":{"__isSmartRef__":true,"id":13686},"onMouseDown":{"__isSmartRef__":true,"id":13690},"updatePicture":{"__isSmartRef__":true,"id":13698},"ruby":{"__isSmartRef__":true,"id":13702},"switchPositionWith":{"__isSmartRef__":true,"id":13706},"addNeighbour":{"__isSmartRef__":true,"id":13710},"amethyst":{"__isSmartRef__":true,"id":13714},"diopside":{"__isSmartRef__":true,"id":13718},"gemTypes":{"__isSmartRef__":true,"id":13722},"becomeRandomGem":{"__isSmartRef__":true,"id":13726},"mark":{"__isSmartRef__":true,"id":13730},"unmark":{"__isSmartRef__":true,"id":13734},"hasNeighbour":{"__isSmartRef__":true,"id":13738},"debugMarkNeighbours":{"__isSmartRef__":true,"id":13742},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":13746},"disappear":{"__isSmartRef__":true,"id":13750},"findStreakStart":{"__isSmartRef__":true,"id":13754},"buildStreak":{"__isSmartRef__":true,"id":13758},"scoreStreak":{"__isSmartRef__":true,"id":13762},"tryToStreak":{"__isSmartRef__":true,"id":13766},"blueDiamond":{"__isSmartRef__":true,"id":13770},"prehnite":{"__isSmartRef__":true,"id":13774},"debugUnmark":{"__isSmartRef__":true,"id":13778},"debugMark":{"__isSmartRef__":true,"id":13782},"citrine":{"__isSmartRef__":true,"id":13786},"move":{"__isSmartRef__":true,"id":13790},"performMovement":{"__isSmartRef__":true,"id":13794},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13798},"zircon":{"__isSmartRef__":true,"id":13802},"emerald":{"__isSmartRef__":true,"id":13806},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13810}},"13686":{"varMapping":{"__isSmartRef__":true,"id":13687},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13688},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13687":{"this":{"__isSmartRef__":true,"id":1897}},"13688":{"timestamp":{"__isSmartRef__":true,"id":13689},"user":"josi","tags":[]},"13689":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13690":{"varMapping":{"__isSmartRef__":true,"id":13691},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13696},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13691":{"this":{"__isSmartRef__":true,"id":1897},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13692}},"13692":{"$super":{"__isSmartRef__":true,"id":13693}},"13693":{"varMapping":{"__isSmartRef__":true,"id":13694},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13695},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13694":{"obj":{"__isSmartRef__":true,"id":1897},"name":"onMouseDown"},"13695":{},"13696":{"timestamp":{"__isSmartRef__":true,"id":13697},"user":"soergel","tags":[]},"13697":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13698":{"varMapping":{"__isSmartRef__":true,"id":13699},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13700},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13699":{"this":{"__isSmartRef__":true,"id":1897}},"13700":{"timestamp":{"__isSmartRef__":true,"id":13701},"user":"soergel","tags":[]},"13701":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13702":{"varMapping":{"__isSmartRef__":true,"id":13703},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13704},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13703":{"this":{"__isSmartRef__":true,"id":1897}},"13704":{"timestamp":{"__isSmartRef__":true,"id":13705},"user":"josi","tags":["gemtypes"]},"13705":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13706":{"varMapping":{"__isSmartRef__":true,"id":13707},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13708},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13707":{"this":{"__isSmartRef__":true,"id":1897}},"13708":{"timestamp":{"__isSmartRef__":true,"id":13709},"user":"jan.sandbrink","tags":[]},"13709":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13710":{"varMapping":{"__isSmartRef__":true,"id":13711},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13712},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13711":{"this":{"__isSmartRef__":true,"id":1897}},"13712":{"timestamp":{"__isSmartRef__":true,"id":13713},"user":"jan.sandbrink","tags":[]},"13713":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13714":{"varMapping":{"__isSmartRef__":true,"id":13715},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13716},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13715":{"this":{"__isSmartRef__":true,"id":1897}},"13716":{"timestamp":{"__isSmartRef__":true,"id":13717},"user":"josi","tags":["gemtypes"]},"13717":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13718":{"varMapping":{"__isSmartRef__":true,"id":13719},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13720},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13719":{"this":{"__isSmartRef__":true,"id":1897}},"13720":{"timestamp":{"__isSmartRef__":true,"id":13721},"user":"josi","tags":["gemtypes"]},"13721":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13722":{"varMapping":{"__isSmartRef__":true,"id":13723},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13724},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13723":{"this":{"__isSmartRef__":true,"id":1897}},"13724":{"timestamp":{"__isSmartRef__":true,"id":13725},"user":"josi","tags":[]},"13725":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13726":{"varMapping":{"__isSmartRef__":true,"id":13727},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13728},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13727":{"this":{"__isSmartRef__":true,"id":1897}},"13728":{"timestamp":{"__isSmartRef__":true,"id":13729},"user":"josi","tags":[]},"13729":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13730":{"varMapping":{"__isSmartRef__":true,"id":13731},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13732},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13731":{"this":{"__isSmartRef__":true,"id":1897}},"13732":{"timestamp":{"__isSmartRef__":true,"id":13733},"user":"soergel","tags":[]},"13733":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13734":{"varMapping":{"__isSmartRef__":true,"id":13735},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13736},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13735":{"this":{"__isSmartRef__":true,"id":1897}},"13736":{"timestamp":{"__isSmartRef__":true,"id":13737},"user":"soergel","tags":[]},"13737":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13738":{"varMapping":{"__isSmartRef__":true,"id":13739},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13740},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13739":{"this":{"__isSmartRef__":true,"id":1897}},"13740":{"timestamp":{"__isSmartRef__":true,"id":13741},"user":"soergel","tags":[]},"13741":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"13742":{"varMapping":{"__isSmartRef__":true,"id":13743},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13744},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13743":{"this":{"__isSmartRef__":true,"id":1897}},"13744":{"timestamp":{"__isSmartRef__":true,"id":13745},"user":"soergel","tags":["debug"]},"13745":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"13746":{"varMapping":{"__isSmartRef__":true,"id":13747},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13748},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13747":{"this":{"__isSmartRef__":true,"id":1897}},"13748":{"timestamp":{"__isSmartRef__":true,"id":13749},"user":"soergel","tags":["debug"]},"13749":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"13750":{"varMapping":{"__isSmartRef__":true,"id":13751},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13752},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13751":{"this":{"__isSmartRef__":true,"id":1897}},"13752":{"timestamp":{"__isSmartRef__":true,"id":13753},"user":"soergel","tags":[]},"13753":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"13754":{"varMapping":{"__isSmartRef__":true,"id":13755},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13756},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13755":{"this":{"__isSmartRef__":true,"id":1897}},"13756":{"timestamp":{"__isSmartRef__":true,"id":13757},"user":"jan.sandbrink","tags":[]},"13757":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"13758":{"varMapping":{"__isSmartRef__":true,"id":13759},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":13760},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13759":{"this":{"__isSmartRef__":true,"id":1897}},"13760":{"timestamp":{"__isSmartRef__":true,"id":13761},"user":"jan.sandbrink","tags":[]},"13761":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"13762":{"varMapping":{"__isSmartRef__":true,"id":13763},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13764},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13763":{"this":{"__isSmartRef__":true,"id":1897}},"13764":{"timestamp":{"__isSmartRef__":true,"id":13765},"user":"jan.sandbrink","tags":[]},"13765":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"13766":{"varMapping":{"__isSmartRef__":true,"id":13767},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":13768},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13767":{"this":{"__isSmartRef__":true,"id":1897}},"13768":{"timestamp":{"__isSmartRef__":true,"id":13769},"user":"jan.sandbrink","tags":[]},"13769":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"13770":{"varMapping":{"__isSmartRef__":true,"id":13771},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":13772},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13771":{"this":{"__isSmartRef__":true,"id":1897}},"13772":{"timestamp":{"__isSmartRef__":true,"id":13773},"user":"josi","tags":["gemtypes"]},"13773":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"13774":{"varMapping":{"__isSmartRef__":true,"id":13775},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13775":{"this":{"__isSmartRef__":true,"id":1897}},"13776":{"timestamp":{"__isSmartRef__":true,"id":13777},"user":"josi","tags":["gemtypes"]},"13777":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13778":{"varMapping":{"__isSmartRef__":true,"id":13779},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13780},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13779":{"this":{"__isSmartRef__":true,"id":1897}},"13780":{"timestamp":{"__isSmartRef__":true,"id":13781},"user":"soergel","tags":["debug"]},"13781":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13782":{"varMapping":{"__isSmartRef__":true,"id":13783},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13784},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13783":{"this":{"__isSmartRef__":true,"id":1897}},"13784":{"timestamp":{"__isSmartRef__":true,"id":13785},"user":"soergel","tags":["debug"]},"13785":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13786":{"varMapping":{"__isSmartRef__":true,"id":13787},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13788},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13787":{"this":{"__isSmartRef__":true,"id":1897}},"13788":{"timestamp":{"__isSmartRef__":true,"id":13789},"user":"josi","tags":["gemtypes"]},"13789":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13790":{"varMapping":{"__isSmartRef__":true,"id":13791},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13792},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13791":{"this":{"__isSmartRef__":true,"id":1897}},"13792":{"timestamp":{"__isSmartRef__":true,"id":13793},"user":"soergel","tags":[]},"13793":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13794":{"varMapping":{"__isSmartRef__":true,"id":13795},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13796},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13795":{"this":{"__isSmartRef__":true,"id":1897}},"13796":{"timestamp":{"__isSmartRef__":true,"id":13797},"user":"soergel","tags":[]},"13797":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13798":{"varMapping":{"__isSmartRef__":true,"id":13799},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13800},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13799":{"this":{"__isSmartRef__":true,"id":1897}},"13800":{"timestamp":{"__isSmartRef__":true,"id":13801},"user":"soergel","tags":[]},"13801":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13802":{"varMapping":{"__isSmartRef__":true,"id":13803},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13804},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13803":{"this":{"__isSmartRef__":true,"id":1897}},"13804":{"timestamp":{"__isSmartRef__":true,"id":13805},"user":"josi","tags":["gemtypes"]},"13805":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13806":{"varMapping":{"__isSmartRef__":true,"id":13807},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13808},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13807":{"this":{"__isSmartRef__":true,"id":1897}},"13808":{"timestamp":{"__isSmartRef__":true,"id":13809},"user":"josi","tags":["gemtypes"]},"13809":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13810":{"varMapping":{"__isSmartRef__":true,"id":13811},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13812},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13811":{"this":{"__isSmartRef__":true,"id":1897}},"13812":{"timestamp":{"__isSmartRef__":true,"id":13813},"user":"jan.sandbrink","tags":[]},"13813":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13814":{"become":{"__isSmartRef__":true,"id":13815},"onMouseDown":{"__isSmartRef__":true,"id":13819},"updatePicture":{"__isSmartRef__":true,"id":13827},"ruby":{"__isSmartRef__":true,"id":13831},"switchPositionWith":{"__isSmartRef__":true,"id":13835},"addNeighbour":{"__isSmartRef__":true,"id":13839},"amethyst":{"__isSmartRef__":true,"id":13843},"diopside":{"__isSmartRef__":true,"id":13847},"gemTypes":{"__isSmartRef__":true,"id":13851},"becomeRandomGem":{"__isSmartRef__":true,"id":13855},"mark":{"__isSmartRef__":true,"id":13859},"unmark":{"__isSmartRef__":true,"id":13863},"hasNeighbour":{"__isSmartRef__":true,"id":13867},"debugMarkNeighbours":{"__isSmartRef__":true,"id":13871},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":13875},"disappear":{"__isSmartRef__":true,"id":13879},"findStreakStart":{"__isSmartRef__":true,"id":13883},"buildStreak":{"__isSmartRef__":true,"id":13887},"scoreStreak":{"__isSmartRef__":true,"id":13891},"tryToStreak":{"__isSmartRef__":true,"id":13895},"blueDiamond":{"__isSmartRef__":true,"id":13899},"prehnite":{"__isSmartRef__":true,"id":13903},"debugUnmark":{"__isSmartRef__":true,"id":13907},"debugMark":{"__isSmartRef__":true,"id":13911},"citrine":{"__isSmartRef__":true,"id":13915},"move":{"__isSmartRef__":true,"id":13919},"performMovement":{"__isSmartRef__":true,"id":13923},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":13927},"zircon":{"__isSmartRef__":true,"id":13931},"emerald":{"__isSmartRef__":true,"id":13935},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":13939}},"13815":{"varMapping":{"__isSmartRef__":true,"id":13816},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13817},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13816":{"this":{"__isSmartRef__":true,"id":1765}},"13817":{"timestamp":{"__isSmartRef__":true,"id":13818},"user":"josi","tags":[]},"13818":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13819":{"varMapping":{"__isSmartRef__":true,"id":13820},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13825},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13820":{"this":{"__isSmartRef__":true,"id":1765},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13821}},"13821":{"$super":{"__isSmartRef__":true,"id":13822}},"13822":{"varMapping":{"__isSmartRef__":true,"id":13823},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13824},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13823":{"obj":{"__isSmartRef__":true,"id":1765},"name":"onMouseDown"},"13824":{},"13825":{"timestamp":{"__isSmartRef__":true,"id":13826},"user":"soergel","tags":[]},"13826":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13827":{"varMapping":{"__isSmartRef__":true,"id":13828},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13829},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13828":{"this":{"__isSmartRef__":true,"id":1765}},"13829":{"timestamp":{"__isSmartRef__":true,"id":13830},"user":"soergel","tags":[]},"13830":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13831":{"varMapping":{"__isSmartRef__":true,"id":13832},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13833},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13832":{"this":{"__isSmartRef__":true,"id":1765}},"13833":{"timestamp":{"__isSmartRef__":true,"id":13834},"user":"josi","tags":["gemtypes"]},"13834":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13835":{"varMapping":{"__isSmartRef__":true,"id":13836},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13837},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13836":{"this":{"__isSmartRef__":true,"id":1765}},"13837":{"timestamp":{"__isSmartRef__":true,"id":13838},"user":"jan.sandbrink","tags":[]},"13838":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13839":{"varMapping":{"__isSmartRef__":true,"id":13840},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13841},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13840":{"this":{"__isSmartRef__":true,"id":1765}},"13841":{"timestamp":{"__isSmartRef__":true,"id":13842},"user":"jan.sandbrink","tags":[]},"13842":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13843":{"varMapping":{"__isSmartRef__":true,"id":13844},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13845},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13844":{"this":{"__isSmartRef__":true,"id":1765}},"13845":{"timestamp":{"__isSmartRef__":true,"id":13846},"user":"josi","tags":["gemtypes"]},"13846":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13847":{"varMapping":{"__isSmartRef__":true,"id":13848},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13849},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13848":{"this":{"__isSmartRef__":true,"id":1765}},"13849":{"timestamp":{"__isSmartRef__":true,"id":13850},"user":"josi","tags":["gemtypes"]},"13850":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13851":{"varMapping":{"__isSmartRef__":true,"id":13852},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13853},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13852":{"this":{"__isSmartRef__":true,"id":1765}},"13853":{"timestamp":{"__isSmartRef__":true,"id":13854},"user":"josi","tags":[]},"13854":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13855":{"varMapping":{"__isSmartRef__":true,"id":13856},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13857},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13856":{"this":{"__isSmartRef__":true,"id":1765}},"13857":{"timestamp":{"__isSmartRef__":true,"id":13858},"user":"josi","tags":[]},"13858":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13859":{"varMapping":{"__isSmartRef__":true,"id":13860},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13861},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13860":{"this":{"__isSmartRef__":true,"id":1765}},"13861":{"timestamp":{"__isSmartRef__":true,"id":13862},"user":"soergel","tags":[]},"13862":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13863":{"varMapping":{"__isSmartRef__":true,"id":13864},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13865},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13864":{"this":{"__isSmartRef__":true,"id":1765}},"13865":{"timestamp":{"__isSmartRef__":true,"id":13866},"user":"soergel","tags":[]},"13866":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13867":{"varMapping":{"__isSmartRef__":true,"id":13868},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13869},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13868":{"this":{"__isSmartRef__":true,"id":1765}},"13869":{"timestamp":{"__isSmartRef__":true,"id":13870},"user":"soergel","tags":[]},"13870":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"13871":{"varMapping":{"__isSmartRef__":true,"id":13872},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13873},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13872":{"this":{"__isSmartRef__":true,"id":1765}},"13873":{"timestamp":{"__isSmartRef__":true,"id":13874},"user":"soergel","tags":["debug"]},"13874":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"13875":{"varMapping":{"__isSmartRef__":true,"id":13876},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":13877},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13876":{"this":{"__isSmartRef__":true,"id":1765}},"13877":{"timestamp":{"__isSmartRef__":true,"id":13878},"user":"soergel","tags":["debug"]},"13878":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"13879":{"varMapping":{"__isSmartRef__":true,"id":13880},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13881},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13880":{"this":{"__isSmartRef__":true,"id":1765}},"13881":{"timestamp":{"__isSmartRef__":true,"id":13882},"user":"soergel","tags":[]},"13882":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"13883":{"varMapping":{"__isSmartRef__":true,"id":13884},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13885},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13884":{"this":{"__isSmartRef__":true,"id":1765}},"13885":{"timestamp":{"__isSmartRef__":true,"id":13886},"user":"jan.sandbrink","tags":[]},"13886":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"13887":{"varMapping":{"__isSmartRef__":true,"id":13888},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":13889},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13888":{"this":{"__isSmartRef__":true,"id":1765}},"13889":{"timestamp":{"__isSmartRef__":true,"id":13890},"user":"jan.sandbrink","tags":[]},"13890":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"13891":{"varMapping":{"__isSmartRef__":true,"id":13892},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":13893},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13892":{"this":{"__isSmartRef__":true,"id":1765}},"13893":{"timestamp":{"__isSmartRef__":true,"id":13894},"user":"jan.sandbrink","tags":[]},"13894":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"13895":{"varMapping":{"__isSmartRef__":true,"id":13896},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":13897},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13896":{"this":{"__isSmartRef__":true,"id":1765}},"13897":{"timestamp":{"__isSmartRef__":true,"id":13898},"user":"jan.sandbrink","tags":[]},"13898":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"13899":{"varMapping":{"__isSmartRef__":true,"id":13900},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":13901},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13900":{"this":{"__isSmartRef__":true,"id":1765}},"13901":{"timestamp":{"__isSmartRef__":true,"id":13902},"user":"josi","tags":["gemtypes"]},"13902":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"13903":{"varMapping":{"__isSmartRef__":true,"id":13904},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":13905},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13904":{"this":{"__isSmartRef__":true,"id":1765}},"13905":{"timestamp":{"__isSmartRef__":true,"id":13906},"user":"josi","tags":["gemtypes"]},"13906":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"13907":{"varMapping":{"__isSmartRef__":true,"id":13908},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":13909},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13908":{"this":{"__isSmartRef__":true,"id":1765}},"13909":{"timestamp":{"__isSmartRef__":true,"id":13910},"user":"soergel","tags":["debug"]},"13910":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"13911":{"varMapping":{"__isSmartRef__":true,"id":13912},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":13913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13912":{"this":{"__isSmartRef__":true,"id":1765}},"13913":{"timestamp":{"__isSmartRef__":true,"id":13914},"user":"soergel","tags":["debug"]},"13914":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"13915":{"varMapping":{"__isSmartRef__":true,"id":13916},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":13917},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13916":{"this":{"__isSmartRef__":true,"id":1765}},"13917":{"timestamp":{"__isSmartRef__":true,"id":13918},"user":"josi","tags":["gemtypes"]},"13918":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"13919":{"varMapping":{"__isSmartRef__":true,"id":13920},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":13921},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13920":{"this":{"__isSmartRef__":true,"id":1765}},"13921":{"timestamp":{"__isSmartRef__":true,"id":13922},"user":"soergel","tags":[]},"13922":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"13923":{"varMapping":{"__isSmartRef__":true,"id":13924},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":13925},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13924":{"this":{"__isSmartRef__":true,"id":1765}},"13925":{"timestamp":{"__isSmartRef__":true,"id":13926},"user":"soergel","tags":[]},"13926":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"13927":{"varMapping":{"__isSmartRef__":true,"id":13928},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":13929},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13928":{"this":{"__isSmartRef__":true,"id":1765}},"13929":{"timestamp":{"__isSmartRef__":true,"id":13930},"user":"soergel","tags":[]},"13930":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"13931":{"varMapping":{"__isSmartRef__":true,"id":13932},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":13933},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13932":{"this":{"__isSmartRef__":true,"id":1765}},"13933":{"timestamp":{"__isSmartRef__":true,"id":13934},"user":"josi","tags":["gemtypes"]},"13934":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"13935":{"varMapping":{"__isSmartRef__":true,"id":13936},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":13937},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13936":{"this":{"__isSmartRef__":true,"id":1765}},"13937":{"timestamp":{"__isSmartRef__":true,"id":13938},"user":"josi","tags":["gemtypes"]},"13938":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"13939":{"varMapping":{"__isSmartRef__":true,"id":13940},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":13941},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13940":{"this":{"__isSmartRef__":true,"id":1765}},"13941":{"timestamp":{"__isSmartRef__":true,"id":13942},"user":"jan.sandbrink","tags":[]},"13942":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"13943":{"become":{"__isSmartRef__":true,"id":13944},"onMouseDown":{"__isSmartRef__":true,"id":13948},"updatePicture":{"__isSmartRef__":true,"id":13956},"ruby":{"__isSmartRef__":true,"id":13960},"switchPositionWith":{"__isSmartRef__":true,"id":13964},"addNeighbour":{"__isSmartRef__":true,"id":13968},"amethyst":{"__isSmartRef__":true,"id":13972},"diopside":{"__isSmartRef__":true,"id":13976},"gemTypes":{"__isSmartRef__":true,"id":13980},"becomeRandomGem":{"__isSmartRef__":true,"id":13984},"mark":{"__isSmartRef__":true,"id":13988},"unmark":{"__isSmartRef__":true,"id":13992},"hasNeighbour":{"__isSmartRef__":true,"id":13996},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14000},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14004},"disappear":{"__isSmartRef__":true,"id":14008},"findStreakStart":{"__isSmartRef__":true,"id":14012},"buildStreak":{"__isSmartRef__":true,"id":14016},"scoreStreak":{"__isSmartRef__":true,"id":14020},"tryToStreak":{"__isSmartRef__":true,"id":14024},"blueDiamond":{"__isSmartRef__":true,"id":14028},"prehnite":{"__isSmartRef__":true,"id":14032},"debugUnmark":{"__isSmartRef__":true,"id":14036},"debugMark":{"__isSmartRef__":true,"id":14040},"citrine":{"__isSmartRef__":true,"id":14044},"move":{"__isSmartRef__":true,"id":14048},"performMovement":{"__isSmartRef__":true,"id":14052},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14056},"zircon":{"__isSmartRef__":true,"id":14060},"emerald":{"__isSmartRef__":true,"id":14064},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14068}},"13944":{"varMapping":{"__isSmartRef__":true,"id":13945},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13946},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13945":{"this":{"__isSmartRef__":true,"id":1673}},"13946":{"timestamp":{"__isSmartRef__":true,"id":13947},"user":"josi","tags":[]},"13947":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"13948":{"varMapping":{"__isSmartRef__":true,"id":13949},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":13954},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13949":{"this":{"__isSmartRef__":true,"id":1673},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":13950}},"13950":{"$super":{"__isSmartRef__":true,"id":13951}},"13951":{"varMapping":{"__isSmartRef__":true,"id":13952},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":13953},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13952":{"obj":{"__isSmartRef__":true,"id":1673},"name":"onMouseDown"},"13953":{},"13954":{"timestamp":{"__isSmartRef__":true,"id":13955},"user":"soergel","tags":[]},"13955":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"13956":{"varMapping":{"__isSmartRef__":true,"id":13957},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":13958},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13957":{"this":{"__isSmartRef__":true,"id":1673}},"13958":{"timestamp":{"__isSmartRef__":true,"id":13959},"user":"soergel","tags":[]},"13959":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"13960":{"varMapping":{"__isSmartRef__":true,"id":13961},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":13962},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13961":{"this":{"__isSmartRef__":true,"id":1673}},"13962":{"timestamp":{"__isSmartRef__":true,"id":13963},"user":"josi","tags":["gemtypes"]},"13963":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"13964":{"varMapping":{"__isSmartRef__":true,"id":13965},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":13966},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13965":{"this":{"__isSmartRef__":true,"id":1673}},"13966":{"timestamp":{"__isSmartRef__":true,"id":13967},"user":"jan.sandbrink","tags":[]},"13967":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"13968":{"varMapping":{"__isSmartRef__":true,"id":13969},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13970},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13969":{"this":{"__isSmartRef__":true,"id":1673}},"13970":{"timestamp":{"__isSmartRef__":true,"id":13971},"user":"jan.sandbrink","tags":[]},"13971":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"13972":{"varMapping":{"__isSmartRef__":true,"id":13973},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":13974},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13973":{"this":{"__isSmartRef__":true,"id":1673}},"13974":{"timestamp":{"__isSmartRef__":true,"id":13975},"user":"josi","tags":["gemtypes"]},"13975":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"13976":{"varMapping":{"__isSmartRef__":true,"id":13977},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":13978},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13977":{"this":{"__isSmartRef__":true,"id":1673}},"13978":{"timestamp":{"__isSmartRef__":true,"id":13979},"user":"josi","tags":["gemtypes"]},"13979":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"13980":{"varMapping":{"__isSmartRef__":true,"id":13981},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":13982},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13981":{"this":{"__isSmartRef__":true,"id":1673}},"13982":{"timestamp":{"__isSmartRef__":true,"id":13983},"user":"josi","tags":[]},"13983":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"13984":{"varMapping":{"__isSmartRef__":true,"id":13985},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":13986},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13985":{"this":{"__isSmartRef__":true,"id":1673}},"13986":{"timestamp":{"__isSmartRef__":true,"id":13987},"user":"josi","tags":[]},"13987":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"13988":{"varMapping":{"__isSmartRef__":true,"id":13989},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":13990},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13989":{"this":{"__isSmartRef__":true,"id":1673}},"13990":{"timestamp":{"__isSmartRef__":true,"id":13991},"user":"soergel","tags":[]},"13991":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"13992":{"varMapping":{"__isSmartRef__":true,"id":13993},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":13994},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13993":{"this":{"__isSmartRef__":true,"id":1673}},"13994":{"timestamp":{"__isSmartRef__":true,"id":13995},"user":"soergel","tags":[]},"13995":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"13996":{"varMapping":{"__isSmartRef__":true,"id":13997},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":13998},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"13997":{"this":{"__isSmartRef__":true,"id":1673}},"13998":{"timestamp":{"__isSmartRef__":true,"id":13999},"user":"soergel","tags":[]},"13999":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14000":{"varMapping":{"__isSmartRef__":true,"id":14001},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14002},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14001":{"this":{"__isSmartRef__":true,"id":1673}},"14002":{"timestamp":{"__isSmartRef__":true,"id":14003},"user":"soergel","tags":["debug"]},"14003":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14004":{"varMapping":{"__isSmartRef__":true,"id":14005},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14006},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14005":{"this":{"__isSmartRef__":true,"id":1673}},"14006":{"timestamp":{"__isSmartRef__":true,"id":14007},"user":"soergel","tags":["debug"]},"14007":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14008":{"varMapping":{"__isSmartRef__":true,"id":14009},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14010},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14009":{"this":{"__isSmartRef__":true,"id":1673}},"14010":{"timestamp":{"__isSmartRef__":true,"id":14011},"user":"soergel","tags":[]},"14011":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14012":{"varMapping":{"__isSmartRef__":true,"id":14013},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14014},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14013":{"this":{"__isSmartRef__":true,"id":1673}},"14014":{"timestamp":{"__isSmartRef__":true,"id":14015},"user":"jan.sandbrink","tags":[]},"14015":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14016":{"varMapping":{"__isSmartRef__":true,"id":14017},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14018},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14017":{"this":{"__isSmartRef__":true,"id":1673}},"14018":{"timestamp":{"__isSmartRef__":true,"id":14019},"user":"jan.sandbrink","tags":[]},"14019":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14020":{"varMapping":{"__isSmartRef__":true,"id":14021},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14022},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14021":{"this":{"__isSmartRef__":true,"id":1673}},"14022":{"timestamp":{"__isSmartRef__":true,"id":14023},"user":"jan.sandbrink","tags":[]},"14023":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14024":{"varMapping":{"__isSmartRef__":true,"id":14025},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14026},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14025":{"this":{"__isSmartRef__":true,"id":1673}},"14026":{"timestamp":{"__isSmartRef__":true,"id":14027},"user":"jan.sandbrink","tags":[]},"14027":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14028":{"varMapping":{"__isSmartRef__":true,"id":14029},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14030},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14029":{"this":{"__isSmartRef__":true,"id":1673}},"14030":{"timestamp":{"__isSmartRef__":true,"id":14031},"user":"josi","tags":["gemtypes"]},"14031":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14032":{"varMapping":{"__isSmartRef__":true,"id":14033},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14034},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14033":{"this":{"__isSmartRef__":true,"id":1673}},"14034":{"timestamp":{"__isSmartRef__":true,"id":14035},"user":"josi","tags":["gemtypes"]},"14035":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14036":{"varMapping":{"__isSmartRef__":true,"id":14037},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14038},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14037":{"this":{"__isSmartRef__":true,"id":1673}},"14038":{"timestamp":{"__isSmartRef__":true,"id":14039},"user":"soergel","tags":["debug"]},"14039":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14040":{"varMapping":{"__isSmartRef__":true,"id":14041},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14042},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14041":{"this":{"__isSmartRef__":true,"id":1673}},"14042":{"timestamp":{"__isSmartRef__":true,"id":14043},"user":"soergel","tags":["debug"]},"14043":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14044":{"varMapping":{"__isSmartRef__":true,"id":14045},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14046},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14045":{"this":{"__isSmartRef__":true,"id":1673}},"14046":{"timestamp":{"__isSmartRef__":true,"id":14047},"user":"josi","tags":["gemtypes"]},"14047":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14048":{"varMapping":{"__isSmartRef__":true,"id":14049},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14050},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14049":{"this":{"__isSmartRef__":true,"id":1673}},"14050":{"timestamp":{"__isSmartRef__":true,"id":14051},"user":"soergel","tags":[]},"14051":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14052":{"varMapping":{"__isSmartRef__":true,"id":14053},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14054},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14053":{"this":{"__isSmartRef__":true,"id":1673}},"14054":{"timestamp":{"__isSmartRef__":true,"id":14055},"user":"soergel","tags":[]},"14055":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14056":{"varMapping":{"__isSmartRef__":true,"id":14057},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14058},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14057":{"this":{"__isSmartRef__":true,"id":1673}},"14058":{"timestamp":{"__isSmartRef__":true,"id":14059},"user":"soergel","tags":[]},"14059":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14060":{"varMapping":{"__isSmartRef__":true,"id":14061},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14062},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14061":{"this":{"__isSmartRef__":true,"id":1673}},"14062":{"timestamp":{"__isSmartRef__":true,"id":14063},"user":"josi","tags":["gemtypes"]},"14063":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14064":{"varMapping":{"__isSmartRef__":true,"id":14065},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14066},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14065":{"this":{"__isSmartRef__":true,"id":1673}},"14066":{"timestamp":{"__isSmartRef__":true,"id":14067},"user":"josi","tags":["gemtypes"]},"14067":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14068":{"varMapping":{"__isSmartRef__":true,"id":14069},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14070},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14069":{"this":{"__isSmartRef__":true,"id":1673}},"14070":{"timestamp":{"__isSmartRef__":true,"id":14071},"user":"jan.sandbrink","tags":[]},"14071":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14072":{"x":148.61108261184663,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"14073":{"become":{"__isSmartRef__":true,"id":14074},"onMouseDown":{"__isSmartRef__":true,"id":14078},"updatePicture":{"__isSmartRef__":true,"id":14086},"ruby":{"__isSmartRef__":true,"id":14090},"switchPositionWith":{"__isSmartRef__":true,"id":14094},"addNeighbour":{"__isSmartRef__":true,"id":14098},"amethyst":{"__isSmartRef__":true,"id":14102},"diopside":{"__isSmartRef__":true,"id":14106},"gemTypes":{"__isSmartRef__":true,"id":14110},"becomeRandomGem":{"__isSmartRef__":true,"id":14114},"mark":{"__isSmartRef__":true,"id":14118},"unmark":{"__isSmartRef__":true,"id":14122},"hasNeighbour":{"__isSmartRef__":true,"id":14126},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14130},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14134},"disappear":{"__isSmartRef__":true,"id":14138},"findStreakStart":{"__isSmartRef__":true,"id":14142},"buildStreak":{"__isSmartRef__":true,"id":14146},"scoreStreak":{"__isSmartRef__":true,"id":14150},"tryToStreak":{"__isSmartRef__":true,"id":14154},"blueDiamond":{"__isSmartRef__":true,"id":14158},"prehnite":{"__isSmartRef__":true,"id":14162},"debugUnmark":{"__isSmartRef__":true,"id":14166},"debugMark":{"__isSmartRef__":true,"id":14170},"citrine":{"__isSmartRef__":true,"id":14174},"move":{"__isSmartRef__":true,"id":14178},"performMovement":{"__isSmartRef__":true,"id":14182},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14186},"zircon":{"__isSmartRef__":true,"id":14190},"emerald":{"__isSmartRef__":true,"id":14194},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14198}},"14074":{"varMapping":{"__isSmartRef__":true,"id":14075},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14076},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14075":{"this":{"__isSmartRef__":true,"id":1581}},"14076":{"timestamp":{"__isSmartRef__":true,"id":14077},"user":"josi","tags":[]},"14077":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14078":{"varMapping":{"__isSmartRef__":true,"id":14079},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14084},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14079":{"this":{"__isSmartRef__":true,"id":1581},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14080}},"14080":{"$super":{"__isSmartRef__":true,"id":14081}},"14081":{"varMapping":{"__isSmartRef__":true,"id":14082},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14083},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14082":{"obj":{"__isSmartRef__":true,"id":1581},"name":"onMouseDown"},"14083":{},"14084":{"timestamp":{"__isSmartRef__":true,"id":14085},"user":"soergel","tags":[]},"14085":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14086":{"varMapping":{"__isSmartRef__":true,"id":14087},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14088},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14087":{"this":{"__isSmartRef__":true,"id":1581}},"14088":{"timestamp":{"__isSmartRef__":true,"id":14089},"user":"soergel","tags":[]},"14089":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14090":{"varMapping":{"__isSmartRef__":true,"id":14091},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14092},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14091":{"this":{"__isSmartRef__":true,"id":1581}},"14092":{"timestamp":{"__isSmartRef__":true,"id":14093},"user":"josi","tags":["gemtypes"]},"14093":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"14094":{"varMapping":{"__isSmartRef__":true,"id":14095},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14096},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14095":{"this":{"__isSmartRef__":true,"id":1581}},"14096":{"timestamp":{"__isSmartRef__":true,"id":14097},"user":"jan.sandbrink","tags":[]},"14097":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"14098":{"varMapping":{"__isSmartRef__":true,"id":14099},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14100},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14099":{"this":{"__isSmartRef__":true,"id":1581}},"14100":{"timestamp":{"__isSmartRef__":true,"id":14101},"user":"jan.sandbrink","tags":[]},"14101":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"14102":{"varMapping":{"__isSmartRef__":true,"id":14103},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":14104},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14103":{"this":{"__isSmartRef__":true,"id":1581}},"14104":{"timestamp":{"__isSmartRef__":true,"id":14105},"user":"josi","tags":["gemtypes"]},"14105":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"14106":{"varMapping":{"__isSmartRef__":true,"id":14107},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":14108},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14107":{"this":{"__isSmartRef__":true,"id":1581}},"14108":{"timestamp":{"__isSmartRef__":true,"id":14109},"user":"josi","tags":["gemtypes"]},"14109":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"14110":{"varMapping":{"__isSmartRef__":true,"id":14111},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":14112},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14111":{"this":{"__isSmartRef__":true,"id":1581}},"14112":{"timestamp":{"__isSmartRef__":true,"id":14113},"user":"josi","tags":[]},"14113":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"14114":{"varMapping":{"__isSmartRef__":true,"id":14115},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":14116},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14115":{"this":{"__isSmartRef__":true,"id":1581}},"14116":{"timestamp":{"__isSmartRef__":true,"id":14117},"user":"josi","tags":[]},"14117":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"14118":{"varMapping":{"__isSmartRef__":true,"id":14119},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14120},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14119":{"this":{"__isSmartRef__":true,"id":1581}},"14120":{"timestamp":{"__isSmartRef__":true,"id":14121},"user":"soergel","tags":[]},"14121":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"14122":{"varMapping":{"__isSmartRef__":true,"id":14123},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14124},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14123":{"this":{"__isSmartRef__":true,"id":1581}},"14124":{"timestamp":{"__isSmartRef__":true,"id":14125},"user":"soergel","tags":[]},"14125":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"14126":{"varMapping":{"__isSmartRef__":true,"id":14127},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":14128},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14127":{"this":{"__isSmartRef__":true,"id":1581}},"14128":{"timestamp":{"__isSmartRef__":true,"id":14129},"user":"soergel","tags":[]},"14129":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14130":{"varMapping":{"__isSmartRef__":true,"id":14131},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14132},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14131":{"this":{"__isSmartRef__":true,"id":1581}},"14132":{"timestamp":{"__isSmartRef__":true,"id":14133},"user":"soergel","tags":["debug"]},"14133":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14134":{"varMapping":{"__isSmartRef__":true,"id":14135},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14136},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14135":{"this":{"__isSmartRef__":true,"id":1581}},"14136":{"timestamp":{"__isSmartRef__":true,"id":14137},"user":"soergel","tags":["debug"]},"14137":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14138":{"varMapping":{"__isSmartRef__":true,"id":14139},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14140},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14139":{"this":{"__isSmartRef__":true,"id":1581}},"14140":{"timestamp":{"__isSmartRef__":true,"id":14141},"user":"soergel","tags":[]},"14141":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14142":{"varMapping":{"__isSmartRef__":true,"id":14143},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14144},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14143":{"this":{"__isSmartRef__":true,"id":1581}},"14144":{"timestamp":{"__isSmartRef__":true,"id":14145},"user":"jan.sandbrink","tags":[]},"14145":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14146":{"varMapping":{"__isSmartRef__":true,"id":14147},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14148},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14147":{"this":{"__isSmartRef__":true,"id":1581}},"14148":{"timestamp":{"__isSmartRef__":true,"id":14149},"user":"jan.sandbrink","tags":[]},"14149":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14150":{"varMapping":{"__isSmartRef__":true,"id":14151},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14152},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14151":{"this":{"__isSmartRef__":true,"id":1581}},"14152":{"timestamp":{"__isSmartRef__":true,"id":14153},"user":"jan.sandbrink","tags":[]},"14153":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14154":{"varMapping":{"__isSmartRef__":true,"id":14155},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14156},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14155":{"this":{"__isSmartRef__":true,"id":1581}},"14156":{"timestamp":{"__isSmartRef__":true,"id":14157},"user":"jan.sandbrink","tags":[]},"14157":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14158":{"varMapping":{"__isSmartRef__":true,"id":14159},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14160},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14159":{"this":{"__isSmartRef__":true,"id":1581}},"14160":{"timestamp":{"__isSmartRef__":true,"id":14161},"user":"josi","tags":["gemtypes"]},"14161":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14162":{"varMapping":{"__isSmartRef__":true,"id":14163},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14164},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14163":{"this":{"__isSmartRef__":true,"id":1581}},"14164":{"timestamp":{"__isSmartRef__":true,"id":14165},"user":"josi","tags":["gemtypes"]},"14165":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14166":{"varMapping":{"__isSmartRef__":true,"id":14167},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14168},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14167":{"this":{"__isSmartRef__":true,"id":1581}},"14168":{"timestamp":{"__isSmartRef__":true,"id":14169},"user":"soergel","tags":["debug"]},"14169":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14170":{"varMapping":{"__isSmartRef__":true,"id":14171},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14172},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14171":{"this":{"__isSmartRef__":true,"id":1581}},"14172":{"timestamp":{"__isSmartRef__":true,"id":14173},"user":"soergel","tags":["debug"]},"14173":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14174":{"varMapping":{"__isSmartRef__":true,"id":14175},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14176},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14175":{"this":{"__isSmartRef__":true,"id":1581}},"14176":{"timestamp":{"__isSmartRef__":true,"id":14177},"user":"josi","tags":["gemtypes"]},"14177":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14178":{"varMapping":{"__isSmartRef__":true,"id":14179},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14180},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14179":{"this":{"__isSmartRef__":true,"id":1581}},"14180":{"timestamp":{"__isSmartRef__":true,"id":14181},"user":"soergel","tags":[]},"14181":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14182":{"varMapping":{"__isSmartRef__":true,"id":14183},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14184},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14183":{"this":{"__isSmartRef__":true,"id":1581}},"14184":{"timestamp":{"__isSmartRef__":true,"id":14185},"user":"soergel","tags":[]},"14185":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14186":{"varMapping":{"__isSmartRef__":true,"id":14187},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14188},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14187":{"this":{"__isSmartRef__":true,"id":1581}},"14188":{"timestamp":{"__isSmartRef__":true,"id":14189},"user":"soergel","tags":[]},"14189":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14190":{"varMapping":{"__isSmartRef__":true,"id":14191},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14192},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14191":{"this":{"__isSmartRef__":true,"id":1581}},"14192":{"timestamp":{"__isSmartRef__":true,"id":14193},"user":"josi","tags":["gemtypes"]},"14193":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14194":{"varMapping":{"__isSmartRef__":true,"id":14195},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14196},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14195":{"this":{"__isSmartRef__":true,"id":1581}},"14196":{"timestamp":{"__isSmartRef__":true,"id":14197},"user":"josi","tags":["gemtypes"]},"14197":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14198":{"varMapping":{"__isSmartRef__":true,"id":14199},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14200},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14199":{"this":{"__isSmartRef__":true,"id":1581}},"14200":{"timestamp":{"__isSmartRef__":true,"id":14201},"user":"jan.sandbrink","tags":[]},"14201":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14202":{"x":197.8147768157955,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"14203":{"become":{"__isSmartRef__":true,"id":14204},"onMouseDown":{"__isSmartRef__":true,"id":14208},"updatePicture":{"__isSmartRef__":true,"id":14216},"ruby":{"__isSmartRef__":true,"id":14220},"switchPositionWith":{"__isSmartRef__":true,"id":14224},"addNeighbour":{"__isSmartRef__":true,"id":14228},"amethyst":{"__isSmartRef__":true,"id":14232},"diopside":{"__isSmartRef__":true,"id":14236},"gemTypes":{"__isSmartRef__":true,"id":14240},"becomeRandomGem":{"__isSmartRef__":true,"id":14244},"mark":{"__isSmartRef__":true,"id":14248},"unmark":{"__isSmartRef__":true,"id":14252},"hasNeighbour":{"__isSmartRef__":true,"id":14256},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14260},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14264},"disappear":{"__isSmartRef__":true,"id":14268},"findStreakStart":{"__isSmartRef__":true,"id":14272},"buildStreak":{"__isSmartRef__":true,"id":14276},"scoreStreak":{"__isSmartRef__":true,"id":14280},"tryToStreak":{"__isSmartRef__":true,"id":14284},"blueDiamond":{"__isSmartRef__":true,"id":14288},"prehnite":{"__isSmartRef__":true,"id":14292},"debugUnmark":{"__isSmartRef__":true,"id":14296},"debugMark":{"__isSmartRef__":true,"id":14300},"citrine":{"__isSmartRef__":true,"id":14304},"move":{"__isSmartRef__":true,"id":14308},"performMovement":{"__isSmartRef__":true,"id":14312},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14316},"zircon":{"__isSmartRef__":true,"id":14320},"emerald":{"__isSmartRef__":true,"id":14324},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14328}},"14204":{"varMapping":{"__isSmartRef__":true,"id":14205},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14206},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14205":{"this":{"__isSmartRef__":true,"id":1449}},"14206":{"timestamp":{"__isSmartRef__":true,"id":14207},"user":"josi","tags":[]},"14207":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14208":{"varMapping":{"__isSmartRef__":true,"id":14209},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14214},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14209":{"this":{"__isSmartRef__":true,"id":1449},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14210}},"14210":{"$super":{"__isSmartRef__":true,"id":14211}},"14211":{"varMapping":{"__isSmartRef__":true,"id":14212},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14213},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14212":{"obj":{"__isSmartRef__":true,"id":1449},"name":"onMouseDown"},"14213":{},"14214":{"timestamp":{"__isSmartRef__":true,"id":14215},"user":"soergel","tags":[]},"14215":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14216":{"varMapping":{"__isSmartRef__":true,"id":14217},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14218},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14217":{"this":{"__isSmartRef__":true,"id":1449}},"14218":{"timestamp":{"__isSmartRef__":true,"id":14219},"user":"soergel","tags":[]},"14219":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14220":{"varMapping":{"__isSmartRef__":true,"id":14221},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14222},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14221":{"this":{"__isSmartRef__":true,"id":1449}},"14222":{"timestamp":{"__isSmartRef__":true,"id":14223},"user":"josi","tags":["gemtypes"]},"14223":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"14224":{"varMapping":{"__isSmartRef__":true,"id":14225},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14226},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14225":{"this":{"__isSmartRef__":true,"id":1449}},"14226":{"timestamp":{"__isSmartRef__":true,"id":14227},"user":"jan.sandbrink","tags":[]},"14227":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"14228":{"varMapping":{"__isSmartRef__":true,"id":14229},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14230},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14229":{"this":{"__isSmartRef__":true,"id":1449}},"14230":{"timestamp":{"__isSmartRef__":true,"id":14231},"user":"jan.sandbrink","tags":[]},"14231":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"14232":{"varMapping":{"__isSmartRef__":true,"id":14233},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":14234},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14233":{"this":{"__isSmartRef__":true,"id":1449}},"14234":{"timestamp":{"__isSmartRef__":true,"id":14235},"user":"josi","tags":["gemtypes"]},"14235":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"14236":{"varMapping":{"__isSmartRef__":true,"id":14237},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":14238},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14237":{"this":{"__isSmartRef__":true,"id":1449}},"14238":{"timestamp":{"__isSmartRef__":true,"id":14239},"user":"josi","tags":["gemtypes"]},"14239":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"14240":{"varMapping":{"__isSmartRef__":true,"id":14241},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":14242},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14241":{"this":{"__isSmartRef__":true,"id":1449}},"14242":{"timestamp":{"__isSmartRef__":true,"id":14243},"user":"josi","tags":[]},"14243":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"14244":{"varMapping":{"__isSmartRef__":true,"id":14245},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":14246},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14245":{"this":{"__isSmartRef__":true,"id":1449}},"14246":{"timestamp":{"__isSmartRef__":true,"id":14247},"user":"josi","tags":[]},"14247":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"14248":{"varMapping":{"__isSmartRef__":true,"id":14249},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14250},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14249":{"this":{"__isSmartRef__":true,"id":1449}},"14250":{"timestamp":{"__isSmartRef__":true,"id":14251},"user":"soergel","tags":[]},"14251":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"14252":{"varMapping":{"__isSmartRef__":true,"id":14253},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14254},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14253":{"this":{"__isSmartRef__":true,"id":1449}},"14254":{"timestamp":{"__isSmartRef__":true,"id":14255},"user":"soergel","tags":[]},"14255":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"14256":{"varMapping":{"__isSmartRef__":true,"id":14257},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":14258},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14257":{"this":{"__isSmartRef__":true,"id":1449}},"14258":{"timestamp":{"__isSmartRef__":true,"id":14259},"user":"soergel","tags":[]},"14259":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14260":{"varMapping":{"__isSmartRef__":true,"id":14261},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14262},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14261":{"this":{"__isSmartRef__":true,"id":1449}},"14262":{"timestamp":{"__isSmartRef__":true,"id":14263},"user":"soergel","tags":["debug"]},"14263":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14264":{"varMapping":{"__isSmartRef__":true,"id":14265},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14266},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14265":{"this":{"__isSmartRef__":true,"id":1449}},"14266":{"timestamp":{"__isSmartRef__":true,"id":14267},"user":"soergel","tags":["debug"]},"14267":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14268":{"varMapping":{"__isSmartRef__":true,"id":14269},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14270},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14269":{"this":{"__isSmartRef__":true,"id":1449}},"14270":{"timestamp":{"__isSmartRef__":true,"id":14271},"user":"soergel","tags":[]},"14271":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14272":{"varMapping":{"__isSmartRef__":true,"id":14273},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14274},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14273":{"this":{"__isSmartRef__":true,"id":1449}},"14274":{"timestamp":{"__isSmartRef__":true,"id":14275},"user":"jan.sandbrink","tags":[]},"14275":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14276":{"varMapping":{"__isSmartRef__":true,"id":14277},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14278},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14277":{"this":{"__isSmartRef__":true,"id":1449}},"14278":{"timestamp":{"__isSmartRef__":true,"id":14279},"user":"jan.sandbrink","tags":[]},"14279":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14280":{"varMapping":{"__isSmartRef__":true,"id":14281},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14282},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14281":{"this":{"__isSmartRef__":true,"id":1449}},"14282":{"timestamp":{"__isSmartRef__":true,"id":14283},"user":"jan.sandbrink","tags":[]},"14283":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14284":{"varMapping":{"__isSmartRef__":true,"id":14285},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14286},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14285":{"this":{"__isSmartRef__":true,"id":1449}},"14286":{"timestamp":{"__isSmartRef__":true,"id":14287},"user":"jan.sandbrink","tags":[]},"14287":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14288":{"varMapping":{"__isSmartRef__":true,"id":14289},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14290},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14289":{"this":{"__isSmartRef__":true,"id":1449}},"14290":{"timestamp":{"__isSmartRef__":true,"id":14291},"user":"josi","tags":["gemtypes"]},"14291":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14292":{"varMapping":{"__isSmartRef__":true,"id":14293},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14294},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14293":{"this":{"__isSmartRef__":true,"id":1449}},"14294":{"timestamp":{"__isSmartRef__":true,"id":14295},"user":"josi","tags":["gemtypes"]},"14295":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14296":{"varMapping":{"__isSmartRef__":true,"id":14297},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14298},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14297":{"this":{"__isSmartRef__":true,"id":1449}},"14298":{"timestamp":{"__isSmartRef__":true,"id":14299},"user":"soergel","tags":["debug"]},"14299":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14300":{"varMapping":{"__isSmartRef__":true,"id":14301},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14302},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14301":{"this":{"__isSmartRef__":true,"id":1449}},"14302":{"timestamp":{"__isSmartRef__":true,"id":14303},"user":"soergel","tags":["debug"]},"14303":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14304":{"varMapping":{"__isSmartRef__":true,"id":14305},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14306},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14305":{"this":{"__isSmartRef__":true,"id":1449}},"14306":{"timestamp":{"__isSmartRef__":true,"id":14307},"user":"josi","tags":["gemtypes"]},"14307":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14308":{"varMapping":{"__isSmartRef__":true,"id":14309},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14310},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14309":{"this":{"__isSmartRef__":true,"id":1449}},"14310":{"timestamp":{"__isSmartRef__":true,"id":14311},"user":"soergel","tags":[]},"14311":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14312":{"varMapping":{"__isSmartRef__":true,"id":14313},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14314},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14313":{"this":{"__isSmartRef__":true,"id":1449}},"14314":{"timestamp":{"__isSmartRef__":true,"id":14315},"user":"soergel","tags":[]},"14315":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14316":{"varMapping":{"__isSmartRef__":true,"id":14317},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14318},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14317":{"this":{"__isSmartRef__":true,"id":1449}},"14318":{"timestamp":{"__isSmartRef__":true,"id":14319},"user":"soergel","tags":[]},"14319":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14320":{"varMapping":{"__isSmartRef__":true,"id":14321},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14322},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14321":{"this":{"__isSmartRef__":true,"id":1449}},"14322":{"timestamp":{"__isSmartRef__":true,"id":14323},"user":"josi","tags":["gemtypes"]},"14323":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14324":{"varMapping":{"__isSmartRef__":true,"id":14325},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14326},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14325":{"this":{"__isSmartRef__":true,"id":1449}},"14326":{"timestamp":{"__isSmartRef__":true,"id":14327},"user":"josi","tags":["gemtypes"]},"14327":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14328":{"varMapping":{"__isSmartRef__":true,"id":14329},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14330},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14329":{"this":{"__isSmartRef__":true,"id":1449}},"14330":{"timestamp":{"__isSmartRef__":true,"id":14331},"user":"jan.sandbrink","tags":[]},"14331":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14332":{"x":247.0184710197444,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"14333":{"become":{"__isSmartRef__":true,"id":14334},"onMouseDown":{"__isSmartRef__":true,"id":14338},"updatePicture":{"__isSmartRef__":true,"id":14346},"ruby":{"__isSmartRef__":true,"id":14350},"switchPositionWith":{"__isSmartRef__":true,"id":14354},"addNeighbour":{"__isSmartRef__":true,"id":14358},"amethyst":{"__isSmartRef__":true,"id":14362},"diopside":{"__isSmartRef__":true,"id":14366},"gemTypes":{"__isSmartRef__":true,"id":14370},"becomeRandomGem":{"__isSmartRef__":true,"id":14374},"mark":{"__isSmartRef__":true,"id":14378},"unmark":{"__isSmartRef__":true,"id":14382},"hasNeighbour":{"__isSmartRef__":true,"id":14386},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14390},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14394},"disappear":{"__isSmartRef__":true,"id":14398},"findStreakStart":{"__isSmartRef__":true,"id":14402},"buildStreak":{"__isSmartRef__":true,"id":14406},"scoreStreak":{"__isSmartRef__":true,"id":14410},"tryToStreak":{"__isSmartRef__":true,"id":14414},"blueDiamond":{"__isSmartRef__":true,"id":14418},"prehnite":{"__isSmartRef__":true,"id":14422},"debugUnmark":{"__isSmartRef__":true,"id":14426},"debugMark":{"__isSmartRef__":true,"id":14430},"citrine":{"__isSmartRef__":true,"id":14434},"move":{"__isSmartRef__":true,"id":14438},"performMovement":{"__isSmartRef__":true,"id":14442},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14446},"zircon":{"__isSmartRef__":true,"id":14450},"emerald":{"__isSmartRef__":true,"id":14454},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14458}},"14334":{"varMapping":{"__isSmartRef__":true,"id":14335},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14335":{"this":{"__isSmartRef__":true,"id":1322}},"14336":{"timestamp":{"__isSmartRef__":true,"id":14337},"user":"josi","tags":[]},"14337":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14338":{"varMapping":{"__isSmartRef__":true,"id":14339},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14339":{"this":{"__isSmartRef__":true,"id":1322},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14340}},"14340":{"$super":{"__isSmartRef__":true,"id":14341}},"14341":{"varMapping":{"__isSmartRef__":true,"id":14342},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14343},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14342":{"obj":{"__isSmartRef__":true,"id":1322},"name":"onMouseDown"},"14343":{},"14344":{"timestamp":{"__isSmartRef__":true,"id":14345},"user":"soergel","tags":[]},"14345":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14346":{"varMapping":{"__isSmartRef__":true,"id":14347},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14348},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14347":{"this":{"__isSmartRef__":true,"id":1322}},"14348":{"timestamp":{"__isSmartRef__":true,"id":14349},"user":"soergel","tags":[]},"14349":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14350":{"varMapping":{"__isSmartRef__":true,"id":14351},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14352},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14351":{"this":{"__isSmartRef__":true,"id":1322}},"14352":{"timestamp":{"__isSmartRef__":true,"id":14353},"user":"josi","tags":["gemtypes"]},"14353":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"14354":{"varMapping":{"__isSmartRef__":true,"id":14355},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14356},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14355":{"this":{"__isSmartRef__":true,"id":1322}},"14356":{"timestamp":{"__isSmartRef__":true,"id":14357},"user":"jan.sandbrink","tags":[]},"14357":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"14358":{"varMapping":{"__isSmartRef__":true,"id":14359},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14360},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14359":{"this":{"__isSmartRef__":true,"id":1322}},"14360":{"timestamp":{"__isSmartRef__":true,"id":14361},"user":"jan.sandbrink","tags":[]},"14361":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"14362":{"varMapping":{"__isSmartRef__":true,"id":14363},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":14364},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14363":{"this":{"__isSmartRef__":true,"id":1322}},"14364":{"timestamp":{"__isSmartRef__":true,"id":14365},"user":"josi","tags":["gemtypes"]},"14365":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"14366":{"varMapping":{"__isSmartRef__":true,"id":14367},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":14368},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14367":{"this":{"__isSmartRef__":true,"id":1322}},"14368":{"timestamp":{"__isSmartRef__":true,"id":14369},"user":"josi","tags":["gemtypes"]},"14369":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"14370":{"varMapping":{"__isSmartRef__":true,"id":14371},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":14372},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14371":{"this":{"__isSmartRef__":true,"id":1322}},"14372":{"timestamp":{"__isSmartRef__":true,"id":14373},"user":"josi","tags":[]},"14373":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"14374":{"varMapping":{"__isSmartRef__":true,"id":14375},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":14376},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14375":{"this":{"__isSmartRef__":true,"id":1322}},"14376":{"timestamp":{"__isSmartRef__":true,"id":14377},"user":"josi","tags":[]},"14377":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"14378":{"varMapping":{"__isSmartRef__":true,"id":14379},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14380},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14379":{"this":{"__isSmartRef__":true,"id":1322}},"14380":{"timestamp":{"__isSmartRef__":true,"id":14381},"user":"soergel","tags":[]},"14381":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"14382":{"varMapping":{"__isSmartRef__":true,"id":14383},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14384},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14383":{"this":{"__isSmartRef__":true,"id":1322}},"14384":{"timestamp":{"__isSmartRef__":true,"id":14385},"user":"soergel","tags":[]},"14385":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"14386":{"varMapping":{"__isSmartRef__":true,"id":14387},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":14388},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14387":{"this":{"__isSmartRef__":true,"id":1322}},"14388":{"timestamp":{"__isSmartRef__":true,"id":14389},"user":"soergel","tags":[]},"14389":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14390":{"varMapping":{"__isSmartRef__":true,"id":14391},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14392},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14391":{"this":{"__isSmartRef__":true,"id":1322}},"14392":{"timestamp":{"__isSmartRef__":true,"id":14393},"user":"soergel","tags":["debug"]},"14393":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14394":{"varMapping":{"__isSmartRef__":true,"id":14395},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14396},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14395":{"this":{"__isSmartRef__":true,"id":1322}},"14396":{"timestamp":{"__isSmartRef__":true,"id":14397},"user":"soergel","tags":["debug"]},"14397":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14398":{"varMapping":{"__isSmartRef__":true,"id":14399},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14400},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14399":{"this":{"__isSmartRef__":true,"id":1322}},"14400":{"timestamp":{"__isSmartRef__":true,"id":14401},"user":"soergel","tags":[]},"14401":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14402":{"varMapping":{"__isSmartRef__":true,"id":14403},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14404},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14403":{"this":{"__isSmartRef__":true,"id":1322}},"14404":{"timestamp":{"__isSmartRef__":true,"id":14405},"user":"jan.sandbrink","tags":[]},"14405":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14406":{"varMapping":{"__isSmartRef__":true,"id":14407},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14408},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14407":{"this":{"__isSmartRef__":true,"id":1322}},"14408":{"timestamp":{"__isSmartRef__":true,"id":14409},"user":"jan.sandbrink","tags":[]},"14409":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14410":{"varMapping":{"__isSmartRef__":true,"id":14411},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14412},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14411":{"this":{"__isSmartRef__":true,"id":1322}},"14412":{"timestamp":{"__isSmartRef__":true,"id":14413},"user":"jan.sandbrink","tags":[]},"14413":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14414":{"varMapping":{"__isSmartRef__":true,"id":14415},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14416},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14415":{"this":{"__isSmartRef__":true,"id":1322}},"14416":{"timestamp":{"__isSmartRef__":true,"id":14417},"user":"jan.sandbrink","tags":[]},"14417":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14418":{"varMapping":{"__isSmartRef__":true,"id":14419},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14420},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14419":{"this":{"__isSmartRef__":true,"id":1322}},"14420":{"timestamp":{"__isSmartRef__":true,"id":14421},"user":"josi","tags":["gemtypes"]},"14421":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14422":{"varMapping":{"__isSmartRef__":true,"id":14423},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14424},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14423":{"this":{"__isSmartRef__":true,"id":1322}},"14424":{"timestamp":{"__isSmartRef__":true,"id":14425},"user":"josi","tags":["gemtypes"]},"14425":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14426":{"varMapping":{"__isSmartRef__":true,"id":14427},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14428},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14427":{"this":{"__isSmartRef__":true,"id":1322}},"14428":{"timestamp":{"__isSmartRef__":true,"id":14429},"user":"soergel","tags":["debug"]},"14429":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14430":{"varMapping":{"__isSmartRef__":true,"id":14431},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14432},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14431":{"this":{"__isSmartRef__":true,"id":1322}},"14432":{"timestamp":{"__isSmartRef__":true,"id":14433},"user":"soergel","tags":["debug"]},"14433":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14434":{"varMapping":{"__isSmartRef__":true,"id":14435},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14436},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14435":{"this":{"__isSmartRef__":true,"id":1322}},"14436":{"timestamp":{"__isSmartRef__":true,"id":14437},"user":"josi","tags":["gemtypes"]},"14437":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14438":{"varMapping":{"__isSmartRef__":true,"id":14439},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14440},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14439":{"this":{"__isSmartRef__":true,"id":1322}},"14440":{"timestamp":{"__isSmartRef__":true,"id":14441},"user":"soergel","tags":[]},"14441":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14442":{"varMapping":{"__isSmartRef__":true,"id":14443},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14444},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14443":{"this":{"__isSmartRef__":true,"id":1322}},"14444":{"timestamp":{"__isSmartRef__":true,"id":14445},"user":"soergel","tags":[]},"14445":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14446":{"varMapping":{"__isSmartRef__":true,"id":14447},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14448},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14447":{"this":{"__isSmartRef__":true,"id":1322}},"14448":{"timestamp":{"__isSmartRef__":true,"id":14449},"user":"soergel","tags":[]},"14449":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14450":{"varMapping":{"__isSmartRef__":true,"id":14451},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14452},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14451":{"this":{"__isSmartRef__":true,"id":1322}},"14452":{"timestamp":{"__isSmartRef__":true,"id":14453},"user":"josi","tags":["gemtypes"]},"14453":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14454":{"varMapping":{"__isSmartRef__":true,"id":14455},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14456},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14455":{"this":{"__isSmartRef__":true,"id":1322}},"14456":{"timestamp":{"__isSmartRef__":true,"id":14457},"user":"josi","tags":["gemtypes"]},"14457":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14458":{"varMapping":{"__isSmartRef__":true,"id":14459},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14460},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14459":{"this":{"__isSmartRef__":true,"id":1322}},"14460":{"timestamp":{"__isSmartRef__":true,"id":14461},"user":"jan.sandbrink","tags":[]},"14461":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14462":{"x":296.22216522369325,"y":52.19570619595078,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"14463":{"become":{"__isSmartRef__":true,"id":14464},"onMouseDown":{"__isSmartRef__":true,"id":14468},"updatePicture":{"__isSmartRef__":true,"id":14476},"ruby":{"__isSmartRef__":true,"id":14480},"switchPositionWith":{"__isSmartRef__":true,"id":14484},"addNeighbour":{"__isSmartRef__":true,"id":14488},"amethyst":{"__isSmartRef__":true,"id":14492},"diopside":{"__isSmartRef__":true,"id":14496},"gemTypes":{"__isSmartRef__":true,"id":14500},"becomeRandomGem":{"__isSmartRef__":true,"id":14504},"mark":{"__isSmartRef__":true,"id":14508},"unmark":{"__isSmartRef__":true,"id":14512},"hasNeighbour":{"__isSmartRef__":true,"id":14516},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14520},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14524},"disappear":{"__isSmartRef__":true,"id":14528},"findStreakStart":{"__isSmartRef__":true,"id":14532},"buildStreak":{"__isSmartRef__":true,"id":14536},"scoreStreak":{"__isSmartRef__":true,"id":14540},"tryToStreak":{"__isSmartRef__":true,"id":14544},"blueDiamond":{"__isSmartRef__":true,"id":14548},"prehnite":{"__isSmartRef__":true,"id":14552},"debugUnmark":{"__isSmartRef__":true,"id":14556},"debugMark":{"__isSmartRef__":true,"id":14560},"citrine":{"__isSmartRef__":true,"id":14564},"move":{"__isSmartRef__":true,"id":14568},"performMovement":{"__isSmartRef__":true,"id":14572},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14576},"zircon":{"__isSmartRef__":true,"id":14580},"emerald":{"__isSmartRef__":true,"id":14584},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14588}},"14464":{"varMapping":{"__isSmartRef__":true,"id":14465},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14465":{"this":{"__isSmartRef__":true,"id":1195}},"14466":{"timestamp":{"__isSmartRef__":true,"id":14467},"user":"josi","tags":[]},"14467":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14468":{"varMapping":{"__isSmartRef__":true,"id":14469},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14474},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14469":{"this":{"__isSmartRef__":true,"id":1195},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14470}},"14470":{"$super":{"__isSmartRef__":true,"id":14471}},"14471":{"varMapping":{"__isSmartRef__":true,"id":14472},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14473},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14472":{"obj":{"__isSmartRef__":true,"id":1195},"name":"onMouseDown"},"14473":{},"14474":{"timestamp":{"__isSmartRef__":true,"id":14475},"user":"soergel","tags":[]},"14475":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14476":{"varMapping":{"__isSmartRef__":true,"id":14477},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14478},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14477":{"this":{"__isSmartRef__":true,"id":1195}},"14478":{"timestamp":{"__isSmartRef__":true,"id":14479},"user":"soergel","tags":[]},"14479":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14480":{"varMapping":{"__isSmartRef__":true,"id":14481},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14481":{"this":{"__isSmartRef__":true,"id":1195}},"14482":{"timestamp":{"__isSmartRef__":true,"id":14483},"user":"josi","tags":["gemtypes"]},"14483":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"14484":{"varMapping":{"__isSmartRef__":true,"id":14485},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14486},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14485":{"this":{"__isSmartRef__":true,"id":1195}},"14486":{"timestamp":{"__isSmartRef__":true,"id":14487},"user":"jan.sandbrink","tags":[]},"14487":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"14488":{"varMapping":{"__isSmartRef__":true,"id":14489},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14490},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14489":{"this":{"__isSmartRef__":true,"id":1195}},"14490":{"timestamp":{"__isSmartRef__":true,"id":14491},"user":"jan.sandbrink","tags":[]},"14491":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"14492":{"varMapping":{"__isSmartRef__":true,"id":14493},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":14494},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14493":{"this":{"__isSmartRef__":true,"id":1195}},"14494":{"timestamp":{"__isSmartRef__":true,"id":14495},"user":"josi","tags":["gemtypes"]},"14495":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"14496":{"varMapping":{"__isSmartRef__":true,"id":14497},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":14498},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14497":{"this":{"__isSmartRef__":true,"id":1195}},"14498":{"timestamp":{"__isSmartRef__":true,"id":14499},"user":"josi","tags":["gemtypes"]},"14499":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"14500":{"varMapping":{"__isSmartRef__":true,"id":14501},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":14502},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14501":{"this":{"__isSmartRef__":true,"id":1195}},"14502":{"timestamp":{"__isSmartRef__":true,"id":14503},"user":"josi","tags":[]},"14503":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"14504":{"varMapping":{"__isSmartRef__":true,"id":14505},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":14506},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14505":{"this":{"__isSmartRef__":true,"id":1195}},"14506":{"timestamp":{"__isSmartRef__":true,"id":14507},"user":"josi","tags":[]},"14507":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"14508":{"varMapping":{"__isSmartRef__":true,"id":14509},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14510},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14509":{"this":{"__isSmartRef__":true,"id":1195}},"14510":{"timestamp":{"__isSmartRef__":true,"id":14511},"user":"soergel","tags":[]},"14511":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"14512":{"varMapping":{"__isSmartRef__":true,"id":14513},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14514},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14513":{"this":{"__isSmartRef__":true,"id":1195}},"14514":{"timestamp":{"__isSmartRef__":true,"id":14515},"user":"soergel","tags":[]},"14515":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"14516":{"varMapping":{"__isSmartRef__":true,"id":14517},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":14518},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14517":{"this":{"__isSmartRef__":true,"id":1195}},"14518":{"timestamp":{"__isSmartRef__":true,"id":14519},"user":"soergel","tags":[]},"14519":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14520":{"varMapping":{"__isSmartRef__":true,"id":14521},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14522},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14521":{"this":{"__isSmartRef__":true,"id":1195}},"14522":{"timestamp":{"__isSmartRef__":true,"id":14523},"user":"soergel","tags":["debug"]},"14523":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14524":{"varMapping":{"__isSmartRef__":true,"id":14525},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14526},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14525":{"this":{"__isSmartRef__":true,"id":1195}},"14526":{"timestamp":{"__isSmartRef__":true,"id":14527},"user":"soergel","tags":["debug"]},"14527":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14528":{"varMapping":{"__isSmartRef__":true,"id":14529},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14530},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14529":{"this":{"__isSmartRef__":true,"id":1195}},"14530":{"timestamp":{"__isSmartRef__":true,"id":14531},"user":"soergel","tags":[]},"14531":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14532":{"varMapping":{"__isSmartRef__":true,"id":14533},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14534},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14533":{"this":{"__isSmartRef__":true,"id":1195}},"14534":{"timestamp":{"__isSmartRef__":true,"id":14535},"user":"jan.sandbrink","tags":[]},"14535":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14536":{"varMapping":{"__isSmartRef__":true,"id":14537},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14538},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14537":{"this":{"__isSmartRef__":true,"id":1195}},"14538":{"timestamp":{"__isSmartRef__":true,"id":14539},"user":"jan.sandbrink","tags":[]},"14539":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14540":{"varMapping":{"__isSmartRef__":true,"id":14541},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14542},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14541":{"this":{"__isSmartRef__":true,"id":1195}},"14542":{"timestamp":{"__isSmartRef__":true,"id":14543},"user":"jan.sandbrink","tags":[]},"14543":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14544":{"varMapping":{"__isSmartRef__":true,"id":14545},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14546},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14545":{"this":{"__isSmartRef__":true,"id":1195}},"14546":{"timestamp":{"__isSmartRef__":true,"id":14547},"user":"jan.sandbrink","tags":[]},"14547":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14548":{"varMapping":{"__isSmartRef__":true,"id":14549},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14550},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14549":{"this":{"__isSmartRef__":true,"id":1195}},"14550":{"timestamp":{"__isSmartRef__":true,"id":14551},"user":"josi","tags":["gemtypes"]},"14551":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14552":{"varMapping":{"__isSmartRef__":true,"id":14553},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14554},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14553":{"this":{"__isSmartRef__":true,"id":1195}},"14554":{"timestamp":{"__isSmartRef__":true,"id":14555},"user":"josi","tags":["gemtypes"]},"14555":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14556":{"varMapping":{"__isSmartRef__":true,"id":14557},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14558},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14557":{"this":{"__isSmartRef__":true,"id":1195}},"14558":{"timestamp":{"__isSmartRef__":true,"id":14559},"user":"soergel","tags":["debug"]},"14559":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14560":{"varMapping":{"__isSmartRef__":true,"id":14561},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14562},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14561":{"this":{"__isSmartRef__":true,"id":1195}},"14562":{"timestamp":{"__isSmartRef__":true,"id":14563},"user":"soergel","tags":["debug"]},"14563":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14564":{"varMapping":{"__isSmartRef__":true,"id":14565},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14566},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14565":{"this":{"__isSmartRef__":true,"id":1195}},"14566":{"timestamp":{"__isSmartRef__":true,"id":14567},"user":"josi","tags":["gemtypes"]},"14567":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14568":{"varMapping":{"__isSmartRef__":true,"id":14569},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14570},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14569":{"this":{"__isSmartRef__":true,"id":1195}},"14570":{"timestamp":{"__isSmartRef__":true,"id":14571},"user":"soergel","tags":[]},"14571":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14572":{"varMapping":{"__isSmartRef__":true,"id":14573},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14574},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14573":{"this":{"__isSmartRef__":true,"id":1195}},"14574":{"timestamp":{"__isSmartRef__":true,"id":14575},"user":"soergel","tags":[]},"14575":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14576":{"varMapping":{"__isSmartRef__":true,"id":14577},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14578},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14577":{"this":{"__isSmartRef__":true,"id":1195}},"14578":{"timestamp":{"__isSmartRef__":true,"id":14579},"user":"soergel","tags":[]},"14579":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14580":{"varMapping":{"__isSmartRef__":true,"id":14581},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14582},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14581":{"this":{"__isSmartRef__":true,"id":1195}},"14582":{"timestamp":{"__isSmartRef__":true,"id":14583},"user":"josi","tags":["gemtypes"]},"14583":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14584":{"varMapping":{"__isSmartRef__":true,"id":14585},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14586},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14585":{"this":{"__isSmartRef__":true,"id":1195}},"14586":{"timestamp":{"__isSmartRef__":true,"id":14587},"user":"josi","tags":["gemtypes"]},"14587":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14588":{"varMapping":{"__isSmartRef__":true,"id":14589},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14590},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14589":{"this":{"__isSmartRef__":true,"id":1195}},"14590":{"timestamp":{"__isSmartRef__":true,"id":14591},"user":"jan.sandbrink","tags":[]},"14591":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14592":{"become":{"__isSmartRef__":true,"id":14593},"onMouseDown":{"__isSmartRef__":true,"id":14597},"updatePicture":{"__isSmartRef__":true,"id":14605},"ruby":{"__isSmartRef__":true,"id":14609},"switchPositionWith":{"__isSmartRef__":true,"id":14613},"addNeighbour":{"__isSmartRef__":true,"id":14617},"amethyst":{"__isSmartRef__":true,"id":14621},"diopside":{"__isSmartRef__":true,"id":14625},"gemTypes":{"__isSmartRef__":true,"id":14629},"becomeRandomGem":{"__isSmartRef__":true,"id":14633},"mark":{"__isSmartRef__":true,"id":14637},"unmark":{"__isSmartRef__":true,"id":14641},"hasNeighbour":{"__isSmartRef__":true,"id":14645},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14649},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14653},"disappear":{"__isSmartRef__":true,"id":14657},"findStreakStart":{"__isSmartRef__":true,"id":14661},"buildStreak":{"__isSmartRef__":true,"id":14665},"scoreStreak":{"__isSmartRef__":true,"id":14669},"tryToStreak":{"__isSmartRef__":true,"id":14673},"blueDiamond":{"__isSmartRef__":true,"id":14677},"prehnite":{"__isSmartRef__":true,"id":14681},"debugUnmark":{"__isSmartRef__":true,"id":14685},"debugMark":{"__isSmartRef__":true,"id":14689},"citrine":{"__isSmartRef__":true,"id":14693},"move":{"__isSmartRef__":true,"id":14697},"performMovement":{"__isSmartRef__":true,"id":14701},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14705},"zircon":{"__isSmartRef__":true,"id":14709},"emerald":{"__isSmartRef__":true,"id":14713},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14717}},"14593":{"varMapping":{"__isSmartRef__":true,"id":14594},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14594":{"this":{"__isSmartRef__":true,"id":1094}},"14595":{"timestamp":{"__isSmartRef__":true,"id":14596},"user":"josi","tags":[]},"14596":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14597":{"varMapping":{"__isSmartRef__":true,"id":14598},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14603},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14598":{"this":{"__isSmartRef__":true,"id":1094},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14599}},"14599":{"$super":{"__isSmartRef__":true,"id":14600}},"14600":{"varMapping":{"__isSmartRef__":true,"id":14601},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14602},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14601":{"obj":{"__isSmartRef__":true,"id":1094},"name":"onMouseDown"},"14602":{},"14603":{"timestamp":{"__isSmartRef__":true,"id":14604},"user":"soergel","tags":[]},"14604":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14605":{"varMapping":{"__isSmartRef__":true,"id":14606},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14607},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14606":{"this":{"__isSmartRef__":true,"id":1094}},"14607":{"timestamp":{"__isSmartRef__":true,"id":14608},"user":"soergel","tags":[]},"14608":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14609":{"varMapping":{"__isSmartRef__":true,"id":14610},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14611},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14610":{"this":{"__isSmartRef__":true,"id":1094}},"14611":{"timestamp":{"__isSmartRef__":true,"id":14612},"user":"josi","tags":["gemtypes"]},"14612":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"14613":{"varMapping":{"__isSmartRef__":true,"id":14614},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14615},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14614":{"this":{"__isSmartRef__":true,"id":1094}},"14615":{"timestamp":{"__isSmartRef__":true,"id":14616},"user":"jan.sandbrink","tags":[]},"14616":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"14617":{"varMapping":{"__isSmartRef__":true,"id":14618},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14619},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14618":{"this":{"__isSmartRef__":true,"id":1094}},"14619":{"timestamp":{"__isSmartRef__":true,"id":14620},"user":"jan.sandbrink","tags":[]},"14620":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"14621":{"varMapping":{"__isSmartRef__":true,"id":14622},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":14623},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14622":{"this":{"__isSmartRef__":true,"id":1094}},"14623":{"timestamp":{"__isSmartRef__":true,"id":14624},"user":"josi","tags":["gemtypes"]},"14624":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"14625":{"varMapping":{"__isSmartRef__":true,"id":14626},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":14627},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14626":{"this":{"__isSmartRef__":true,"id":1094}},"14627":{"timestamp":{"__isSmartRef__":true,"id":14628},"user":"josi","tags":["gemtypes"]},"14628":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"14629":{"varMapping":{"__isSmartRef__":true,"id":14630},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":14631},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14630":{"this":{"__isSmartRef__":true,"id":1094}},"14631":{"timestamp":{"__isSmartRef__":true,"id":14632},"user":"josi","tags":[]},"14632":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"14633":{"varMapping":{"__isSmartRef__":true,"id":14634},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":14635},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14634":{"this":{"__isSmartRef__":true,"id":1094}},"14635":{"timestamp":{"__isSmartRef__":true,"id":14636},"user":"josi","tags":[]},"14636":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"14637":{"varMapping":{"__isSmartRef__":true,"id":14638},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14639},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14638":{"this":{"__isSmartRef__":true,"id":1094}},"14639":{"timestamp":{"__isSmartRef__":true,"id":14640},"user":"soergel","tags":[]},"14640":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"14641":{"varMapping":{"__isSmartRef__":true,"id":14642},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14643},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14642":{"this":{"__isSmartRef__":true,"id":1094}},"14643":{"timestamp":{"__isSmartRef__":true,"id":14644},"user":"soergel","tags":[]},"14644":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"14645":{"varMapping":{"__isSmartRef__":true,"id":14646},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":14647},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14646":{"this":{"__isSmartRef__":true,"id":1094}},"14647":{"timestamp":{"__isSmartRef__":true,"id":14648},"user":"soergel","tags":[]},"14648":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14649":{"varMapping":{"__isSmartRef__":true,"id":14650},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14651},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14650":{"this":{"__isSmartRef__":true,"id":1094}},"14651":{"timestamp":{"__isSmartRef__":true,"id":14652},"user":"soergel","tags":["debug"]},"14652":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14653":{"varMapping":{"__isSmartRef__":true,"id":14654},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14655},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14654":{"this":{"__isSmartRef__":true,"id":1094}},"14655":{"timestamp":{"__isSmartRef__":true,"id":14656},"user":"soergel","tags":["debug"]},"14656":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14657":{"varMapping":{"__isSmartRef__":true,"id":14658},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14659},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14658":{"this":{"__isSmartRef__":true,"id":1094}},"14659":{"timestamp":{"__isSmartRef__":true,"id":14660},"user":"soergel","tags":[]},"14660":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14661":{"varMapping":{"__isSmartRef__":true,"id":14662},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14663},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14662":{"this":{"__isSmartRef__":true,"id":1094}},"14663":{"timestamp":{"__isSmartRef__":true,"id":14664},"user":"jan.sandbrink","tags":[]},"14664":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14665":{"varMapping":{"__isSmartRef__":true,"id":14666},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14667},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14666":{"this":{"__isSmartRef__":true,"id":1094}},"14667":{"timestamp":{"__isSmartRef__":true,"id":14668},"user":"jan.sandbrink","tags":[]},"14668":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14669":{"varMapping":{"__isSmartRef__":true,"id":14670},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14671},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14670":{"this":{"__isSmartRef__":true,"id":1094}},"14671":{"timestamp":{"__isSmartRef__":true,"id":14672},"user":"jan.sandbrink","tags":[]},"14672":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14673":{"varMapping":{"__isSmartRef__":true,"id":14674},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14675},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14674":{"this":{"__isSmartRef__":true,"id":1094}},"14675":{"timestamp":{"__isSmartRef__":true,"id":14676},"user":"jan.sandbrink","tags":[]},"14676":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14677":{"varMapping":{"__isSmartRef__":true,"id":14678},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14679},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14678":{"this":{"__isSmartRef__":true,"id":1094}},"14679":{"timestamp":{"__isSmartRef__":true,"id":14680},"user":"josi","tags":["gemtypes"]},"14680":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14681":{"varMapping":{"__isSmartRef__":true,"id":14682},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14683},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14682":{"this":{"__isSmartRef__":true,"id":1094}},"14683":{"timestamp":{"__isSmartRef__":true,"id":14684},"user":"josi","tags":["gemtypes"]},"14684":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14685":{"varMapping":{"__isSmartRef__":true,"id":14686},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14687},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14686":{"this":{"__isSmartRef__":true,"id":1094}},"14687":{"timestamp":{"__isSmartRef__":true,"id":14688},"user":"soergel","tags":["debug"]},"14688":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14689":{"varMapping":{"__isSmartRef__":true,"id":14690},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14691},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14690":{"this":{"__isSmartRef__":true,"id":1094}},"14691":{"timestamp":{"__isSmartRef__":true,"id":14692},"user":"soergel","tags":["debug"]},"14692":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14693":{"varMapping":{"__isSmartRef__":true,"id":14694},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14695},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14694":{"this":{"__isSmartRef__":true,"id":1094}},"14695":{"timestamp":{"__isSmartRef__":true,"id":14696},"user":"josi","tags":["gemtypes"]},"14696":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14697":{"varMapping":{"__isSmartRef__":true,"id":14698},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14699},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14698":{"this":{"__isSmartRef__":true,"id":1094}},"14699":{"timestamp":{"__isSmartRef__":true,"id":14700},"user":"soergel","tags":[]},"14700":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14701":{"varMapping":{"__isSmartRef__":true,"id":14702},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14703},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14702":{"this":{"__isSmartRef__":true,"id":1094}},"14703":{"timestamp":{"__isSmartRef__":true,"id":14704},"user":"soergel","tags":[]},"14704":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14705":{"varMapping":{"__isSmartRef__":true,"id":14706},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14707},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14706":{"this":{"__isSmartRef__":true,"id":1094}},"14707":{"timestamp":{"__isSmartRef__":true,"id":14708},"user":"soergel","tags":[]},"14708":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14709":{"varMapping":{"__isSmartRef__":true,"id":14710},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14711},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14710":{"this":{"__isSmartRef__":true,"id":1094}},"14711":{"timestamp":{"__isSmartRef__":true,"id":14712},"user":"josi","tags":["gemtypes"]},"14712":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14713":{"varMapping":{"__isSmartRef__":true,"id":14714},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14715},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14714":{"this":{"__isSmartRef__":true,"id":1094}},"14715":{"timestamp":{"__isSmartRef__":true,"id":14716},"user":"josi","tags":["gemtypes"]},"14716":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14717":{"varMapping":{"__isSmartRef__":true,"id":14718},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14719},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14718":{"this":{"__isSmartRef__":true,"id":1094}},"14719":{"timestamp":{"__isSmartRef__":true,"id":14720},"user":"jan.sandbrink","tags":[]},"14720":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14721":{"become":{"__isSmartRef__":true,"id":14722},"onMouseDown":{"__isSmartRef__":true,"id":14726},"updatePicture":{"__isSmartRef__":true,"id":14734},"ruby":{"__isSmartRef__":true,"id":14738},"switchPositionWith":{"__isSmartRef__":true,"id":14742},"addNeighbour":{"__isSmartRef__":true,"id":14746},"amethyst":{"__isSmartRef__":true,"id":14750},"diopside":{"__isSmartRef__":true,"id":14754},"gemTypes":{"__isSmartRef__":true,"id":14758},"becomeRandomGem":{"__isSmartRef__":true,"id":14762},"mark":{"__isSmartRef__":true,"id":14766},"unmark":{"__isSmartRef__":true,"id":14770},"hasNeighbour":{"__isSmartRef__":true,"id":14774},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14778},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14782},"disappear":{"__isSmartRef__":true,"id":14786},"findStreakStart":{"__isSmartRef__":true,"id":14790},"buildStreak":{"__isSmartRef__":true,"id":14794},"scoreStreak":{"__isSmartRef__":true,"id":14798},"tryToStreak":{"__isSmartRef__":true,"id":14802},"blueDiamond":{"__isSmartRef__":true,"id":14806},"prehnite":{"__isSmartRef__":true,"id":14810},"debugUnmark":{"__isSmartRef__":true,"id":14814},"debugMark":{"__isSmartRef__":true,"id":14818},"citrine":{"__isSmartRef__":true,"id":14822},"move":{"__isSmartRef__":true,"id":14826},"performMovement":{"__isSmartRef__":true,"id":14830},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14834},"zircon":{"__isSmartRef__":true,"id":14838},"emerald":{"__isSmartRef__":true,"id":14842},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14846}},"14722":{"varMapping":{"__isSmartRef__":true,"id":14723},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14724},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14723":{"this":{"__isSmartRef__":true,"id":976}},"14724":{"timestamp":{"__isSmartRef__":true,"id":14725},"user":"josi","tags":[]},"14725":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14726":{"varMapping":{"__isSmartRef__":true,"id":14727},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14732},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14727":{"this":{"__isSmartRef__":true,"id":976},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14728}},"14728":{"$super":{"__isSmartRef__":true,"id":14729}},"14729":{"varMapping":{"__isSmartRef__":true,"id":14730},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14731},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14730":{"obj":{"__isSmartRef__":true,"id":976},"name":"onMouseDown"},"14731":{},"14732":{"timestamp":{"__isSmartRef__":true,"id":14733},"user":"soergel","tags":[]},"14733":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14734":{"varMapping":{"__isSmartRef__":true,"id":14735},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14736},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14735":{"this":{"__isSmartRef__":true,"id":976}},"14736":{"timestamp":{"__isSmartRef__":true,"id":14737},"user":"soergel","tags":[]},"14737":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14738":{"varMapping":{"__isSmartRef__":true,"id":14739},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14740},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14739":{"this":{"__isSmartRef__":true,"id":976}},"14740":{"timestamp":{"__isSmartRef__":true,"id":14741},"user":"josi","tags":["gemtypes"]},"14741":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"14742":{"varMapping":{"__isSmartRef__":true,"id":14743},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14744},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14743":{"this":{"__isSmartRef__":true,"id":976}},"14744":{"timestamp":{"__isSmartRef__":true,"id":14745},"user":"jan.sandbrink","tags":[]},"14745":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"14746":{"varMapping":{"__isSmartRef__":true,"id":14747},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14748},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14747":{"this":{"__isSmartRef__":true,"id":976}},"14748":{"timestamp":{"__isSmartRef__":true,"id":14749},"user":"jan.sandbrink","tags":[]},"14749":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"14750":{"varMapping":{"__isSmartRef__":true,"id":14751},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":14752},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14751":{"this":{"__isSmartRef__":true,"id":976}},"14752":{"timestamp":{"__isSmartRef__":true,"id":14753},"user":"josi","tags":["gemtypes"]},"14753":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"14754":{"varMapping":{"__isSmartRef__":true,"id":14755},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":14756},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14755":{"this":{"__isSmartRef__":true,"id":976}},"14756":{"timestamp":{"__isSmartRef__":true,"id":14757},"user":"josi","tags":["gemtypes"]},"14757":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"14758":{"varMapping":{"__isSmartRef__":true,"id":14759},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":14760},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14759":{"this":{"__isSmartRef__":true,"id":976}},"14760":{"timestamp":{"__isSmartRef__":true,"id":14761},"user":"josi","tags":[]},"14761":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"14762":{"varMapping":{"__isSmartRef__":true,"id":14763},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":14764},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14763":{"this":{"__isSmartRef__":true,"id":976}},"14764":{"timestamp":{"__isSmartRef__":true,"id":14765},"user":"josi","tags":[]},"14765":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"14766":{"varMapping":{"__isSmartRef__":true,"id":14767},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14768},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14767":{"this":{"__isSmartRef__":true,"id":976}},"14768":{"timestamp":{"__isSmartRef__":true,"id":14769},"user":"soergel","tags":[]},"14769":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"14770":{"varMapping":{"__isSmartRef__":true,"id":14771},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14772},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14771":{"this":{"__isSmartRef__":true,"id":976}},"14772":{"timestamp":{"__isSmartRef__":true,"id":14773},"user":"soergel","tags":[]},"14773":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"14774":{"varMapping":{"__isSmartRef__":true,"id":14775},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":14776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14775":{"this":{"__isSmartRef__":true,"id":976}},"14776":{"timestamp":{"__isSmartRef__":true,"id":14777},"user":"soergel","tags":[]},"14777":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14778":{"varMapping":{"__isSmartRef__":true,"id":14779},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14780},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14779":{"this":{"__isSmartRef__":true,"id":976}},"14780":{"timestamp":{"__isSmartRef__":true,"id":14781},"user":"soergel","tags":["debug"]},"14781":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14782":{"varMapping":{"__isSmartRef__":true,"id":14783},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14784},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14783":{"this":{"__isSmartRef__":true,"id":976}},"14784":{"timestamp":{"__isSmartRef__":true,"id":14785},"user":"soergel","tags":["debug"]},"14785":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14786":{"varMapping":{"__isSmartRef__":true,"id":14787},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14788},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14787":{"this":{"__isSmartRef__":true,"id":976}},"14788":{"timestamp":{"__isSmartRef__":true,"id":14789},"user":"soergel","tags":[]},"14789":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14790":{"varMapping":{"__isSmartRef__":true,"id":14791},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14792},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14791":{"this":{"__isSmartRef__":true,"id":976}},"14792":{"timestamp":{"__isSmartRef__":true,"id":14793},"user":"jan.sandbrink","tags":[]},"14793":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14794":{"varMapping":{"__isSmartRef__":true,"id":14795},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14796},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14795":{"this":{"__isSmartRef__":true,"id":976}},"14796":{"timestamp":{"__isSmartRef__":true,"id":14797},"user":"jan.sandbrink","tags":[]},"14797":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14798":{"varMapping":{"__isSmartRef__":true,"id":14799},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14800},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14799":{"this":{"__isSmartRef__":true,"id":976}},"14800":{"timestamp":{"__isSmartRef__":true,"id":14801},"user":"jan.sandbrink","tags":[]},"14801":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14802":{"varMapping":{"__isSmartRef__":true,"id":14803},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14804},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14803":{"this":{"__isSmartRef__":true,"id":976}},"14804":{"timestamp":{"__isSmartRef__":true,"id":14805},"user":"jan.sandbrink","tags":[]},"14805":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14806":{"varMapping":{"__isSmartRef__":true,"id":14807},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14808},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14807":{"this":{"__isSmartRef__":true,"id":976}},"14808":{"timestamp":{"__isSmartRef__":true,"id":14809},"user":"josi","tags":["gemtypes"]},"14809":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14810":{"varMapping":{"__isSmartRef__":true,"id":14811},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14812},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14811":{"this":{"__isSmartRef__":true,"id":976}},"14812":{"timestamp":{"__isSmartRef__":true,"id":14813},"user":"josi","tags":["gemtypes"]},"14813":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14814":{"varMapping":{"__isSmartRef__":true,"id":14815},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14816},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14815":{"this":{"__isSmartRef__":true,"id":976}},"14816":{"timestamp":{"__isSmartRef__":true,"id":14817},"user":"soergel","tags":["debug"]},"14817":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14818":{"varMapping":{"__isSmartRef__":true,"id":14819},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14820},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14819":{"this":{"__isSmartRef__":true,"id":976}},"14820":{"timestamp":{"__isSmartRef__":true,"id":14821},"user":"soergel","tags":["debug"]},"14821":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14822":{"varMapping":{"__isSmartRef__":true,"id":14823},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14824},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14823":{"this":{"__isSmartRef__":true,"id":976}},"14824":{"timestamp":{"__isSmartRef__":true,"id":14825},"user":"josi","tags":["gemtypes"]},"14825":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14826":{"varMapping":{"__isSmartRef__":true,"id":14827},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14828},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14827":{"this":{"__isSmartRef__":true,"id":976}},"14828":{"timestamp":{"__isSmartRef__":true,"id":14829},"user":"soergel","tags":[]},"14829":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14830":{"varMapping":{"__isSmartRef__":true,"id":14831},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14832},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14831":{"this":{"__isSmartRef__":true,"id":976}},"14832":{"timestamp":{"__isSmartRef__":true,"id":14833},"user":"soergel","tags":[]},"14833":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14834":{"varMapping":{"__isSmartRef__":true,"id":14835},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14836},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14835":{"this":{"__isSmartRef__":true,"id":976}},"14836":{"timestamp":{"__isSmartRef__":true,"id":14837},"user":"soergel","tags":[]},"14837":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14838":{"varMapping":{"__isSmartRef__":true,"id":14839},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14840},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14839":{"this":{"__isSmartRef__":true,"id":976}},"14840":{"timestamp":{"__isSmartRef__":true,"id":14841},"user":"josi","tags":["gemtypes"]},"14841":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14842":{"varMapping":{"__isSmartRef__":true,"id":14843},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14844},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14843":{"this":{"__isSmartRef__":true,"id":976}},"14844":{"timestamp":{"__isSmartRef__":true,"id":14845},"user":"josi","tags":["gemtypes"]},"14845":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14846":{"varMapping":{"__isSmartRef__":true,"id":14847},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14848},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14847":{"this":{"__isSmartRef__":true,"id":976}},"14848":{"timestamp":{"__isSmartRef__":true,"id":14849},"user":"jan.sandbrink","tags":[]},"14849":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14850":{"become":{"__isSmartRef__":true,"id":14851},"onMouseDown":{"__isSmartRef__":true,"id":14855},"updatePicture":{"__isSmartRef__":true,"id":14863},"ruby":{"__isSmartRef__":true,"id":14867},"switchPositionWith":{"__isSmartRef__":true,"id":14871},"addNeighbour":{"__isSmartRef__":true,"id":14875},"amethyst":{"__isSmartRef__":true,"id":14879},"diopside":{"__isSmartRef__":true,"id":14883},"gemTypes":{"__isSmartRef__":true,"id":14887},"becomeRandomGem":{"__isSmartRef__":true,"id":14891},"mark":{"__isSmartRef__":true,"id":14895},"unmark":{"__isSmartRef__":true,"id":14899},"hasNeighbour":{"__isSmartRef__":true,"id":14903},"debugMarkNeighbours":{"__isSmartRef__":true,"id":14907},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":14911},"disappear":{"__isSmartRef__":true,"id":14915},"findStreakStart":{"__isSmartRef__":true,"id":14919},"buildStreak":{"__isSmartRef__":true,"id":14923},"scoreStreak":{"__isSmartRef__":true,"id":14927},"tryToStreak":{"__isSmartRef__":true,"id":14931},"blueDiamond":{"__isSmartRef__":true,"id":14935},"prehnite":{"__isSmartRef__":true,"id":14939},"debugUnmark":{"__isSmartRef__":true,"id":14943},"debugMark":{"__isSmartRef__":true,"id":14947},"citrine":{"__isSmartRef__":true,"id":14951},"move":{"__isSmartRef__":true,"id":14955},"performMovement":{"__isSmartRef__":true,"id":14959},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":14963},"zircon":{"__isSmartRef__":true,"id":14967},"emerald":{"__isSmartRef__":true,"id":14971},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":14975}},"14851":{"varMapping":{"__isSmartRef__":true,"id":14852},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14853},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14852":{"this":{"__isSmartRef__":true,"id":849}},"14853":{"timestamp":{"__isSmartRef__":true,"id":14854},"user":"josi","tags":[]},"14854":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14855":{"varMapping":{"__isSmartRef__":true,"id":14856},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14861},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14856":{"this":{"__isSmartRef__":true,"id":849},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14857}},"14857":{"$super":{"__isSmartRef__":true,"id":14858}},"14858":{"varMapping":{"__isSmartRef__":true,"id":14859},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14860},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14859":{"obj":{"__isSmartRef__":true,"id":849},"name":"onMouseDown"},"14860":{},"14861":{"timestamp":{"__isSmartRef__":true,"id":14862},"user":"soergel","tags":[]},"14862":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14863":{"varMapping":{"__isSmartRef__":true,"id":14864},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14865},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14864":{"this":{"__isSmartRef__":true,"id":849}},"14865":{"timestamp":{"__isSmartRef__":true,"id":14866},"user":"soergel","tags":[]},"14866":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14867":{"varMapping":{"__isSmartRef__":true,"id":14868},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14869},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14868":{"this":{"__isSmartRef__":true,"id":849}},"14869":{"timestamp":{"__isSmartRef__":true,"id":14870},"user":"josi","tags":["gemtypes"]},"14870":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"14871":{"varMapping":{"__isSmartRef__":true,"id":14872},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14873},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14872":{"this":{"__isSmartRef__":true,"id":849}},"14873":{"timestamp":{"__isSmartRef__":true,"id":14874},"user":"jan.sandbrink","tags":[]},"14874":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"14875":{"varMapping":{"__isSmartRef__":true,"id":14876},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14877},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14876":{"this":{"__isSmartRef__":true,"id":849}},"14877":{"timestamp":{"__isSmartRef__":true,"id":14878},"user":"jan.sandbrink","tags":[]},"14878":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"14879":{"varMapping":{"__isSmartRef__":true,"id":14880},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":14881},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14880":{"this":{"__isSmartRef__":true,"id":849}},"14881":{"timestamp":{"__isSmartRef__":true,"id":14882},"user":"josi","tags":["gemtypes"]},"14882":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"14883":{"varMapping":{"__isSmartRef__":true,"id":14884},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":14885},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14884":{"this":{"__isSmartRef__":true,"id":849}},"14885":{"timestamp":{"__isSmartRef__":true,"id":14886},"user":"josi","tags":["gemtypes"]},"14886":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"14887":{"varMapping":{"__isSmartRef__":true,"id":14888},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":14889},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14888":{"this":{"__isSmartRef__":true,"id":849}},"14889":{"timestamp":{"__isSmartRef__":true,"id":14890},"user":"josi","tags":[]},"14890":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"14891":{"varMapping":{"__isSmartRef__":true,"id":14892},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":14893},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14892":{"this":{"__isSmartRef__":true,"id":849}},"14893":{"timestamp":{"__isSmartRef__":true,"id":14894},"user":"josi","tags":[]},"14894":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"14895":{"varMapping":{"__isSmartRef__":true,"id":14896},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":14897},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14896":{"this":{"__isSmartRef__":true,"id":849}},"14897":{"timestamp":{"__isSmartRef__":true,"id":14898},"user":"soergel","tags":[]},"14898":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"14899":{"varMapping":{"__isSmartRef__":true,"id":14900},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":14901},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14900":{"this":{"__isSmartRef__":true,"id":849}},"14901":{"timestamp":{"__isSmartRef__":true,"id":14902},"user":"soergel","tags":[]},"14902":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"14903":{"varMapping":{"__isSmartRef__":true,"id":14904},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":14905},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14904":{"this":{"__isSmartRef__":true,"id":849}},"14905":{"timestamp":{"__isSmartRef__":true,"id":14906},"user":"soergel","tags":[]},"14906":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"14907":{"varMapping":{"__isSmartRef__":true,"id":14908},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14909},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14908":{"this":{"__isSmartRef__":true,"id":849}},"14909":{"timestamp":{"__isSmartRef__":true,"id":14910},"user":"soergel","tags":["debug"]},"14910":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"14911":{"varMapping":{"__isSmartRef__":true,"id":14912},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":14913},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14912":{"this":{"__isSmartRef__":true,"id":849}},"14913":{"timestamp":{"__isSmartRef__":true,"id":14914},"user":"soergel","tags":["debug"]},"14914":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"14915":{"varMapping":{"__isSmartRef__":true,"id":14916},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14917},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14916":{"this":{"__isSmartRef__":true,"id":849}},"14917":{"timestamp":{"__isSmartRef__":true,"id":14918},"user":"soergel","tags":[]},"14918":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"14919":{"varMapping":{"__isSmartRef__":true,"id":14920},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14921},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14920":{"this":{"__isSmartRef__":true,"id":849}},"14921":{"timestamp":{"__isSmartRef__":true,"id":14922},"user":"jan.sandbrink","tags":[]},"14922":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"14923":{"varMapping":{"__isSmartRef__":true,"id":14924},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":14925},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14924":{"this":{"__isSmartRef__":true,"id":849}},"14925":{"timestamp":{"__isSmartRef__":true,"id":14926},"user":"jan.sandbrink","tags":[]},"14926":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"14927":{"varMapping":{"__isSmartRef__":true,"id":14928},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":14929},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14928":{"this":{"__isSmartRef__":true,"id":849}},"14929":{"timestamp":{"__isSmartRef__":true,"id":14930},"user":"jan.sandbrink","tags":[]},"14930":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"14931":{"varMapping":{"__isSmartRef__":true,"id":14932},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":14933},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14932":{"this":{"__isSmartRef__":true,"id":849}},"14933":{"timestamp":{"__isSmartRef__":true,"id":14934},"user":"jan.sandbrink","tags":[]},"14934":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"14935":{"varMapping":{"__isSmartRef__":true,"id":14936},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":14937},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14936":{"this":{"__isSmartRef__":true,"id":849}},"14937":{"timestamp":{"__isSmartRef__":true,"id":14938},"user":"josi","tags":["gemtypes"]},"14938":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"14939":{"varMapping":{"__isSmartRef__":true,"id":14940},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":14941},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14940":{"this":{"__isSmartRef__":true,"id":849}},"14941":{"timestamp":{"__isSmartRef__":true,"id":14942},"user":"josi","tags":["gemtypes"]},"14942":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"14943":{"varMapping":{"__isSmartRef__":true,"id":14944},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":14945},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14944":{"this":{"__isSmartRef__":true,"id":849}},"14945":{"timestamp":{"__isSmartRef__":true,"id":14946},"user":"soergel","tags":["debug"]},"14946":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"14947":{"varMapping":{"__isSmartRef__":true,"id":14948},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":14949},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14948":{"this":{"__isSmartRef__":true,"id":849}},"14949":{"timestamp":{"__isSmartRef__":true,"id":14950},"user":"soergel","tags":["debug"]},"14950":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"14951":{"varMapping":{"__isSmartRef__":true,"id":14952},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":14953},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14952":{"this":{"__isSmartRef__":true,"id":849}},"14953":{"timestamp":{"__isSmartRef__":true,"id":14954},"user":"josi","tags":["gemtypes"]},"14954":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"14955":{"varMapping":{"__isSmartRef__":true,"id":14956},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":14957},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14956":{"this":{"__isSmartRef__":true,"id":849}},"14957":{"timestamp":{"__isSmartRef__":true,"id":14958},"user":"soergel","tags":[]},"14958":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"14959":{"varMapping":{"__isSmartRef__":true,"id":14960},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":14961},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14960":{"this":{"__isSmartRef__":true,"id":849}},"14961":{"timestamp":{"__isSmartRef__":true,"id":14962},"user":"soergel","tags":[]},"14962":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"14963":{"varMapping":{"__isSmartRef__":true,"id":14964},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":14965},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14964":{"this":{"__isSmartRef__":true,"id":849}},"14965":{"timestamp":{"__isSmartRef__":true,"id":14966},"user":"soergel","tags":[]},"14966":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"14967":{"varMapping":{"__isSmartRef__":true,"id":14968},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":14969},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14968":{"this":{"__isSmartRef__":true,"id":849}},"14969":{"timestamp":{"__isSmartRef__":true,"id":14970},"user":"josi","tags":["gemtypes"]},"14970":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"14971":{"varMapping":{"__isSmartRef__":true,"id":14972},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":14973},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14972":{"this":{"__isSmartRef__":true,"id":849}},"14973":{"timestamp":{"__isSmartRef__":true,"id":14974},"user":"josi","tags":["gemtypes"]},"14974":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"14975":{"varMapping":{"__isSmartRef__":true,"id":14976},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":14977},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14976":{"this":{"__isSmartRef__":true,"id":849}},"14977":{"timestamp":{"__isSmartRef__":true,"id":14978},"user":"jan.sandbrink","tags":[]},"14978":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"14979":{"become":{"__isSmartRef__":true,"id":14980},"onMouseDown":{"__isSmartRef__":true,"id":14984},"updatePicture":{"__isSmartRef__":true,"id":14992},"ruby":{"__isSmartRef__":true,"id":14996},"switchPositionWith":{"__isSmartRef__":true,"id":15000},"addNeighbour":{"__isSmartRef__":true,"id":15004},"amethyst":{"__isSmartRef__":true,"id":15008},"diopside":{"__isSmartRef__":true,"id":15012},"gemTypes":{"__isSmartRef__":true,"id":15016},"becomeRandomGem":{"__isSmartRef__":true,"id":15020},"mark":{"__isSmartRef__":true,"id":15024},"unmark":{"__isSmartRef__":true,"id":15028},"hasNeighbour":{"__isSmartRef__":true,"id":15032},"debugMarkNeighbours":{"__isSmartRef__":true,"id":15036},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":15040},"disappear":{"__isSmartRef__":true,"id":15044},"findStreakStart":{"__isSmartRef__":true,"id":15048},"buildStreak":{"__isSmartRef__":true,"id":15052},"scoreStreak":{"__isSmartRef__":true,"id":15056},"tryToStreak":{"__isSmartRef__":true,"id":15060},"blueDiamond":{"__isSmartRef__":true,"id":15064},"prehnite":{"__isSmartRef__":true,"id":15068},"debugUnmark":{"__isSmartRef__":true,"id":15072},"debugMark":{"__isSmartRef__":true,"id":15076},"citrine":{"__isSmartRef__":true,"id":15080},"move":{"__isSmartRef__":true,"id":15084},"performMovement":{"__isSmartRef__":true,"id":15088},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":15092},"zircon":{"__isSmartRef__":true,"id":15096},"emerald":{"__isSmartRef__":true,"id":15100},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":15104}},"14980":{"varMapping":{"__isSmartRef__":true,"id":14981},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":14982},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14981":{"this":{"__isSmartRef__":true,"id":757}},"14982":{"timestamp":{"__isSmartRef__":true,"id":14983},"user":"josi","tags":[]},"14983":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"14984":{"varMapping":{"__isSmartRef__":true,"id":14985},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":14990},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14985":{"this":{"__isSmartRef__":true,"id":757},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":14986}},"14986":{"$super":{"__isSmartRef__":true,"id":14987}},"14987":{"varMapping":{"__isSmartRef__":true,"id":14988},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":14989},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14988":{"obj":{"__isSmartRef__":true,"id":757},"name":"onMouseDown"},"14989":{},"14990":{"timestamp":{"__isSmartRef__":true,"id":14991},"user":"soergel","tags":[]},"14991":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"14992":{"varMapping":{"__isSmartRef__":true,"id":14993},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":14994},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14993":{"this":{"__isSmartRef__":true,"id":757}},"14994":{"timestamp":{"__isSmartRef__":true,"id":14995},"user":"soergel","tags":[]},"14995":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"14996":{"varMapping":{"__isSmartRef__":true,"id":14997},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":14998},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"14997":{"this":{"__isSmartRef__":true,"id":757}},"14998":{"timestamp":{"__isSmartRef__":true,"id":14999},"user":"josi","tags":["gemtypes"]},"14999":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"15000":{"varMapping":{"__isSmartRef__":true,"id":15001},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15002},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15001":{"this":{"__isSmartRef__":true,"id":757}},"15002":{"timestamp":{"__isSmartRef__":true,"id":15003},"user":"jan.sandbrink","tags":[]},"15003":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"15004":{"varMapping":{"__isSmartRef__":true,"id":15005},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15006},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15005":{"this":{"__isSmartRef__":true,"id":757}},"15006":{"timestamp":{"__isSmartRef__":true,"id":15007},"user":"jan.sandbrink","tags":[]},"15007":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"15008":{"varMapping":{"__isSmartRef__":true,"id":15009},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":15010},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15009":{"this":{"__isSmartRef__":true,"id":757}},"15010":{"timestamp":{"__isSmartRef__":true,"id":15011},"user":"josi","tags":["gemtypes"]},"15011":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"15012":{"varMapping":{"__isSmartRef__":true,"id":15013},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":15014},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15013":{"this":{"__isSmartRef__":true,"id":757}},"15014":{"timestamp":{"__isSmartRef__":true,"id":15015},"user":"josi","tags":["gemtypes"]},"15015":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"15016":{"varMapping":{"__isSmartRef__":true,"id":15017},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":15018},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15017":{"this":{"__isSmartRef__":true,"id":757}},"15018":{"timestamp":{"__isSmartRef__":true,"id":15019},"user":"josi","tags":[]},"15019":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"15020":{"varMapping":{"__isSmartRef__":true,"id":15021},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":15022},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15021":{"this":{"__isSmartRef__":true,"id":757}},"15022":{"timestamp":{"__isSmartRef__":true,"id":15023},"user":"josi","tags":[]},"15023":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"15024":{"varMapping":{"__isSmartRef__":true,"id":15025},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15026},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15025":{"this":{"__isSmartRef__":true,"id":757}},"15026":{"timestamp":{"__isSmartRef__":true,"id":15027},"user":"soergel","tags":[]},"15027":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"15028":{"varMapping":{"__isSmartRef__":true,"id":15029},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15030},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15029":{"this":{"__isSmartRef__":true,"id":757}},"15030":{"timestamp":{"__isSmartRef__":true,"id":15031},"user":"soergel","tags":[]},"15031":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"15032":{"varMapping":{"__isSmartRef__":true,"id":15033},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":15034},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15033":{"this":{"__isSmartRef__":true,"id":757}},"15034":{"timestamp":{"__isSmartRef__":true,"id":15035},"user":"soergel","tags":[]},"15035":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"15036":{"varMapping":{"__isSmartRef__":true,"id":15037},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15038},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15037":{"this":{"__isSmartRef__":true,"id":757}},"15038":{"timestamp":{"__isSmartRef__":true,"id":15039},"user":"soergel","tags":["debug"]},"15039":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"15040":{"varMapping":{"__isSmartRef__":true,"id":15041},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15042},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15041":{"this":{"__isSmartRef__":true,"id":757}},"15042":{"timestamp":{"__isSmartRef__":true,"id":15043},"user":"soergel","tags":["debug"]},"15043":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"15044":{"varMapping":{"__isSmartRef__":true,"id":15045},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15046},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15045":{"this":{"__isSmartRef__":true,"id":757}},"15046":{"timestamp":{"__isSmartRef__":true,"id":15047},"user":"soergel","tags":[]},"15047":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"15048":{"varMapping":{"__isSmartRef__":true,"id":15049},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15050},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15049":{"this":{"__isSmartRef__":true,"id":757}},"15050":{"timestamp":{"__isSmartRef__":true,"id":15051},"user":"jan.sandbrink","tags":[]},"15051":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"15052":{"varMapping":{"__isSmartRef__":true,"id":15053},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":15054},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15053":{"this":{"__isSmartRef__":true,"id":757}},"15054":{"timestamp":{"__isSmartRef__":true,"id":15055},"user":"jan.sandbrink","tags":[]},"15055":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"15056":{"varMapping":{"__isSmartRef__":true,"id":15057},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15058},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15057":{"this":{"__isSmartRef__":true,"id":757}},"15058":{"timestamp":{"__isSmartRef__":true,"id":15059},"user":"jan.sandbrink","tags":[]},"15059":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"15060":{"varMapping":{"__isSmartRef__":true,"id":15061},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":15062},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15061":{"this":{"__isSmartRef__":true,"id":757}},"15062":{"timestamp":{"__isSmartRef__":true,"id":15063},"user":"jan.sandbrink","tags":[]},"15063":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"15064":{"varMapping":{"__isSmartRef__":true,"id":15065},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":15066},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15065":{"this":{"__isSmartRef__":true,"id":757}},"15066":{"timestamp":{"__isSmartRef__":true,"id":15067},"user":"josi","tags":["gemtypes"]},"15067":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"15068":{"varMapping":{"__isSmartRef__":true,"id":15069},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":15070},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15069":{"this":{"__isSmartRef__":true,"id":757}},"15070":{"timestamp":{"__isSmartRef__":true,"id":15071},"user":"josi","tags":["gemtypes"]},"15071":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"15072":{"varMapping":{"__isSmartRef__":true,"id":15073},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15074},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15073":{"this":{"__isSmartRef__":true,"id":757}},"15074":{"timestamp":{"__isSmartRef__":true,"id":15075},"user":"soergel","tags":["debug"]},"15075":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"15076":{"varMapping":{"__isSmartRef__":true,"id":15077},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15078},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15077":{"this":{"__isSmartRef__":true,"id":757}},"15078":{"timestamp":{"__isSmartRef__":true,"id":15079},"user":"soergel","tags":["debug"]},"15079":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"15080":{"varMapping":{"__isSmartRef__":true,"id":15081},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":15082},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15081":{"this":{"__isSmartRef__":true,"id":757}},"15082":{"timestamp":{"__isSmartRef__":true,"id":15083},"user":"josi","tags":["gemtypes"]},"15083":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"15084":{"varMapping":{"__isSmartRef__":true,"id":15085},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":15086},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15085":{"this":{"__isSmartRef__":true,"id":757}},"15086":{"timestamp":{"__isSmartRef__":true,"id":15087},"user":"soergel","tags":[]},"15087":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"15088":{"varMapping":{"__isSmartRef__":true,"id":15089},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":15090},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15089":{"this":{"__isSmartRef__":true,"id":757}},"15090":{"timestamp":{"__isSmartRef__":true,"id":15091},"user":"soergel","tags":[]},"15091":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"15092":{"varMapping":{"__isSmartRef__":true,"id":15093},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":15094},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15093":{"this":{"__isSmartRef__":true,"id":757}},"15094":{"timestamp":{"__isSmartRef__":true,"id":15095},"user":"soergel","tags":[]},"15095":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"15096":{"varMapping":{"__isSmartRef__":true,"id":15097},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":15098},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15097":{"this":{"__isSmartRef__":true,"id":757}},"15098":{"timestamp":{"__isSmartRef__":true,"id":15099},"user":"josi","tags":["gemtypes"]},"15099":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"15100":{"varMapping":{"__isSmartRef__":true,"id":15101},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":15102},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15101":{"this":{"__isSmartRef__":true,"id":757}},"15102":{"timestamp":{"__isSmartRef__":true,"id":15103},"user":"josi","tags":["gemtypes"]},"15103":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"15104":{"varMapping":{"__isSmartRef__":true,"id":15105},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":15106},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15105":{"this":{"__isSmartRef__":true,"id":757}},"15106":{"timestamp":{"__isSmartRef__":true,"id":15107},"user":"jan.sandbrink","tags":[]},"15107":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"15108":{"become":{"__isSmartRef__":true,"id":15109},"onMouseDown":{"__isSmartRef__":true,"id":15113},"updatePicture":{"__isSmartRef__":true,"id":15121},"ruby":{"__isSmartRef__":true,"id":15125},"switchPositionWith":{"__isSmartRef__":true,"id":15129},"addNeighbour":{"__isSmartRef__":true,"id":15133},"amethyst":{"__isSmartRef__":true,"id":15137},"diopside":{"__isSmartRef__":true,"id":15141},"gemTypes":{"__isSmartRef__":true,"id":15145},"becomeRandomGem":{"__isSmartRef__":true,"id":15149},"mark":{"__isSmartRef__":true,"id":15153},"unmark":{"__isSmartRef__":true,"id":15157},"hasNeighbour":{"__isSmartRef__":true,"id":15161},"debugMarkNeighbours":{"__isSmartRef__":true,"id":15165},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":15169},"disappear":{"__isSmartRef__":true,"id":15173},"findStreakStart":{"__isSmartRef__":true,"id":15177},"buildStreak":{"__isSmartRef__":true,"id":15181},"scoreStreak":{"__isSmartRef__":true,"id":15185},"tryToStreak":{"__isSmartRef__":true,"id":15189},"blueDiamond":{"__isSmartRef__":true,"id":15193},"prehnite":{"__isSmartRef__":true,"id":15197},"debugUnmark":{"__isSmartRef__":true,"id":15201},"debugMark":{"__isSmartRef__":true,"id":15205},"citrine":{"__isSmartRef__":true,"id":15209},"move":{"__isSmartRef__":true,"id":15213},"performMovement":{"__isSmartRef__":true,"id":15217},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":15221},"zircon":{"__isSmartRef__":true,"id":15225},"emerald":{"__isSmartRef__":true,"id":15229},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":15233}},"15109":{"varMapping":{"__isSmartRef__":true,"id":15110},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15111},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15110":{"this":{"__isSmartRef__":true,"id":630}},"15111":{"timestamp":{"__isSmartRef__":true,"id":15112},"user":"josi","tags":[]},"15112":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"15113":{"varMapping":{"__isSmartRef__":true,"id":15114},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":15119},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15114":{"this":{"__isSmartRef__":true,"id":630},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15115}},"15115":{"$super":{"__isSmartRef__":true,"id":15116}},"15116":{"varMapping":{"__isSmartRef__":true,"id":15117},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15118},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15117":{"obj":{"__isSmartRef__":true,"id":630},"name":"onMouseDown"},"15118":{},"15119":{"timestamp":{"__isSmartRef__":true,"id":15120},"user":"soergel","tags":[]},"15120":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"15121":{"varMapping":{"__isSmartRef__":true,"id":15122},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":15123},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15122":{"this":{"__isSmartRef__":true,"id":630}},"15123":{"timestamp":{"__isSmartRef__":true,"id":15124},"user":"soergel","tags":[]},"15124":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"15125":{"varMapping":{"__isSmartRef__":true,"id":15126},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":15127},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15126":{"this":{"__isSmartRef__":true,"id":630}},"15127":{"timestamp":{"__isSmartRef__":true,"id":15128},"user":"josi","tags":["gemtypes"]},"15128":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"15129":{"varMapping":{"__isSmartRef__":true,"id":15130},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15131},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15130":{"this":{"__isSmartRef__":true,"id":630}},"15131":{"timestamp":{"__isSmartRef__":true,"id":15132},"user":"jan.sandbrink","tags":[]},"15132":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"15133":{"varMapping":{"__isSmartRef__":true,"id":15134},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15135},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15134":{"this":{"__isSmartRef__":true,"id":630}},"15135":{"timestamp":{"__isSmartRef__":true,"id":15136},"user":"jan.sandbrink","tags":[]},"15136":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"15137":{"varMapping":{"__isSmartRef__":true,"id":15138},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":15139},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15138":{"this":{"__isSmartRef__":true,"id":630}},"15139":{"timestamp":{"__isSmartRef__":true,"id":15140},"user":"josi","tags":["gemtypes"]},"15140":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"15141":{"varMapping":{"__isSmartRef__":true,"id":15142},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":15143},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15142":{"this":{"__isSmartRef__":true,"id":630}},"15143":{"timestamp":{"__isSmartRef__":true,"id":15144},"user":"josi","tags":["gemtypes"]},"15144":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"15145":{"varMapping":{"__isSmartRef__":true,"id":15146},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":15147},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15146":{"this":{"__isSmartRef__":true,"id":630}},"15147":{"timestamp":{"__isSmartRef__":true,"id":15148},"user":"josi","tags":[]},"15148":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"15149":{"varMapping":{"__isSmartRef__":true,"id":15150},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":15151},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15150":{"this":{"__isSmartRef__":true,"id":630}},"15151":{"timestamp":{"__isSmartRef__":true,"id":15152},"user":"josi","tags":[]},"15152":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"15153":{"varMapping":{"__isSmartRef__":true,"id":15154},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15155},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15154":{"this":{"__isSmartRef__":true,"id":630}},"15155":{"timestamp":{"__isSmartRef__":true,"id":15156},"user":"soergel","tags":[]},"15156":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"15157":{"varMapping":{"__isSmartRef__":true,"id":15158},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15159},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15158":{"this":{"__isSmartRef__":true,"id":630}},"15159":{"timestamp":{"__isSmartRef__":true,"id":15160},"user":"soergel","tags":[]},"15160":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"15161":{"varMapping":{"__isSmartRef__":true,"id":15162},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":15163},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15162":{"this":{"__isSmartRef__":true,"id":630}},"15163":{"timestamp":{"__isSmartRef__":true,"id":15164},"user":"soergel","tags":[]},"15164":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"15165":{"varMapping":{"__isSmartRef__":true,"id":15166},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15167},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15166":{"this":{"__isSmartRef__":true,"id":630}},"15167":{"timestamp":{"__isSmartRef__":true,"id":15168},"user":"soergel","tags":["debug"]},"15168":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"15169":{"varMapping":{"__isSmartRef__":true,"id":15170},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15171},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15170":{"this":{"__isSmartRef__":true,"id":630}},"15171":{"timestamp":{"__isSmartRef__":true,"id":15172},"user":"soergel","tags":["debug"]},"15172":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"15173":{"varMapping":{"__isSmartRef__":true,"id":15174},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15175},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15174":{"this":{"__isSmartRef__":true,"id":630}},"15175":{"timestamp":{"__isSmartRef__":true,"id":15176},"user":"soergel","tags":[]},"15176":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"15177":{"varMapping":{"__isSmartRef__":true,"id":15178},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15179},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15178":{"this":{"__isSmartRef__":true,"id":630}},"15179":{"timestamp":{"__isSmartRef__":true,"id":15180},"user":"jan.sandbrink","tags":[]},"15180":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"15181":{"varMapping":{"__isSmartRef__":true,"id":15182},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":15183},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15182":{"this":{"__isSmartRef__":true,"id":630}},"15183":{"timestamp":{"__isSmartRef__":true,"id":15184},"user":"jan.sandbrink","tags":[]},"15184":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"15185":{"varMapping":{"__isSmartRef__":true,"id":15186},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15187},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15186":{"this":{"__isSmartRef__":true,"id":630}},"15187":{"timestamp":{"__isSmartRef__":true,"id":15188},"user":"jan.sandbrink","tags":[]},"15188":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"15189":{"varMapping":{"__isSmartRef__":true,"id":15190},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":15191},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15190":{"this":{"__isSmartRef__":true,"id":630}},"15191":{"timestamp":{"__isSmartRef__":true,"id":15192},"user":"jan.sandbrink","tags":[]},"15192":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"15193":{"varMapping":{"__isSmartRef__":true,"id":15194},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":15195},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15194":{"this":{"__isSmartRef__":true,"id":630}},"15195":{"timestamp":{"__isSmartRef__":true,"id":15196},"user":"josi","tags":["gemtypes"]},"15196":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"15197":{"varMapping":{"__isSmartRef__":true,"id":15198},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":15199},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15198":{"this":{"__isSmartRef__":true,"id":630}},"15199":{"timestamp":{"__isSmartRef__":true,"id":15200},"user":"josi","tags":["gemtypes"]},"15200":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"15201":{"varMapping":{"__isSmartRef__":true,"id":15202},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15203},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15202":{"this":{"__isSmartRef__":true,"id":630}},"15203":{"timestamp":{"__isSmartRef__":true,"id":15204},"user":"soergel","tags":["debug"]},"15204":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"15205":{"varMapping":{"__isSmartRef__":true,"id":15206},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15207},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15206":{"this":{"__isSmartRef__":true,"id":630}},"15207":{"timestamp":{"__isSmartRef__":true,"id":15208},"user":"soergel","tags":["debug"]},"15208":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"15209":{"varMapping":{"__isSmartRef__":true,"id":15210},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":15211},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15210":{"this":{"__isSmartRef__":true,"id":630}},"15211":{"timestamp":{"__isSmartRef__":true,"id":15212},"user":"josi","tags":["gemtypes"]},"15212":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"15213":{"varMapping":{"__isSmartRef__":true,"id":15214},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":15215},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15214":{"this":{"__isSmartRef__":true,"id":630}},"15215":{"timestamp":{"__isSmartRef__":true,"id":15216},"user":"soergel","tags":[]},"15216":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"15217":{"varMapping":{"__isSmartRef__":true,"id":15218},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":15219},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15218":{"this":{"__isSmartRef__":true,"id":630}},"15219":{"timestamp":{"__isSmartRef__":true,"id":15220},"user":"soergel","tags":[]},"15220":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"15221":{"varMapping":{"__isSmartRef__":true,"id":15222},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":15223},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15222":{"this":{"__isSmartRef__":true,"id":630}},"15223":{"timestamp":{"__isSmartRef__":true,"id":15224},"user":"soergel","tags":[]},"15224":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"15225":{"varMapping":{"__isSmartRef__":true,"id":15226},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":15227},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15226":{"this":{"__isSmartRef__":true,"id":630}},"15227":{"timestamp":{"__isSmartRef__":true,"id":15228},"user":"josi","tags":["gemtypes"]},"15228":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"15229":{"varMapping":{"__isSmartRef__":true,"id":15230},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":15231},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15230":{"this":{"__isSmartRef__":true,"id":630}},"15231":{"timestamp":{"__isSmartRef__":true,"id":15232},"user":"josi","tags":["gemtypes"]},"15232":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"15233":{"varMapping":{"__isSmartRef__":true,"id":15234},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":15235},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15234":{"this":{"__isSmartRef__":true,"id":630}},"15235":{"timestamp":{"__isSmartRef__":true,"id":15236},"user":"jan.sandbrink","tags":[]},"15236":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"15237":{"become":{"__isSmartRef__":true,"id":15238},"onMouseDown":{"__isSmartRef__":true,"id":15242},"updatePicture":{"__isSmartRef__":true,"id":15250},"ruby":{"__isSmartRef__":true,"id":15254},"switchPositionWith":{"__isSmartRef__":true,"id":15258},"addNeighbour":{"__isSmartRef__":true,"id":15262},"amethyst":{"__isSmartRef__":true,"id":15266},"diopside":{"__isSmartRef__":true,"id":15270},"gemTypes":{"__isSmartRef__":true,"id":15274},"becomeRandomGem":{"__isSmartRef__":true,"id":15278},"mark":{"__isSmartRef__":true,"id":15282},"unmark":{"__isSmartRef__":true,"id":15286},"hasNeighbour":{"__isSmartRef__":true,"id":15290},"debugMarkNeighbours":{"__isSmartRef__":true,"id":15294},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":15298},"disappear":{"__isSmartRef__":true,"id":15302},"findStreakStart":{"__isSmartRef__":true,"id":15306},"buildStreak":{"__isSmartRef__":true,"id":15310},"scoreStreak":{"__isSmartRef__":true,"id":15314},"tryToStreak":{"__isSmartRef__":true,"id":15318},"blueDiamond":{"__isSmartRef__":true,"id":15322},"prehnite":{"__isSmartRef__":true,"id":15326},"debugUnmark":{"__isSmartRef__":true,"id":15330},"debugMark":{"__isSmartRef__":true,"id":15334},"citrine":{"__isSmartRef__":true,"id":15338},"move":{"__isSmartRef__":true,"id":15342},"performMovement":{"__isSmartRef__":true,"id":15346},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":15350},"zircon":{"__isSmartRef__":true,"id":15354},"emerald":{"__isSmartRef__":true,"id":15358},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":15362}},"15238":{"varMapping":{"__isSmartRef__":true,"id":15239},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15240},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15239":{"this":{"__isSmartRef__":true,"id":498}},"15240":{"timestamp":{"__isSmartRef__":true,"id":15241},"user":"josi","tags":[]},"15241":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"15242":{"varMapping":{"__isSmartRef__":true,"id":15243},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":15248},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15243":{"this":{"__isSmartRef__":true,"id":498},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15244}},"15244":{"$super":{"__isSmartRef__":true,"id":15245}},"15245":{"varMapping":{"__isSmartRef__":true,"id":15246},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15247},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15246":{"obj":{"__isSmartRef__":true,"id":498},"name":"onMouseDown"},"15247":{},"15248":{"timestamp":{"__isSmartRef__":true,"id":15249},"user":"soergel","tags":[]},"15249":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"15250":{"varMapping":{"__isSmartRef__":true,"id":15251},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":15252},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15251":{"this":{"__isSmartRef__":true,"id":498}},"15252":{"timestamp":{"__isSmartRef__":true,"id":15253},"user":"soergel","tags":[]},"15253":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"15254":{"varMapping":{"__isSmartRef__":true,"id":15255},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":15256},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15255":{"this":{"__isSmartRef__":true,"id":498}},"15256":{"timestamp":{"__isSmartRef__":true,"id":15257},"user":"josi","tags":["gemtypes"]},"15257":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"15258":{"varMapping":{"__isSmartRef__":true,"id":15259},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15260},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15259":{"this":{"__isSmartRef__":true,"id":498}},"15260":{"timestamp":{"__isSmartRef__":true,"id":15261},"user":"jan.sandbrink","tags":[]},"15261":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"15262":{"varMapping":{"__isSmartRef__":true,"id":15263},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15264},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15263":{"this":{"__isSmartRef__":true,"id":498}},"15264":{"timestamp":{"__isSmartRef__":true,"id":15265},"user":"jan.sandbrink","tags":[]},"15265":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"15266":{"varMapping":{"__isSmartRef__":true,"id":15267},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":15268},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15267":{"this":{"__isSmartRef__":true,"id":498}},"15268":{"timestamp":{"__isSmartRef__":true,"id":15269},"user":"josi","tags":["gemtypes"]},"15269":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"15270":{"varMapping":{"__isSmartRef__":true,"id":15271},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":15272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15271":{"this":{"__isSmartRef__":true,"id":498}},"15272":{"timestamp":{"__isSmartRef__":true,"id":15273},"user":"josi","tags":["gemtypes"]},"15273":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"15274":{"varMapping":{"__isSmartRef__":true,"id":15275},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":15276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15275":{"this":{"__isSmartRef__":true,"id":498}},"15276":{"timestamp":{"__isSmartRef__":true,"id":15277},"user":"josi","tags":[]},"15277":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"15278":{"varMapping":{"__isSmartRef__":true,"id":15279},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":15280},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15279":{"this":{"__isSmartRef__":true,"id":498}},"15280":{"timestamp":{"__isSmartRef__":true,"id":15281},"user":"josi","tags":[]},"15281":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"15282":{"varMapping":{"__isSmartRef__":true,"id":15283},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15284},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15283":{"this":{"__isSmartRef__":true,"id":498}},"15284":{"timestamp":{"__isSmartRef__":true,"id":15285},"user":"soergel","tags":[]},"15285":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"15286":{"varMapping":{"__isSmartRef__":true,"id":15287},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15288},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15287":{"this":{"__isSmartRef__":true,"id":498}},"15288":{"timestamp":{"__isSmartRef__":true,"id":15289},"user":"soergel","tags":[]},"15289":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"15290":{"varMapping":{"__isSmartRef__":true,"id":15291},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":15292},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15291":{"this":{"__isSmartRef__":true,"id":498}},"15292":{"timestamp":{"__isSmartRef__":true,"id":15293},"user":"soergel","tags":[]},"15293":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"15294":{"varMapping":{"__isSmartRef__":true,"id":15295},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15296},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15295":{"this":{"__isSmartRef__":true,"id":498}},"15296":{"timestamp":{"__isSmartRef__":true,"id":15297},"user":"soergel","tags":["debug"]},"15297":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"15298":{"varMapping":{"__isSmartRef__":true,"id":15299},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15300},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15299":{"this":{"__isSmartRef__":true,"id":498}},"15300":{"timestamp":{"__isSmartRef__":true,"id":15301},"user":"soergel","tags":["debug"]},"15301":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"15302":{"varMapping":{"__isSmartRef__":true,"id":15303},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15304},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15303":{"this":{"__isSmartRef__":true,"id":498}},"15304":{"timestamp":{"__isSmartRef__":true,"id":15305},"user":"soergel","tags":[]},"15305":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"15306":{"varMapping":{"__isSmartRef__":true,"id":15307},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15308},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15307":{"this":{"__isSmartRef__":true,"id":498}},"15308":{"timestamp":{"__isSmartRef__":true,"id":15309},"user":"jan.sandbrink","tags":[]},"15309":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"15310":{"varMapping":{"__isSmartRef__":true,"id":15311},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":15312},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15311":{"this":{"__isSmartRef__":true,"id":498}},"15312":{"timestamp":{"__isSmartRef__":true,"id":15313},"user":"jan.sandbrink","tags":[]},"15313":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"15314":{"varMapping":{"__isSmartRef__":true,"id":15315},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15316},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15315":{"this":{"__isSmartRef__":true,"id":498}},"15316":{"timestamp":{"__isSmartRef__":true,"id":15317},"user":"jan.sandbrink","tags":[]},"15317":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"15318":{"varMapping":{"__isSmartRef__":true,"id":15319},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":15320},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15319":{"this":{"__isSmartRef__":true,"id":498}},"15320":{"timestamp":{"__isSmartRef__":true,"id":15321},"user":"jan.sandbrink","tags":[]},"15321":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"15322":{"varMapping":{"__isSmartRef__":true,"id":15323},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":15324},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15323":{"this":{"__isSmartRef__":true,"id":498}},"15324":{"timestamp":{"__isSmartRef__":true,"id":15325},"user":"josi","tags":["gemtypes"]},"15325":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"15326":{"varMapping":{"__isSmartRef__":true,"id":15327},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":15328},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15327":{"this":{"__isSmartRef__":true,"id":498}},"15328":{"timestamp":{"__isSmartRef__":true,"id":15329},"user":"josi","tags":["gemtypes"]},"15329":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"15330":{"varMapping":{"__isSmartRef__":true,"id":15331},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15332},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15331":{"this":{"__isSmartRef__":true,"id":498}},"15332":{"timestamp":{"__isSmartRef__":true,"id":15333},"user":"soergel","tags":["debug"]},"15333":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"15334":{"varMapping":{"__isSmartRef__":true,"id":15335},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15336},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15335":{"this":{"__isSmartRef__":true,"id":498}},"15336":{"timestamp":{"__isSmartRef__":true,"id":15337},"user":"soergel","tags":["debug"]},"15337":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"15338":{"varMapping":{"__isSmartRef__":true,"id":15339},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":15340},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15339":{"this":{"__isSmartRef__":true,"id":498}},"15340":{"timestamp":{"__isSmartRef__":true,"id":15341},"user":"josi","tags":["gemtypes"]},"15341":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"15342":{"varMapping":{"__isSmartRef__":true,"id":15343},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":15344},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15343":{"this":{"__isSmartRef__":true,"id":498}},"15344":{"timestamp":{"__isSmartRef__":true,"id":15345},"user":"soergel","tags":[]},"15345":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"15346":{"varMapping":{"__isSmartRef__":true,"id":15347},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":15348},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15347":{"this":{"__isSmartRef__":true,"id":498}},"15348":{"timestamp":{"__isSmartRef__":true,"id":15349},"user":"soergel","tags":[]},"15349":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"15350":{"varMapping":{"__isSmartRef__":true,"id":15351},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":15352},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15351":{"this":{"__isSmartRef__":true,"id":498}},"15352":{"timestamp":{"__isSmartRef__":true,"id":15353},"user":"soergel","tags":[]},"15353":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"15354":{"varMapping":{"__isSmartRef__":true,"id":15355},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":15356},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15355":{"this":{"__isSmartRef__":true,"id":498}},"15356":{"timestamp":{"__isSmartRef__":true,"id":15357},"user":"josi","tags":["gemtypes"]},"15357":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"15358":{"varMapping":{"__isSmartRef__":true,"id":15359},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":15360},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15359":{"this":{"__isSmartRef__":true,"id":498}},"15360":{"timestamp":{"__isSmartRef__":true,"id":15361},"user":"josi","tags":["gemtypes"]},"15361":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"15362":{"varMapping":{"__isSmartRef__":true,"id":15363},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":15364},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15363":{"this":{"__isSmartRef__":true,"id":498}},"15364":{"timestamp":{"__isSmartRef__":true,"id":15365},"user":"jan.sandbrink","tags":[]},"15365":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"15366":{"become":{"__isSmartRef__":true,"id":15367},"onMouseDown":{"__isSmartRef__":true,"id":15371},"updatePicture":{"__isSmartRef__":true,"id":15379},"ruby":{"__isSmartRef__":true,"id":15383},"switchPositionWith":{"__isSmartRef__":true,"id":15387},"addNeighbour":{"__isSmartRef__":true,"id":15391},"amethyst":{"__isSmartRef__":true,"id":15395},"diopside":{"__isSmartRef__":true,"id":15399},"gemTypes":{"__isSmartRef__":true,"id":15403},"becomeRandomGem":{"__isSmartRef__":true,"id":15407},"mark":{"__isSmartRef__":true,"id":15411},"unmark":{"__isSmartRef__":true,"id":15415},"hasNeighbour":{"__isSmartRef__":true,"id":15419},"debugMarkNeighbours":{"__isSmartRef__":true,"id":15423},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":15427},"disappear":{"__isSmartRef__":true,"id":15431},"findStreakStart":{"__isSmartRef__":true,"id":15435},"buildStreak":{"__isSmartRef__":true,"id":15439},"scoreStreak":{"__isSmartRef__":true,"id":15443},"tryToStreak":{"__isSmartRef__":true,"id":15447},"blueDiamond":{"__isSmartRef__":true,"id":15451},"prehnite":{"__isSmartRef__":true,"id":15455},"debugUnmark":{"__isSmartRef__":true,"id":15459},"debugMark":{"__isSmartRef__":true,"id":15463},"citrine":{"__isSmartRef__":true,"id":15467},"move":{"__isSmartRef__":true,"id":15471},"performMovement":{"__isSmartRef__":true,"id":15475},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":15479},"zircon":{"__isSmartRef__":true,"id":15483},"emerald":{"__isSmartRef__":true,"id":15487},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":15491}},"15367":{"varMapping":{"__isSmartRef__":true,"id":15368},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15369},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15368":{"this":{"__isSmartRef__":true,"id":366}},"15369":{"timestamp":{"__isSmartRef__":true,"id":15370},"user":"josi","tags":[]},"15370":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"15371":{"varMapping":{"__isSmartRef__":true,"id":15372},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":15377},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15372":{"this":{"__isSmartRef__":true,"id":366},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15373}},"15373":{"$super":{"__isSmartRef__":true,"id":15374}},"15374":{"varMapping":{"__isSmartRef__":true,"id":15375},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15376},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15375":{"obj":{"__isSmartRef__":true,"id":366},"name":"onMouseDown"},"15376":{},"15377":{"timestamp":{"__isSmartRef__":true,"id":15378},"user":"soergel","tags":[]},"15378":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"15379":{"varMapping":{"__isSmartRef__":true,"id":15380},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":15381},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15380":{"this":{"__isSmartRef__":true,"id":366}},"15381":{"timestamp":{"__isSmartRef__":true,"id":15382},"user":"soergel","tags":[]},"15382":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"15383":{"varMapping":{"__isSmartRef__":true,"id":15384},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":15385},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15384":{"this":{"__isSmartRef__":true,"id":366}},"15385":{"timestamp":{"__isSmartRef__":true,"id":15386},"user":"josi","tags":["gemtypes"]},"15386":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"15387":{"varMapping":{"__isSmartRef__":true,"id":15388},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15389},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15388":{"this":{"__isSmartRef__":true,"id":366}},"15389":{"timestamp":{"__isSmartRef__":true,"id":15390},"user":"jan.sandbrink","tags":[]},"15390":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"15391":{"varMapping":{"__isSmartRef__":true,"id":15392},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15393},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15392":{"this":{"__isSmartRef__":true,"id":366}},"15393":{"timestamp":{"__isSmartRef__":true,"id":15394},"user":"jan.sandbrink","tags":[]},"15394":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"15395":{"varMapping":{"__isSmartRef__":true,"id":15396},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":15397},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15396":{"this":{"__isSmartRef__":true,"id":366}},"15397":{"timestamp":{"__isSmartRef__":true,"id":15398},"user":"josi","tags":["gemtypes"]},"15398":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"15399":{"varMapping":{"__isSmartRef__":true,"id":15400},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":15401},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15400":{"this":{"__isSmartRef__":true,"id":366}},"15401":{"timestamp":{"__isSmartRef__":true,"id":15402},"user":"josi","tags":["gemtypes"]},"15402":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"15403":{"varMapping":{"__isSmartRef__":true,"id":15404},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":15405},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15404":{"this":{"__isSmartRef__":true,"id":366}},"15405":{"timestamp":{"__isSmartRef__":true,"id":15406},"user":"josi","tags":[]},"15406":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"15407":{"varMapping":{"__isSmartRef__":true,"id":15408},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":15409},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15408":{"this":{"__isSmartRef__":true,"id":366}},"15409":{"timestamp":{"__isSmartRef__":true,"id":15410},"user":"josi","tags":[]},"15410":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"15411":{"varMapping":{"__isSmartRef__":true,"id":15412},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15413},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15412":{"this":{"__isSmartRef__":true,"id":366}},"15413":{"timestamp":{"__isSmartRef__":true,"id":15414},"user":"soergel","tags":[]},"15414":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"15415":{"varMapping":{"__isSmartRef__":true,"id":15416},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15417},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15416":{"this":{"__isSmartRef__":true,"id":366}},"15417":{"timestamp":{"__isSmartRef__":true,"id":15418},"user":"soergel","tags":[]},"15418":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"15419":{"varMapping":{"__isSmartRef__":true,"id":15420},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":15421},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15420":{"this":{"__isSmartRef__":true,"id":366}},"15421":{"timestamp":{"__isSmartRef__":true,"id":15422},"user":"soergel","tags":[]},"15422":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"15423":{"varMapping":{"__isSmartRef__":true,"id":15424},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15425},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15424":{"this":{"__isSmartRef__":true,"id":366}},"15425":{"timestamp":{"__isSmartRef__":true,"id":15426},"user":"soergel","tags":["debug"]},"15426":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"15427":{"varMapping":{"__isSmartRef__":true,"id":15428},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15429},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15428":{"this":{"__isSmartRef__":true,"id":366}},"15429":{"timestamp":{"__isSmartRef__":true,"id":15430},"user":"soergel","tags":["debug"]},"15430":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"15431":{"varMapping":{"__isSmartRef__":true,"id":15432},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15433},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15432":{"this":{"__isSmartRef__":true,"id":366}},"15433":{"timestamp":{"__isSmartRef__":true,"id":15434},"user":"soergel","tags":[]},"15434":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"15435":{"varMapping":{"__isSmartRef__":true,"id":15436},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15437},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15436":{"this":{"__isSmartRef__":true,"id":366}},"15437":{"timestamp":{"__isSmartRef__":true,"id":15438},"user":"jan.sandbrink","tags":[]},"15438":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"15439":{"varMapping":{"__isSmartRef__":true,"id":15440},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":15441},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15440":{"this":{"__isSmartRef__":true,"id":366}},"15441":{"timestamp":{"__isSmartRef__":true,"id":15442},"user":"jan.sandbrink","tags":[]},"15442":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"15443":{"varMapping":{"__isSmartRef__":true,"id":15444},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15444":{"this":{"__isSmartRef__":true,"id":366}},"15445":{"timestamp":{"__isSmartRef__":true,"id":15446},"user":"jan.sandbrink","tags":[]},"15446":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"15447":{"varMapping":{"__isSmartRef__":true,"id":15448},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":15449},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15448":{"this":{"__isSmartRef__":true,"id":366}},"15449":{"timestamp":{"__isSmartRef__":true,"id":15450},"user":"jan.sandbrink","tags":[]},"15450":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"15451":{"varMapping":{"__isSmartRef__":true,"id":15452},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":15453},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15452":{"this":{"__isSmartRef__":true,"id":366}},"15453":{"timestamp":{"__isSmartRef__":true,"id":15454},"user":"josi","tags":["gemtypes"]},"15454":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"15455":{"varMapping":{"__isSmartRef__":true,"id":15456},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":15457},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15456":{"this":{"__isSmartRef__":true,"id":366}},"15457":{"timestamp":{"__isSmartRef__":true,"id":15458},"user":"josi","tags":["gemtypes"]},"15458":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"15459":{"varMapping":{"__isSmartRef__":true,"id":15460},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15461},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15460":{"this":{"__isSmartRef__":true,"id":366}},"15461":{"timestamp":{"__isSmartRef__":true,"id":15462},"user":"soergel","tags":["debug"]},"15462":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"15463":{"varMapping":{"__isSmartRef__":true,"id":15464},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15465},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15464":{"this":{"__isSmartRef__":true,"id":366}},"15465":{"timestamp":{"__isSmartRef__":true,"id":15466},"user":"soergel","tags":["debug"]},"15466":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"15467":{"varMapping":{"__isSmartRef__":true,"id":15468},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":15469},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15468":{"this":{"__isSmartRef__":true,"id":366}},"15469":{"timestamp":{"__isSmartRef__":true,"id":15470},"user":"josi","tags":["gemtypes"]},"15470":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"15471":{"varMapping":{"__isSmartRef__":true,"id":15472},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":15473},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15472":{"this":{"__isSmartRef__":true,"id":366}},"15473":{"timestamp":{"__isSmartRef__":true,"id":15474},"user":"soergel","tags":[]},"15474":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"15475":{"varMapping":{"__isSmartRef__":true,"id":15476},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":15477},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15476":{"this":{"__isSmartRef__":true,"id":366}},"15477":{"timestamp":{"__isSmartRef__":true,"id":15478},"user":"soergel","tags":[]},"15478":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"15479":{"varMapping":{"__isSmartRef__":true,"id":15480},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":15481},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15480":{"this":{"__isSmartRef__":true,"id":366}},"15481":{"timestamp":{"__isSmartRef__":true,"id":15482},"user":"soergel","tags":[]},"15482":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"15483":{"varMapping":{"__isSmartRef__":true,"id":15484},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":15485},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15484":{"this":{"__isSmartRef__":true,"id":366}},"15485":{"timestamp":{"__isSmartRef__":true,"id":15486},"user":"josi","tags":["gemtypes"]},"15486":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"15487":{"varMapping":{"__isSmartRef__":true,"id":15488},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":15489},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15488":{"this":{"__isSmartRef__":true,"id":366}},"15489":{"timestamp":{"__isSmartRef__":true,"id":15490},"user":"josi","tags":["gemtypes"]},"15490":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"15491":{"varMapping":{"__isSmartRef__":true,"id":15492},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":15493},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15492":{"this":{"__isSmartRef__":true,"id":366}},"15493":{"timestamp":{"__isSmartRef__":true,"id":15494},"user":"jan.sandbrink","tags":[]},"15494":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"15495":{"become":{"__isSmartRef__":true,"id":15496},"onMouseDown":{"__isSmartRef__":true,"id":15500},"updatePicture":{"__isSmartRef__":true,"id":15508},"ruby":{"__isSmartRef__":true,"id":15512},"switchPositionWith":{"__isSmartRef__":true,"id":15516},"addNeighbour":{"__isSmartRef__":true,"id":15520},"amethyst":{"__isSmartRef__":true,"id":15524},"diopside":{"__isSmartRef__":true,"id":15528},"gemTypes":{"__isSmartRef__":true,"id":15532},"becomeRandomGem":{"__isSmartRef__":true,"id":15536},"mark":{"__isSmartRef__":true,"id":15540},"unmark":{"__isSmartRef__":true,"id":15544},"hasNeighbour":{"__isSmartRef__":true,"id":15548},"debugMarkNeighbours":{"__isSmartRef__":true,"id":15552},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":15556},"disappear":{"__isSmartRef__":true,"id":15560},"findStreakStart":{"__isSmartRef__":true,"id":15564},"buildStreak":{"__isSmartRef__":true,"id":15568},"scoreStreak":{"__isSmartRef__":true,"id":15572},"tryToStreak":{"__isSmartRef__":true,"id":15576},"blueDiamond":{"__isSmartRef__":true,"id":15580},"prehnite":{"__isSmartRef__":true,"id":15584},"debugUnmark":{"__isSmartRef__":true,"id":15588},"debugMark":{"__isSmartRef__":true,"id":15592},"citrine":{"__isSmartRef__":true,"id":15596},"move":{"__isSmartRef__":true,"id":15600},"performMovement":{"__isSmartRef__":true,"id":15604},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":15608},"zircon":{"__isSmartRef__":true,"id":15612},"emerald":{"__isSmartRef__":true,"id":15616},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":15620}},"15496":{"varMapping":{"__isSmartRef__":true,"id":15497},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15498},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15497":{"this":{"__isSmartRef__":true,"id":248}},"15498":{"timestamp":{"__isSmartRef__":true,"id":15499},"user":"josi","tags":[]},"15499":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"15500":{"varMapping":{"__isSmartRef__":true,"id":15501},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":15506},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15501":{"this":{"__isSmartRef__":true,"id":248},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15502}},"15502":{"$super":{"__isSmartRef__":true,"id":15503}},"15503":{"varMapping":{"__isSmartRef__":true,"id":15504},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15505},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15504":{"obj":{"__isSmartRef__":true,"id":248},"name":"onMouseDown"},"15505":{},"15506":{"timestamp":{"__isSmartRef__":true,"id":15507},"user":"soergel","tags":[]},"15507":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"15508":{"varMapping":{"__isSmartRef__":true,"id":15509},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":15510},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15509":{"this":{"__isSmartRef__":true,"id":248}},"15510":{"timestamp":{"__isSmartRef__":true,"id":15511},"user":"soergel","tags":[]},"15511":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"15512":{"varMapping":{"__isSmartRef__":true,"id":15513},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":15514},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15513":{"this":{"__isSmartRef__":true,"id":248}},"15514":{"timestamp":{"__isSmartRef__":true,"id":15515},"user":"josi","tags":["gemtypes"]},"15515":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"15516":{"varMapping":{"__isSmartRef__":true,"id":15517},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15518},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15517":{"this":{"__isSmartRef__":true,"id":248}},"15518":{"timestamp":{"__isSmartRef__":true,"id":15519},"user":"jan.sandbrink","tags":[]},"15519":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"15520":{"varMapping":{"__isSmartRef__":true,"id":15521},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15522},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15521":{"this":{"__isSmartRef__":true,"id":248}},"15522":{"timestamp":{"__isSmartRef__":true,"id":15523},"user":"jan.sandbrink","tags":[]},"15523":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"15524":{"varMapping":{"__isSmartRef__":true,"id":15525},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":15526},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15525":{"this":{"__isSmartRef__":true,"id":248}},"15526":{"timestamp":{"__isSmartRef__":true,"id":15527},"user":"josi","tags":["gemtypes"]},"15527":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"15528":{"varMapping":{"__isSmartRef__":true,"id":15529},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":15530},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15529":{"this":{"__isSmartRef__":true,"id":248}},"15530":{"timestamp":{"__isSmartRef__":true,"id":15531},"user":"josi","tags":["gemtypes"]},"15531":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"15532":{"varMapping":{"__isSmartRef__":true,"id":15533},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":15534},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15533":{"this":{"__isSmartRef__":true,"id":248}},"15534":{"timestamp":{"__isSmartRef__":true,"id":15535},"user":"josi","tags":[]},"15535":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"15536":{"varMapping":{"__isSmartRef__":true,"id":15537},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":15538},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15537":{"this":{"__isSmartRef__":true,"id":248}},"15538":{"timestamp":{"__isSmartRef__":true,"id":15539},"user":"josi","tags":[]},"15539":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"15540":{"varMapping":{"__isSmartRef__":true,"id":15541},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15542},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15541":{"this":{"__isSmartRef__":true,"id":248}},"15542":{"timestamp":{"__isSmartRef__":true,"id":15543},"user":"soergel","tags":[]},"15543":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"15544":{"varMapping":{"__isSmartRef__":true,"id":15545},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15546},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15545":{"this":{"__isSmartRef__":true,"id":248}},"15546":{"timestamp":{"__isSmartRef__":true,"id":15547},"user":"soergel","tags":[]},"15547":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"15548":{"varMapping":{"__isSmartRef__":true,"id":15549},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":15550},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15549":{"this":{"__isSmartRef__":true,"id":248}},"15550":{"timestamp":{"__isSmartRef__":true,"id":15551},"user":"soergel","tags":[]},"15551":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"15552":{"varMapping":{"__isSmartRef__":true,"id":15553},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15554},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15553":{"this":{"__isSmartRef__":true,"id":248}},"15554":{"timestamp":{"__isSmartRef__":true,"id":15555},"user":"soergel","tags":["debug"]},"15555":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"15556":{"varMapping":{"__isSmartRef__":true,"id":15557},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15558},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15557":{"this":{"__isSmartRef__":true,"id":248}},"15558":{"timestamp":{"__isSmartRef__":true,"id":15559},"user":"soergel","tags":["debug"]},"15559":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"15560":{"varMapping":{"__isSmartRef__":true,"id":15561},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15562},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15561":{"this":{"__isSmartRef__":true,"id":248}},"15562":{"timestamp":{"__isSmartRef__":true,"id":15563},"user":"soergel","tags":[]},"15563":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"15564":{"varMapping":{"__isSmartRef__":true,"id":15565},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15566},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15565":{"this":{"__isSmartRef__":true,"id":248}},"15566":{"timestamp":{"__isSmartRef__":true,"id":15567},"user":"jan.sandbrink","tags":[]},"15567":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"15568":{"varMapping":{"__isSmartRef__":true,"id":15569},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":15570},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15569":{"this":{"__isSmartRef__":true,"id":248}},"15570":{"timestamp":{"__isSmartRef__":true,"id":15571},"user":"jan.sandbrink","tags":[]},"15571":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"15572":{"varMapping":{"__isSmartRef__":true,"id":15573},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15574},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15573":{"this":{"__isSmartRef__":true,"id":248}},"15574":{"timestamp":{"__isSmartRef__":true,"id":15575},"user":"jan.sandbrink","tags":[]},"15575":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"15576":{"varMapping":{"__isSmartRef__":true,"id":15577},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":15578},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15577":{"this":{"__isSmartRef__":true,"id":248}},"15578":{"timestamp":{"__isSmartRef__":true,"id":15579},"user":"jan.sandbrink","tags":[]},"15579":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"15580":{"varMapping":{"__isSmartRef__":true,"id":15581},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":15582},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15581":{"this":{"__isSmartRef__":true,"id":248}},"15582":{"timestamp":{"__isSmartRef__":true,"id":15583},"user":"josi","tags":["gemtypes"]},"15583":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"15584":{"varMapping":{"__isSmartRef__":true,"id":15585},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":15586},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15585":{"this":{"__isSmartRef__":true,"id":248}},"15586":{"timestamp":{"__isSmartRef__":true,"id":15587},"user":"josi","tags":["gemtypes"]},"15587":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"15588":{"varMapping":{"__isSmartRef__":true,"id":15589},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15590},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15589":{"this":{"__isSmartRef__":true,"id":248}},"15590":{"timestamp":{"__isSmartRef__":true,"id":15591},"user":"soergel","tags":["debug"]},"15591":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"15592":{"varMapping":{"__isSmartRef__":true,"id":15593},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15594},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15593":{"this":{"__isSmartRef__":true,"id":248}},"15594":{"timestamp":{"__isSmartRef__":true,"id":15595},"user":"soergel","tags":["debug"]},"15595":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"15596":{"varMapping":{"__isSmartRef__":true,"id":15597},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":15598},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15597":{"this":{"__isSmartRef__":true,"id":248}},"15598":{"timestamp":{"__isSmartRef__":true,"id":15599},"user":"josi","tags":["gemtypes"]},"15599":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"15600":{"varMapping":{"__isSmartRef__":true,"id":15601},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":15602},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15601":{"this":{"__isSmartRef__":true,"id":248}},"15602":{"timestamp":{"__isSmartRef__":true,"id":15603},"user":"soergel","tags":[]},"15603":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"15604":{"varMapping":{"__isSmartRef__":true,"id":15605},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":15606},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15605":{"this":{"__isSmartRef__":true,"id":248}},"15606":{"timestamp":{"__isSmartRef__":true,"id":15607},"user":"soergel","tags":[]},"15607":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"15608":{"varMapping":{"__isSmartRef__":true,"id":15609},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":15610},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15609":{"this":{"__isSmartRef__":true,"id":248}},"15610":{"timestamp":{"__isSmartRef__":true,"id":15611},"user":"soergel","tags":[]},"15611":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"15612":{"varMapping":{"__isSmartRef__":true,"id":15613},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":15614},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15613":{"this":{"__isSmartRef__":true,"id":248}},"15614":{"timestamp":{"__isSmartRef__":true,"id":15615},"user":"josi","tags":["gemtypes"]},"15615":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"15616":{"varMapping":{"__isSmartRef__":true,"id":15617},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":15618},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15617":{"this":{"__isSmartRef__":true,"id":248}},"15618":{"timestamp":{"__isSmartRef__":true,"id":15619},"user":"josi","tags":["gemtypes"]},"15619":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"15620":{"varMapping":{"__isSmartRef__":true,"id":15621},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":15622},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15621":{"this":{"__isSmartRef__":true,"id":248}},"15622":{"timestamp":{"__isSmartRef__":true,"id":15623},"user":"jan.sandbrink","tags":[]},"15623":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"15624":{"become":{"__isSmartRef__":true,"id":15625},"onMouseDown":{"__isSmartRef__":true,"id":15629},"updatePicture":{"__isSmartRef__":true,"id":15637},"ruby":{"__isSmartRef__":true,"id":15641},"switchPositionWith":{"__isSmartRef__":true,"id":15645},"addNeighbour":{"__isSmartRef__":true,"id":15649},"amethyst":{"__isSmartRef__":true,"id":15653},"diopside":{"__isSmartRef__":true,"id":15657},"gemTypes":{"__isSmartRef__":true,"id":15661},"becomeRandomGem":{"__isSmartRef__":true,"id":15665},"mark":{"__isSmartRef__":true,"id":15669},"unmark":{"__isSmartRef__":true,"id":15673},"hasNeighbour":{"__isSmartRef__":true,"id":15677},"debugMarkNeighbours":{"__isSmartRef__":true,"id":15681},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":15685},"disappear":{"__isSmartRef__":true,"id":15689},"findStreakStart":{"__isSmartRef__":true,"id":15693},"buildStreak":{"__isSmartRef__":true,"id":15697},"scoreStreak":{"__isSmartRef__":true,"id":15701},"tryToStreak":{"__isSmartRef__":true,"id":15705},"blueDiamond":{"__isSmartRef__":true,"id":15709},"prehnite":{"__isSmartRef__":true,"id":15713},"debugUnmark":{"__isSmartRef__":true,"id":15717},"debugMark":{"__isSmartRef__":true,"id":15721},"citrine":{"__isSmartRef__":true,"id":15725},"move":{"__isSmartRef__":true,"id":15729},"performMovement":{"__isSmartRef__":true,"id":15733},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":15737},"zircon":{"__isSmartRef__":true,"id":15741},"emerald":{"__isSmartRef__":true,"id":15745},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":15749}},"15625":{"varMapping":{"__isSmartRef__":true,"id":15626},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15627},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15626":{"this":{"__isSmartRef__":true,"id":146}},"15627":{"timestamp":{"__isSmartRef__":true,"id":15628},"user":"josi","tags":[]},"15628":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"15629":{"varMapping":{"__isSmartRef__":true,"id":15630},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":15635},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15630":{"this":{"__isSmartRef__":true,"id":146},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15631}},"15631":{"$super":{"__isSmartRef__":true,"id":15632}},"15632":{"varMapping":{"__isSmartRef__":true,"id":15633},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15634},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15633":{"obj":{"__isSmartRef__":true,"id":146},"name":"onMouseDown"},"15634":{},"15635":{"timestamp":{"__isSmartRef__":true,"id":15636},"user":"soergel","tags":[]},"15636":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"15637":{"varMapping":{"__isSmartRef__":true,"id":15638},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":15639},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15638":{"this":{"__isSmartRef__":true,"id":146}},"15639":{"timestamp":{"__isSmartRef__":true,"id":15640},"user":"soergel","tags":[]},"15640":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"15641":{"varMapping":{"__isSmartRef__":true,"id":15642},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":15643},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15642":{"this":{"__isSmartRef__":true,"id":146}},"15643":{"timestamp":{"__isSmartRef__":true,"id":15644},"user":"josi","tags":["gemtypes"]},"15644":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"15645":{"varMapping":{"__isSmartRef__":true,"id":15646},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":15647},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15646":{"this":{"__isSmartRef__":true,"id":146}},"15647":{"timestamp":{"__isSmartRef__":true,"id":15648},"user":"jan.sandbrink","tags":[]},"15648":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"15649":{"varMapping":{"__isSmartRef__":true,"id":15650},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15651},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15650":{"this":{"__isSmartRef__":true,"id":146}},"15651":{"timestamp":{"__isSmartRef__":true,"id":15652},"user":"jan.sandbrink","tags":[]},"15652":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"15653":{"varMapping":{"__isSmartRef__":true,"id":15654},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":15655},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15654":{"this":{"__isSmartRef__":true,"id":146}},"15655":{"timestamp":{"__isSmartRef__":true,"id":15656},"user":"josi","tags":["gemtypes"]},"15656":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"15657":{"varMapping":{"__isSmartRef__":true,"id":15658},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":15659},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15658":{"this":{"__isSmartRef__":true,"id":146}},"15659":{"timestamp":{"__isSmartRef__":true,"id":15660},"user":"josi","tags":["gemtypes"]},"15660":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"15661":{"varMapping":{"__isSmartRef__":true,"id":15662},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":15663},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15662":{"this":{"__isSmartRef__":true,"id":146}},"15663":{"timestamp":{"__isSmartRef__":true,"id":15664},"user":"josi","tags":[]},"15664":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"15665":{"varMapping":{"__isSmartRef__":true,"id":15666},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":15667},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15666":{"this":{"__isSmartRef__":true,"id":146}},"15667":{"timestamp":{"__isSmartRef__":true,"id":15668},"user":"josi","tags":[]},"15668":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"15669":{"varMapping":{"__isSmartRef__":true,"id":15670},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":15671},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15670":{"this":{"__isSmartRef__":true,"id":146}},"15671":{"timestamp":{"__isSmartRef__":true,"id":15672},"user":"soergel","tags":[]},"15672":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"15673":{"varMapping":{"__isSmartRef__":true,"id":15674},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":15675},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15674":{"this":{"__isSmartRef__":true,"id":146}},"15675":{"timestamp":{"__isSmartRef__":true,"id":15676},"user":"soergel","tags":[]},"15676":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"15677":{"varMapping":{"__isSmartRef__":true,"id":15678},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":15679},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15678":{"this":{"__isSmartRef__":true,"id":146}},"15679":{"timestamp":{"__isSmartRef__":true,"id":15680},"user":"soergel","tags":[]},"15680":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"15681":{"varMapping":{"__isSmartRef__":true,"id":15682},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15683},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15682":{"this":{"__isSmartRef__":true,"id":146}},"15683":{"timestamp":{"__isSmartRef__":true,"id":15684},"user":"soergel","tags":["debug"]},"15684":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"15685":{"varMapping":{"__isSmartRef__":true,"id":15686},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":15687},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15686":{"this":{"__isSmartRef__":true,"id":146}},"15687":{"timestamp":{"__isSmartRef__":true,"id":15688},"user":"soergel","tags":["debug"]},"15688":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"15689":{"varMapping":{"__isSmartRef__":true,"id":15690},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15691},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15690":{"this":{"__isSmartRef__":true,"id":146}},"15691":{"timestamp":{"__isSmartRef__":true,"id":15692},"user":"soergel","tags":[]},"15692":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"15693":{"varMapping":{"__isSmartRef__":true,"id":15694},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15695},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15694":{"this":{"__isSmartRef__":true,"id":146}},"15695":{"timestamp":{"__isSmartRef__":true,"id":15696},"user":"jan.sandbrink","tags":[]},"15696":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"15697":{"varMapping":{"__isSmartRef__":true,"id":15698},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":15699},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15698":{"this":{"__isSmartRef__":true,"id":146}},"15699":{"timestamp":{"__isSmartRef__":true,"id":15700},"user":"jan.sandbrink","tags":[]},"15700":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"15701":{"varMapping":{"__isSmartRef__":true,"id":15702},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15703},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15702":{"this":{"__isSmartRef__":true,"id":146}},"15703":{"timestamp":{"__isSmartRef__":true,"id":15704},"user":"jan.sandbrink","tags":[]},"15704":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"15705":{"varMapping":{"__isSmartRef__":true,"id":15706},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":15707},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15706":{"this":{"__isSmartRef__":true,"id":146}},"15707":{"timestamp":{"__isSmartRef__":true,"id":15708},"user":"jan.sandbrink","tags":[]},"15708":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"15709":{"varMapping":{"__isSmartRef__":true,"id":15710},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":15711},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15710":{"this":{"__isSmartRef__":true,"id":146}},"15711":{"timestamp":{"__isSmartRef__":true,"id":15712},"user":"josi","tags":["gemtypes"]},"15712":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"15713":{"varMapping":{"__isSmartRef__":true,"id":15714},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":15715},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15714":{"this":{"__isSmartRef__":true,"id":146}},"15715":{"timestamp":{"__isSmartRef__":true,"id":15716},"user":"josi","tags":["gemtypes"]},"15716":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"15717":{"varMapping":{"__isSmartRef__":true,"id":15718},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":15719},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15718":{"this":{"__isSmartRef__":true,"id":146}},"15719":{"timestamp":{"__isSmartRef__":true,"id":15720},"user":"soergel","tags":["debug"]},"15720":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"15721":{"varMapping":{"__isSmartRef__":true,"id":15722},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":15723},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15722":{"this":{"__isSmartRef__":true,"id":146}},"15723":{"timestamp":{"__isSmartRef__":true,"id":15724},"user":"soergel","tags":["debug"]},"15724":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"15725":{"varMapping":{"__isSmartRef__":true,"id":15726},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":15727},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15726":{"this":{"__isSmartRef__":true,"id":146}},"15727":{"timestamp":{"__isSmartRef__":true,"id":15728},"user":"josi","tags":["gemtypes"]},"15728":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"15729":{"varMapping":{"__isSmartRef__":true,"id":15730},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":15731},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15730":{"this":{"__isSmartRef__":true,"id":146}},"15731":{"timestamp":{"__isSmartRef__":true,"id":15732},"user":"soergel","tags":[]},"15732":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"15733":{"varMapping":{"__isSmartRef__":true,"id":15734},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":15735},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15734":{"this":{"__isSmartRef__":true,"id":146}},"15735":{"timestamp":{"__isSmartRef__":true,"id":15736},"user":"soergel","tags":[]},"15736":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"15737":{"varMapping":{"__isSmartRef__":true,"id":15738},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":15739},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15738":{"this":{"__isSmartRef__":true,"id":146}},"15739":{"timestamp":{"__isSmartRef__":true,"id":15740},"user":"soergel","tags":[]},"15740":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"15741":{"varMapping":{"__isSmartRef__":true,"id":15742},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":15743},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15742":{"this":{"__isSmartRef__":true,"id":146}},"15743":{"timestamp":{"__isSmartRef__":true,"id":15744},"user":"josi","tags":["gemtypes"]},"15744":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"15745":{"varMapping":{"__isSmartRef__":true,"id":15746},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":15747},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15746":{"this":{"__isSmartRef__":true,"id":146}},"15747":{"timestamp":{"__isSmartRef__":true,"id":15748},"user":"josi","tags":["gemtypes"]},"15748":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"15749":{"varMapping":{"__isSmartRef__":true,"id":15750},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":15751},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15750":{"this":{"__isSmartRef__":true,"id":146}},"15751":{"timestamp":{"__isSmartRef__":true,"id":15752},"user":"jan.sandbrink","tags":[]},"15752":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"15753":{"runFieldPhysics":{"__isSmartRef__":true,"id":15754},"iterationHasNext":{"__isSmartRef__":true,"id":15758},"restartIteration":{"__isSmartRef__":true,"id":15762},"iterationGetNext":{"__isSmartRef__":true,"id":15766},"cleanInitialStreaks":{"__isSmartRef__":true,"id":15770},"scorePoints":{"__isSmartRef__":true,"id":15774},"setScore":{"__isSmartRef__":true,"id":15778},"clear":{"__isSmartRef__":true,"id":15782},"isScoringPossible":{"__isSmartRef__":true,"id":15786},"continueRunFieldPhysics":{"__isSmartRef__":true,"id":15790},"a":{"__isSmartRef__":true,"id":15794},"b":{"__isSmartRef__":true,"id":15798},"c":{"__isSmartRef__":true,"id":15802}},"15754":{"varMapping":{"__isSmartRef__":true,"id":15755},"source":"function runFieldPhysics(settings) {\n var isStillDirty = false;\n var wasEverChanged = false;\n var gemCount = 0;\n \n this.a(isStillDirty, wasEverChanged, gemCount);\n \n // TODO: wasEverChanged\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":15756},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15755":{"this":{"__isSmartRef__":true,"id":120}},"15756":{"timestamp":{"__isSmartRef__":true,"id":15757},"user":"soergel","tags":[]},"15757":{"isSerializedDate":true,"string":"Mon May 14 2012 17:17:25 GMT+0200 (CEST)"},"15758":{"varMapping":{"__isSmartRef__":true,"id":15759},"source":"function iterationHasNext() {\n return this.iteratorPos != null;\n}","funcProperties":{"__isSmartRef__":true,"id":15760},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15759":{"this":{"__isSmartRef__":true,"id":120}},"15760":{"timestamp":{"__isSmartRef__":true,"id":15761},"user":"jan.sandbrink","tags":["iteration"]},"15761":{"isSerializedDate":true,"string":"Wed May 02 2012 17:44:37 GMT+0200 (CEST)"},"15762":{"varMapping":{"__isSmartRef__":true,"id":15763},"source":"function restartIteration() {\n this.iteratorPos = this.fieldHead;\n this.primaryIterDirection = this.iteratorPos.directions.right;\n this.secondaryIterDirection = this.iteratorPos.directions.down;\n}","funcProperties":{"__isSmartRef__":true,"id":15764},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15763":{"this":{"__isSmartRef__":true,"id":120}},"15764":{"timestamp":{"__isSmartRef__":true,"id":15765},"user":"jan.sandbrink","tags":["iteration"]},"15765":{"isSerializedDate":true,"string":"Wed May 02 2012 17:24:01 GMT+0200 (CEST)"},"15766":{"varMapping":{"__isSmartRef__":true,"id":15767},"source":"function iterationGetNext() {\n var primaryNext = this.iteratorPos.neighbours[this.primaryIterDirection];\n var secondaryNext = this.iteratorPos.neighbours[this.secondaryIterDirection];\n \n oldPosition = this.iteratorPos;\n if(primaryNext != null) {\n this.iteratorPos = primaryNext;\n } else {\n this.iteratorPos = secondaryNext;\n this.primaryIterDirection = (this.primaryIterDirection + 2) % 4;\n }\n return oldPosition;\n}","funcProperties":{"__isSmartRef__":true,"id":15768},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15767":{"this":{"__isSmartRef__":true,"id":120}},"15768":{"timestamp":{"__isSmartRef__":true,"id":15769},"user":"jan.sandbrink","tags":["iteration"]},"15769":{"isSerializedDate":true,"string":"Wed May 02 2012 17:45:53 GMT+0200 (CEST)"},"15770":{"varMapping":{"__isSmartRef__":true,"id":15771},"source":"function cleanInitialStreaks() {\n this.restartIteration();\n while(this.iterationHasNext()) {\n var gem = this.iterationGetNext();\n gem.tryToStreak();\n }\n \n this.runFieldPhysics();\n}","funcProperties":{"__isSmartRef__":true,"id":15772},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15771":{"this":{"__isSmartRef__":true,"id":120}},"15772":{"timestamp":{"__isSmartRef__":true,"id":15773},"user":"jan.sandbrink","tags":[]},"15773":{"isSerializedDate":true,"string":"Thu May 10 2012 13:44:52 GMT+0200 (CEST)"},"15774":{"varMapping":{"__isSmartRef__":true,"id":15775},"source":"function scorePoints(gemCount) {\n var scoreIncrement = gemCount * 10 * Math.ceil(gemCount / 3);\n if(this.score > 0){\n var scoreMultiplicator = Math.ceil(this.score / 5000);\n } else {\n var scoreMultiplicator = 1;\n }\n this.setScore(this.score + (scoreIncrement * scoreMultiplicator));\n}","funcProperties":{"__isSmartRef__":true,"id":15776},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15775":{"this":{"__isSmartRef__":true,"id":120}},"15776":{"timestamp":{"__isSmartRef__":true,"id":15777},"user":"soergel","tags":[]},"15777":{"isSerializedDate":true,"string":"Mon May 14 2012 16:22:02 GMT+0200 (CEST)"},"15778":{"varMapping":{"__isSmartRef__":true,"id":15779},"source":"function setScore(score) {\n this.score = score;\n this.owner.updateScore(this.score);\n}","funcProperties":{"__isSmartRef__":true,"id":15780},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15779":{"this":{"__isSmartRef__":true,"id":120}},"15780":{"timestamp":{"__isSmartRef__":true,"id":15781},"user":"jan.sandbrink","tags":[]},"15781":{"isSerializedDate":true,"string":"Tue May 08 2012 12:38:31 GMT+0200 (CEST)"},"15782":{"varMapping":{"__isSmartRef__":true,"id":15783},"source":"function clear() {\n this.submorphs.select(function(e) {\n return e.isGem;\n }).each(function(e) {\n e.remove();\n });\n this.markedGem = null;\n this.score = 0;\n}","funcProperties":{"__isSmartRef__":true,"id":15784},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15783":{"this":{"__isSmartRef__":true,"id":120}},"15784":{"timestamp":{"__isSmartRef__":true,"id":15785},"user":"jan.sandbrink","tags":[]},"15785":{"isSerializedDate":true,"string":"Thu May 10 2012 13:44:41 GMT+0200 (CEST)"},"15786":{"varMapping":{"__isSmartRef__":true,"id":15787},"source":"function isScoringPossible() {\n var isPossible = false;\n this.restartIteration();\n while(this.iterationHasNext() && !isPossible) {\n var gem = this.iterationGetNext();\n\n var neighbour = gem.neighbours[gem.directions.down];\n if(neighbour != null)\n isPossible = gem.canScoreBySwitchingWith(neighbour);\n \n neighbour = gem.neighbours[gem.directions.right];\n if(neighbour != null)\n isPossible = isPossible || gem.canScoreBySwitchingWith(neighbour);\n }\n\n this.restartIteration();\n while(this.iterationHasNext()) {\n var gem = this.iterationGetNext();\n gem.shouldBeDeleted = false;\n }\n\n return isPossible;\n}","funcProperties":{"__isSmartRef__":true,"id":15788},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15787":{"this":{"__isSmartRef__":true,"id":120}},"15788":{"timestamp":{"__isSmartRef__":true,"id":15789},"user":"jan.sandbrink","tags":[]},"15789":{"isSerializedDate":true,"string":"Mon May 14 2012 11:27:57 GMT+0200 (CEST)"},"15790":{"varMapping":{"__isSmartRef__":true,"id":15791},"source":"function continueRunFieldPhysics(settings) {\n \n}","funcProperties":{"__isSmartRef__":true,"id":15792},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15791":{"this":{"__isSmartRef__":true,"id":120}},"15792":{"timestamp":{"__isSmartRef__":true,"id":15793},"user":"soergel","tags":[]},"15793":{"isSerializedDate":true,"string":"Mon May 14 2012 17:07:52 GMT+0200 (CEST)"},"15794":{"varMapping":{"__isSmartRef__":true,"id":15795},"source":"function a(isStillDirty, wasEverChanged, gemCount) {\n isStillDirty = false;\n this.restartIteration();\n this.b(isStillDirty, wasEverChanged, gemCount);\n}","funcProperties":{"__isSmartRef__":true,"id":15796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15795":{"this":{"__isSmartRef__":true,"id":120}},"15796":{"timestamp":{"__isSmartRef__":true,"id":15797},"user":"soergel","tags":[]},"15797":{"isSerializedDate":true,"string":"Mon May 14 2012 17:22:05 GMT+0200 (CEST)"},"15798":{"varMapping":{"__isSmartRef__":true,"id":15799},"source":"function b(isStillDirty, wasEverChanged, gemCount, skipDisappear) {\n if (skipDisappear == undefined) skipDisappear = false;\n if (!skipDisappear) {\n var gem = this.iterationGetNext();\n\n if(gem.shouldBeDeleted) {\n wasEverChanged = true;\n gemCount += 1;\n gem.shouldBeDeleted = false;\n gem.disappear(this.b(isStillDirty, wasEverChanged, gemCount, true));\n }\n }\n if (this.iterationHasNext()) \n this.b(isStillDirty, wasEverChanged, gemCount);\n else {\n this.restartIteration();\n this.c(isStillDirty, wasEverChanged, gemCount);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15800},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15799":{"this":{"__isSmartRef__":true,"id":120}},"15800":{"timestamp":{"__isSmartRef__":true,"id":15801},"user":"soergel","tags":[]},"15801":{"isSerializedDate":true,"string":"Mon May 14 2012 17:34:25 GMT+0200 (CEST)"},"15802":{"varMapping":{"__isSmartRef__":true,"id":15803},"source":"function c(isStillDirty, wasEverChanged, gemCount) {\n \n var gem = this.iterationGetNext();\n\n if(gem.isDirty) {\n isStillDirty = true;\n gem.isDirty = false;\n gem.tryToStreak();\n }\n if (this.iterationHasNext()) \n this.c(isStillDirty, wasEverChanged, gemCount);\n else {\n if (isStillDirty)\n this.a(isStillDirty, wasEverChanged, gemCount);\n else {\n this.scorePoints(gemCount);\n if(!this.isScoringPossible()) {\n this.owner.gameIsOver();\n }\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":15804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"15803":{"this":{"__isSmartRef__":true,"id":120}},"15804":{"timestamp":{"__isSmartRef__":true,"id":15805},"user":"soergel","tags":[]},"15805":{"isSerializedDate":true,"string":"Mon May 14 2012 17:25:24 GMT+0200 (CEST)"},"15806":{"submorphs":[{"__isSmartRef__":true,"id":15807}],"scripts":[],"id":"0BE49D11-E077-4EE6-857C-53743C09FFFF","shape":{"__isSmartRef__":true,"id":15823},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15830},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":15827},"lighterFill":{"__isSmartRef__":true,"id":15831},"label":{"__isSmartRef__":true,"id":15807},"name":"Button1","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":15832},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":15835},"renderContextTable":{"__isSmartRef__":true,"id":15836},"eventHandler":{"__isSmartRef__":true,"id":15837},"distanceToDragEvent":{"__isSmartRef__":true,"id":15838},"derivationIds":[7251,"AE965E5C-19BD-4049-96CC-319842C6E018","850C5E5C-2ACF-46C2-9F4A-8AE95E60D788","89C6E9B6-7DC0-41A2-A617-9553CD5CD937","0BCB13E8-8F74-4712-9252-F922F3A67A7B","25C1A1F2-A1D9-423D-BF51-D67E8B17F6B1","1FD9C092-0086-4E41-97F3-B9C0E879014A","CABC6739-B8CB-4938-8869-EE639B50BC46","A53DD70A-22E7-45CB-A342-F53929F8FDE1","14917149-E73A-4261-BA6D-6B6323E41B3E","DB4C3B10-90D1-4FC3-B1B4-69AC7021C0B6","3A89AD15-D736-458B-B279-096A76A88A7A","2500068F-492B-454D-B9FC-BCB574C9EFDA","741AFC0B-25B3-49CD-9281-C50A5195A826","1CACFC59-5F7F-4EA8-BF87-163156D52BDB","9C6CE593-5EFB-456D-9D87-D3BAC81D9D4B","CE9AA98F-E1BA-4121-A516-127A8A428350","62F2B200-5DFD-4C86-98AB-C56FA9678473","3A4A7D0E-B1A2-479A-BB1C-2E071C5080B3","EB164B2C-085B-471A-BCB1-A712582EAB31","7B77808E-31ED-48FA-B575-7A30DE2EDD92","7E62C040-3AF8-4B0A-9429-B4D629193A68","4CE18596-67F7-4555-A72F-F8340286549D","8D245830-C85A-4B8D-AE3F-2AC9DD08D129","0F9CBE6D-F390-451C-B498-351F43286CF4","8DC5FFBC-E7C1-4D12-813D-9A73AF0E88BB","2A2665A8-43B4-41E2-99EB-31F2A7A85365","5A1D2E50-28A5-4FA9-8AE3-0B902FE792CD"],"_ClipMode":"visible","moved":true,"prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":77},"_Rotation":0,"_Scale":0.998001,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15839},"__LivelyClassName__":"lively.morphic.Button"},"15807":{"submorphs":[],"scripts":[],"id":"38E4C503-0E79-4B09-A6E7-BA22E2778CD4","shape":{"__isSmartRef__":true,"id":15808},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Comic Sans MS","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15814},"_MaxTextWidth":110,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":15815},"_Padding":{"__isSmartRef__":true,"id":15816},"owner":{"__isSmartRef__":true,"id":15806},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":15817},"textChunks":[{"__isSmartRef__":true,"id":15818}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":15820},"eventHandler":{"__isSmartRef__":true,"id":15821},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"5136A758-BF53-43D4-B39B-DF7EFA37E738","4B2048BC-5868-48E2-AAA6-7F23E2BB8663","7641B212-AD63-46C0-A195-DA606FC40C83","27948213-E9B0-4045-BF41-0A42C99764B0","FA42BC01-C3D5-45DB-89F4-D8E735B98407","9BFA64A4-A071-46C9-A022-2B964C7E82E9","446A4399-4F2F-4E48-94FF-E91CCF9926A5","1C848188-9278-42B7-9FAD-2D20D5308E57","C4CCAF06-1C80-4BD6-A947-075FBFFDDC5D","06E1D9F9-D8A9-4D1E-843E-3AFB2AA2E550","5D5D2DB3-DC07-4EDE-A5FE-82B4635182FB","882DE748-AC7E-4F8A-B9BA-4E02022C0070","76C142F5-34C1-4944-8CD3-C6C8B810B270","98234A81-6B76-48F7-8015-7BBBA29837BC","4A3BFE48-245A-483F-A945-0340E29680DE","04383239-1AB6-4641-BAC6-E505C39D4F40","9A932E1B-7295-4AD1-A2BC-A235C6A41846","63D4BE39-C391-44EC-954E-64C1F18DF66F","687542A2-DBCB-4CBD-8AAF-0F059D95C781","EBB206D6-F673-4C50-B7C7-F34EDF7617F0","7F1D2C57-5D61-4B33-B7A4-F074A3D6EB62","14CFA068-FB26-4655-A57B-036F8FBB70C0","A1672C23-4798-4CBD-8319-45C53DAECFFA","07420C34-2151-460A-B870-DA8856C14B57","80C54D07-386C-4C10-A112-080A5EA810AD","818F082A-004A-4C58-B5F3-B2E4BC1369CD","3711D6E3-6D3F-421F-A3A3-2C88E2511E5C"],"_MinTextWidth":110,"_MinTextHeight":null,"_FontSize":10,"_TextColor":{"__isSmartRef__":true,"id":15822},"__LivelyClassName__":"lively.morphic.Text"},"15808":{"position":{"__isSmartRef__":true,"id":15809},"_Extent":{"__isSmartRef__":true,"id":15810},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15811},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":15812},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":15813},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15809":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15810":{"x":110,"y":30,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15811":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15812":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"15813":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15814":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15815":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15816":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15817":{"x":110,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15818":{"style":{"__isSmartRef__":true,"id":15819},"chunkOwner":{"__isSmartRef__":true,"id":15807},"storedString":"Clear","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"15819":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15820":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"15821":{"morph":{"__isSmartRef__":true,"id":15807},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15822":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15823":{"position":{"__isSmartRef__":true,"id":15824},"_Extent":{"__isSmartRef__":true,"id":15825},"_BorderWidth":2.516,"_BorderColor":{"__isSmartRef__":true,"id":15826},"_Fill":{"__isSmartRef__":true,"id":15827},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":15828},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15829},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15824":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15825":{"x":110,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15826":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15827":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15828":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"15829":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15830":{"x":665.7186410000005,"y":406.18640700000014,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15831":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15832":{"partsSpaceName":"PartsBin/SketchyInputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","changes":[{"__isSmartRef__":true,"id":15833}],"revisionOnLoad":140039,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15833":{"date":{"__isSmartRef__":true,"id":15834},"author":"lauritz","message":"","id":"959919F0-D51D-45E6-9205-4D7A114D8C7E"},"15834":{"isSerializedDate":true,"string":"Tue Jan 24 2012 21:35:57 GMT+0100 (CET)"},"15835":{"x":110,"y":30,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15836":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15837":{"morph":{"__isSmartRef__":true,"id":15806},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15838":{"x":81,"y":-13,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15839":{"onMouseDown":{"__isSmartRef__":true,"id":15840}},"15840":{"varMapping":{"__isSmartRef__":true,"id":15841},"source":"function onMouseDown() {\n this.owner.clear();\n}","funcProperties":{"__isSmartRef__":true,"id":15846},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15841":{"this":{"__isSmartRef__":true,"id":15806},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15842}},"15842":{"$super":{"__isSmartRef__":true,"id":15843}},"15843":{"varMapping":{"__isSmartRef__":true,"id":15844},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":15845},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15844":{"obj":{"__isSmartRef__":true,"id":15806},"name":"onMouseDown"},"15845":{},"15846":{"timestamp":{"__isSmartRef__":true,"id":15847},"user":"soergel","tags":[]},"15847":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:33:34 GMT+0200 (CEST)"},"15848":{"submorphs":[],"scripts":[],"id":"45452376-6BDD-4F0D-AD40-FD0A9E5A6CBC","shape":{"__isSmartRef__":true,"id":15849},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15855},"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":15852},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ScoreIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":15856},"textChunks":[{"__isSmartRef__":true,"id":15865}],"charsReplaced":"foo!?","lastFindLoc":10,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15867},"renderContextTable":{"__isSmartRef__":true,"id":15868},"eventHandler":{"__isSmartRef__":true,"id":15869},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":15870},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","2573B759-62DC-415C-8492-96EE2DA1D148","695F454E-5EF5-42FA-823A-04C3A5025E0F","0F954437-59B2-4E33-BEE7-CFD1A4BAD12D","2C787A82-E571-4C6F-AFBD-AA01F76AD16B","322F315B-A585-484E-8C4E-3E635AC6188A","20964E56-8B08-4C7C-B99F-BC092C025505","849553FB-B20B-4068-8F5F-A525B0CC3D0B","0915BA9E-8CD7-42E5-9AC6-F9B166BC327C","2020ED3E-5AA7-4EBC-A737-04053D65328A","9C3B90D8-F199-4B8E-A0CD-04AA364A44AD","42F1D6EB-047F-4C7E-9417-30AC79A94042"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":77},"distanceToDragEvent":{"__isSmartRef__":true,"id":15871},"#startLetters":"","_Align":"right","_TextColor":{"__isSmartRef__":true,"id":15872},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":15873},"__LivelyClassName__":"lively.morphic.Text"},"15849":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15850},"_Extent":{"__isSmartRef__":true,"id":15851},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15852},"renderContextTable":{"__isSmartRef__":true,"id":15853},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15854},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15850":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15851":{"x":128.695652,"y":26,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15852":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15853":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"15854":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15855":{"x":653.7246380000006,"y":83.8300850000003,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15856":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15857},{"__isSmartRef__":true,"id":15859},{"__isSmartRef__":true,"id":15861},{"__isSmartRef__":true,"id":15863}],"revisionOnLoad":154263,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15857":{"date":{"__isSmartRef__":true,"id":15858},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15858":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15859":{"date":{"__isSmartRef__":true,"id":15860},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15860":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15861":{"date":{"__isSmartRef__":true,"id":15862},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15862":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15863":{"date":{"__isSmartRef__":true,"id":15864},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15864":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15865":{"style":{"__isSmartRef__":true,"id":15866},"chunkOwner":{"__isSmartRef__":true,"id":15848},"storedString":"0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15866":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"15867":{"x":128.695652,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15868":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"15869":{"morph":{"__isSmartRef__":true,"id":15848},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15870":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15871":{"x":86.96594893191491,"y":-18.997996995995265,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15872":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15873":{"setScore":{"__isSmartRef__":true,"id":15874}},"15874":{"varMapping":{"__isSmartRef__":true,"id":15875},"source":"function setScore(score) {\n this.setTextString(score);\n}","funcProperties":{"__isSmartRef__":true,"id":15876},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"15875":{"this":{"__isSmartRef__":true,"id":15848}},"15876":{"timestamp":{"__isSmartRef__":true,"id":15877},"user":"jan.sandbrink","tags":[]},"15877":{"isSerializedDate":true,"string":"Tue May 08 2012 12:34:02 GMT+0200 (CEST)"},"15878":{"submorphs":[],"scripts":[],"id":"1E57DF8A-521C-4CB2-89D0-160BBDFAA7EB","shape":{"__isSmartRef__":true,"id":15879},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15885},"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":15882},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":15886},"textChunks":[{"__isSmartRef__":true,"id":15897}],"charsReplaced":"Some Text","lastFindLoc":9,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":15899},"renderContextTable":{"__isSmartRef__":true,"id":15900},"eventHandler":{"__isSmartRef__":true,"id":15901},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":15902},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","F6A714BA-4735-41ED-8A2A-45CB153FBDF8","755BEFAF-1751-4988-9E3F-AE5127E1E069","EFDA59B4-4677-447E-8C99-82AFBAFD90D2","E7F75FAD-1890-4742-8133-0D868503B3B5","0FEC0E0F-2532-4229-9C7A-640E3E578F91","187961CF-2543-4DF7-9D95-EE79BEDF042B","CC35E776-362B-4E0E-8643-C094A9B0C168","E078F1DA-15FF-4574-8AA8-6436BD32EC82","17F9C1E3-CAB8-44CC-85F4-3106B0A6EA01","4CA58920-F51D-4761-8FFD-49773985F8BA"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"moved":true,"owner":{"__isSmartRef__":true,"id":77},"_TextColor":{"__isSmartRef__":true,"id":15872},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"15879":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":15880},"_Extent":{"__isSmartRef__":true,"id":15881},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15882},"renderContextTable":{"__isSmartRef__":true,"id":15883},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15884},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15880":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15881":{"x":128.695652,"y":48,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15882":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15883":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"15884":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15885":{"x":465.06846600000006,"y":318.362319,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15886":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":15887},{"__isSmartRef__":true,"id":15889},{"__isSmartRef__":true,"id":15891},{"__isSmartRef__":true,"id":15893},{"__isSmartRef__":true,"id":15895}],"revisionOnLoad":160159,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15887":{"date":{"__isSmartRef__":true,"id":15888},"author":"timfelgentreff","message":"better text","id":"B904F9AC-6EA0-4A8A-83C9-AFC85AADC194"},"15888":{"isSerializedDate":true,"string":"Tue May 08 2012 14:18:18 GMT+0200 (CEST)"},"15889":{"date":{"__isSmartRef__":true,"id":15890},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"15890":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"15891":{"date":{"__isSmartRef__":true,"id":15892},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"15892":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"15893":{"date":{"__isSmartRef__":true,"id":15894},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"15894":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"15895":{"date":{"__isSmartRef__":true,"id":15896},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"15896":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"15897":{"style":{"__isSmartRef__":true,"id":15898},"morph":{"__isSmartRef__":true,"id":15878},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":15878},"storedString":"Gem Prototype","__LivelyClassName__":"lively.morphic.TextChunk"},"15898":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"15899":{"x":128.695652,"y":48,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"15901":{"morph":{"__isSmartRef__":true,"id":15878},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15902":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15903":{"submorphs":[{"__isSmartRef__":true,"id":15904}],"scripts":[],"id":"2903603F-99B3-49E7-B117-AA578CB6C0AC","shape":{"__isSmartRef__":true,"id":16140},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16147},"showsHalos":false,"name":"PrototypeBox","partsBinMetaInfo":{"__isSmartRef__":true,"id":16148},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":16161},"eventHandler":{"__isSmartRef__":true,"id":16162},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","88B54E86-9B7A-4CB5-910F-576F8A3C02D8","94DC3186-87C5-4D65-816A-C787EF22117A","11C95B71-DA81-45C7-86EE-AC7A2FF02EE3","E7D7F14A-6347-407A-BD84-EBCBA6EBFC07","D9E766F2-6219-4745-A482-51EADC5FE01C","49719470-1588-4A54-B98A-04390F8FC229","AE3642A5-1609-4F58-82FA-A33E43F5DDF9","8A0EA7DE-39DF-407A-BC72-B37C71EEDD08","B9E6510A-6BCD-44F3-939B-3E829BDABD5F"],"partTests":{"__isSmartRef__":true,"id":16163},"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":77},"moved":true,"isBeingDragged":false,"markedGem":null,"isPrototypeBox":true,"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Box"},"15904":{"submorphs":[{"__isSmartRef__":true,"id":15905}],"scripts":[],"id":"9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB","shape":{"__isSmartRef__":true,"id":15956},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":15962},"showsHalos":false,"name":"BasicGem","partsBinMetaInfo":{"__isSmartRef__":true,"id":15963},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":16002},"eventHandler":{"__isSmartRef__":true,"id":16003},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF"],"partTests":{"__isSmartRef__":true,"id":16004},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":16009},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":16010},"neighbours":[null,null,null,null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":15903},"_Rotation":0,"_Scale":1.0040100200350572,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16011},"__LivelyClassName__":"lively.morphic.Box"},"15905":{"submorphs":[{"__isSmartRef__":true,"id":15906},{"__isSmartRef__":true,"id":15917},{"__isSmartRef__":true,"id":15927}],"scripts":[],"shape":{"__isSmartRef__":true,"id":15937},"derivationIds":[null,"4BC28AF3-05B0-4746-9A43-CDB37C384755","1202424B-E159-44EA-BA2E-AF64AE2B725A","BCD640AE-8267-4E19-B342-E124777D21D7","32A709AF-2206-4031-854B-10169367CFC2"],"id":"B8022353-5515-47C4-9538-D23FECB50C1E","renderContextTable":{"__isSmartRef__":true,"id":15948},"eventHandler":{"__isSmartRef__":true,"id":15949},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":15904},"_Position":{"__isSmartRef__":true,"id":15950},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"controlPoints":[{"__isSmartRef__":true,"id":15951},{"__isSmartRef__":true,"id":15952},{"__isSmartRef__":true,"id":15953},{"__isSmartRef__":true,"id":15954},{"__isSmartRef__":true,"id":15955}],"__LivelyClassName__":"lively.morphic.Path"},"15906":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15907},"derivationIds":[null,"AB037B4D-D1CA-41D6-8C01-53402DAC598F","8E6A49D5-BB63-4B5F-BA22-AB655B94AF2C","5A5C8BDB-FF34-4EFE-951E-DDC911D061CD","6FCC3A8B-CD1A-446A-A372-BDFC0B642B55"],"id":"3F0EB821-BEA2-4DFF-8D84-322C3D3E2FC1","renderContextTable":{"__isSmartRef__":true,"id":15915},"eventHandler":{"__isSmartRef__":true,"id":15916},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":15905},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Path"},"15907":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":15908},{"__isSmartRef__":true,"id":15909}],"renderContextTable":{"__isSmartRef__":true,"id":15910},"_Position":{"__isSmartRef__":true,"id":15911},"_Extent":{"__isSmartRef__":true,"id":15912},"_Padding":{"__isSmartRef__":true,"id":15913},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":15914},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"15908":{"isAbsolute":true,"x":25,"y":8,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"15909":{"isAbsolute":true,"x":25,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"15910":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"15911":{"x":23,"y":6,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15912":{"x":3,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15913":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15914":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15915":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15916":{"morph":{"__isSmartRef__":true,"id":15906},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15917":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15918},"derivationIds":[null,"B2C7A79B-B687-4BFE-AF3F-6C2720ECDB73","0D117D66-2D14-4E57-BB84-344BA73AC602","06FC3CB7-BE88-45B0-801A-F5BAC9AD821F","C31DE1BB-ACE1-4DF6-9D58-764D59245CBF"],"id":"2E991892-008C-4F8B-959C-41EFC727BE55","renderContextTable":{"__isSmartRef__":true,"id":15925},"eventHandler":{"__isSmartRef__":true,"id":15926},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":15905},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Path"},"15918":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":15919},{"__isSmartRef__":true,"id":15920}],"renderContextTable":{"__isSmartRef__":true,"id":15921},"_Position":{"__isSmartRef__":true,"id":15922},"_Extent":{"__isSmartRef__":true,"id":15923},"_Padding":{"__isSmartRef__":true,"id":15924},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":15914},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"15919":{"isAbsolute":true,"x":9,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"15920":{"isAbsolute":true,"x":25,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"15921":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"15922":{"x":7,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15923":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15924":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15925":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15926":{"morph":{"__isSmartRef__":true,"id":15917},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15927":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":15928},"derivationIds":[null,"B190EFCC-18CC-4462-AF93-AAD6722CE2AF","76FA41EC-56AE-4286-A022-18F7261A4505","6BD87AF2-6911-4B47-9AA2-41B58A6C3D77","1EE1B9E3-485B-4435-9DE4-D35709899272"],"id":"39FE7E5D-2294-4A1D-85C6-AD613D69D9A9","renderContextTable":{"__isSmartRef__":true,"id":15935},"eventHandler":{"__isSmartRef__":true,"id":15936},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":15905},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Path"},"15928":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":15929},{"__isSmartRef__":true,"id":15930}],"renderContextTable":{"__isSmartRef__":true,"id":15931},"_Position":{"__isSmartRef__":true,"id":15932},"_Extent":{"__isSmartRef__":true,"id":15933},"_Padding":{"__isSmartRef__":true,"id":15934},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":15914},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"15929":{"isAbsolute":true,"x":41,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"15930":{"isAbsolute":true,"x":25,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"15931":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"15932":{"x":23,"y":28,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15933":{"x":19,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15934":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15935":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15936":{"morph":{"__isSmartRef__":true,"id":15927},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15937":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":15938},{"__isSmartRef__":true,"id":15939},{"__isSmartRef__":true,"id":15940},{"__isSmartRef__":true,"id":15941},{"__isSmartRef__":true,"id":15942}],"renderContextTable":{"__isSmartRef__":true,"id":15943},"_Position":{"__isSmartRef__":true,"id":15944},"_Extent":{"__isSmartRef__":true,"id":15945},"_Padding":{"__isSmartRef__":true,"id":15946},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":15914},"_Fill":{"__isSmartRef__":true,"id":15947},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"15938":{"isAbsolute":true,"x":25,"y":9,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"15939":{"isAbsolute":true,"x":38,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"15940":{"isAbsolute":true,"x":30,"y":41,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"15941":{"isAbsolute":true,"x":20,"y":41,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"15942":{"isAbsolute":true,"x":12,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"15943":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"15944":{"x":11,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15945":{"x":27,"y":33,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15946":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15947":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15948":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"15949":{"morph":{"__isSmartRef__":true,"id":15905},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"15950":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15951":{"morph":{"__isSmartRef__":true,"id":15905},"index":0,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"15952":{"morph":{"__isSmartRef__":true,"id":15905},"index":1,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"15953":{"morph":{"__isSmartRef__":true,"id":15905},"index":2,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"15954":{"morph":{"__isSmartRef__":true,"id":15905},"index":3,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"15955":{"morph":{"__isSmartRef__":true,"id":15905},"index":4,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"15956":{"position":{"__isSmartRef__":true,"id":15957},"_Extent":{"__isSmartRef__":true,"id":15958},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":15959},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":15960},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":15961},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"15957":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15958":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"15959":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"15960":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"15961":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"15962":{"x":34.978155336757595,"y":30.93001094387381,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"15963":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":15964},{"__isSmartRef__":true,"id":15966},{"__isSmartRef__":true,"id":15968},{"__isSmartRef__":true,"id":15970},{"__isSmartRef__":true,"id":15972},{"__isSmartRef__":true,"id":15974},{"__isSmartRef__":true,"id":15976},{"__isSmartRef__":true,"id":15978},{"__isSmartRef__":true,"id":15980},{"__isSmartRef__":true,"id":15982},{"__isSmartRef__":true,"id":15984},{"__isSmartRef__":true,"id":15986},{"__isSmartRef__":true,"id":15988},{"__isSmartRef__":true,"id":15990},{"__isSmartRef__":true,"id":15992},{"__isSmartRef__":true,"id":15994},{"__isSmartRef__":true,"id":15996},{"__isSmartRef__":true,"id":15998},{"__isSmartRef__":true,"id":16000}],"revisionOnLoad":162145,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"15964":{"date":{"__isSmartRef__":true,"id":15965},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"15965":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"15966":{"date":{"__isSmartRef__":true,"id":15967},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"15967":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"15968":{"date":{"__isSmartRef__":true,"id":15969},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"15969":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"15970":{"date":{"__isSmartRef__":true,"id":15971},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"15971":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"15972":{"date":{"__isSmartRef__":true,"id":15973},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"15973":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"15974":{"date":{"__isSmartRef__":true,"id":15975},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"15975":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"15976":{"date":{"__isSmartRef__":true,"id":15977},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"15977":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"15978":{"date":{"__isSmartRef__":true,"id":15979},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"15979":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"15980":{"date":{"__isSmartRef__":true,"id":15981},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"15981":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"15982":{"date":{"__isSmartRef__":true,"id":15983},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"15983":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"15984":{"date":{"__isSmartRef__":true,"id":15985},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"15985":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"15986":{"date":{"__isSmartRef__":true,"id":15987},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"15987":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"15988":{"date":{"__isSmartRef__":true,"id":15989},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"15989":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"15990":{"date":{"__isSmartRef__":true,"id":15991},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"15991":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"15992":{"date":{"__isSmartRef__":true,"id":15993},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"15993":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"15994":{"date":{"__isSmartRef__":true,"id":15995},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"15995":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"15996":{"date":{"__isSmartRef__":true,"id":15997},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"15997":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"15998":{"date":{"__isSmartRef__":true,"id":15999},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"15999":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"16000":{"date":{"__isSmartRef__":true,"id":16001},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"16001":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"16002":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16003":{"morph":{"__isSmartRef__":true,"id":15904},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16004":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16005}},"16005":{"test01IsMorph":{"__isSmartRef__":true,"id":16006}},"16006":{"varMapping":{"__isSmartRef__":true,"id":16007},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":16008},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16007":{"this":{"__isSmartRef__":true,"id":16004}},"16008":{},"16009":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16010":{"left":0,"up":1,"right":2,"down":3},"16011":{"become":{"__isSmartRef__":true,"id":16012},"onMouseDown":{"__isSmartRef__":true,"id":16016},"updatePicture":{"__isSmartRef__":true,"id":16024},"ruby":{"__isSmartRef__":true,"id":16028},"switchPositionWith":{"__isSmartRef__":true,"id":16032},"addNeighbour":{"__isSmartRef__":true,"id":16036},"amethyst":{"__isSmartRef__":true,"id":16040},"diopside":{"__isSmartRef__":true,"id":16044},"gemTypes":{"__isSmartRef__":true,"id":16048},"becomeRandomGem":{"__isSmartRef__":true,"id":16052},"mark":{"__isSmartRef__":true,"id":16056},"unmark":{"__isSmartRef__":true,"id":16060},"hasNeighbour":{"__isSmartRef__":true,"id":16064},"debugMarkNeighbours":{"__isSmartRef__":true,"id":16068},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":16072},"disappear":{"__isSmartRef__":true,"id":16076},"findStreakStart":{"__isSmartRef__":true,"id":16080},"buildStreak":{"__isSmartRef__":true,"id":16084},"scoreStreak":{"__isSmartRef__":true,"id":16088},"tryToStreak":{"__isSmartRef__":true,"id":16092},"blueDiamond":{"__isSmartRef__":true,"id":16096},"prehnite":{"__isSmartRef__":true,"id":16100},"debugUnmark":{"__isSmartRef__":true,"id":16104},"debugMark":{"__isSmartRef__":true,"id":16108},"citrine":{"__isSmartRef__":true,"id":16112},"move":{"__isSmartRef__":true,"id":16116},"performMovement":{"__isSmartRef__":true,"id":16120},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":16124},"zircon":{"__isSmartRef__":true,"id":16128},"emerald":{"__isSmartRef__":true,"id":16132},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":16136}},"16012":{"varMapping":{"__isSmartRef__":true,"id":16013},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":16014},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16013":{"this":{"__isSmartRef__":true,"id":15904}},"16014":{"timestamp":{"__isSmartRef__":true,"id":16015},"user":"josi","tags":[]},"16015":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"16016":{"varMapping":{"__isSmartRef__":true,"id":16017},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":16022},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16017":{"this":{"__isSmartRef__":true,"id":15904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16018}},"16018":{"$super":{"__isSmartRef__":true,"id":16019}},"16019":{"varMapping":{"__isSmartRef__":true,"id":16020},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16021},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16020":{"obj":{"__isSmartRef__":true,"id":15904},"name":"onMouseDown"},"16021":{},"16022":{"timestamp":{"__isSmartRef__":true,"id":16023},"user":"soergel","tags":[]},"16023":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"16024":{"varMapping":{"__isSmartRef__":true,"id":16025},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":16026},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16025":{"this":{"__isSmartRef__":true,"id":15904}},"16026":{"timestamp":{"__isSmartRef__":true,"id":16027},"user":"soergel","tags":[]},"16027":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"16028":{"varMapping":{"__isSmartRef__":true,"id":16029},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":16030},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16029":{"this":{"__isSmartRef__":true,"id":15904}},"16030":{"timestamp":{"__isSmartRef__":true,"id":16031},"user":"josi","tags":["gemtypes"]},"16031":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"16032":{"varMapping":{"__isSmartRef__":true,"id":16033},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":16034},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16033":{"this":{"__isSmartRef__":true,"id":15904}},"16034":{"timestamp":{"__isSmartRef__":true,"id":16035},"user":"jan.sandbrink","tags":[]},"16035":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"16036":{"varMapping":{"__isSmartRef__":true,"id":16037},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":16038},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16037":{"this":{"__isSmartRef__":true,"id":15904}},"16038":{"timestamp":{"__isSmartRef__":true,"id":16039},"user":"jan.sandbrink","tags":[]},"16039":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"16040":{"varMapping":{"__isSmartRef__":true,"id":16041},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":16042},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16041":{"this":{"__isSmartRef__":true,"id":15904}},"16042":{"timestamp":{"__isSmartRef__":true,"id":16043},"user":"josi","tags":["gemtypes"]},"16043":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"16044":{"varMapping":{"__isSmartRef__":true,"id":16045},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":16046},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16045":{"this":{"__isSmartRef__":true,"id":15904}},"16046":{"timestamp":{"__isSmartRef__":true,"id":16047},"user":"josi","tags":["gemtypes"]},"16047":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"16048":{"varMapping":{"__isSmartRef__":true,"id":16049},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":16050},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16049":{"this":{"__isSmartRef__":true,"id":15904}},"16050":{"timestamp":{"__isSmartRef__":true,"id":16051},"user":"josi","tags":[]},"16051":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"16052":{"varMapping":{"__isSmartRef__":true,"id":16053},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":16054},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16053":{"this":{"__isSmartRef__":true,"id":15904}},"16054":{"timestamp":{"__isSmartRef__":true,"id":16055},"user":"josi","tags":[]},"16055":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"16056":{"varMapping":{"__isSmartRef__":true,"id":16057},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":16058},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16057":{"this":{"__isSmartRef__":true,"id":15904}},"16058":{"timestamp":{"__isSmartRef__":true,"id":16059},"user":"soergel","tags":[]},"16059":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"16060":{"varMapping":{"__isSmartRef__":true,"id":16061},"source":"function unmark() {\n this.setFill(null);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":16062},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16061":{"this":{"__isSmartRef__":true,"id":15904}},"16062":{"timestamp":{"__isSmartRef__":true,"id":16063},"user":"soergel","tags":[]},"16063":{"isSerializedDate":true,"string":"Mon May 14 2012 16:05:54 GMT+0200 (CEST)"},"16064":{"varMapping":{"__isSmartRef__":true,"id":16065},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":16066},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16065":{"this":{"__isSmartRef__":true,"id":15904}},"16066":{"timestamp":{"__isSmartRef__":true,"id":16067},"user":"soergel","tags":[]},"16067":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"16068":{"varMapping":{"__isSmartRef__":true,"id":16069},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16070},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16069":{"this":{"__isSmartRef__":true,"id":15904}},"16070":{"timestamp":{"__isSmartRef__":true,"id":16071},"user":"soergel","tags":["debug"]},"16071":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"16072":{"varMapping":{"__isSmartRef__":true,"id":16073},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16074},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16073":{"this":{"__isSmartRef__":true,"id":15904}},"16074":{"timestamp":{"__isSmartRef__":true,"id":16075},"user":"soergel","tags":["debug"]},"16075":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"16076":{"varMapping":{"__isSmartRef__":true,"id":16077},"source":"function disappear(successFunction) {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n this.move(3, successFunction);\n upperNeighbour.disappear(function() {\n if (successFunction != undefined)\n successFunction();\n this.updatePicture();\n this.isDirty = true;\n });\n }\n else {\n this.becomeRandomGem();\n this.updatePicture();\n this.isDirty = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16077":{"this":{"__isSmartRef__":true,"id":15904}},"16078":{"timestamp":{"__isSmartRef__":true,"id":16079},"user":"soergel","tags":[]},"16079":{"isSerializedDate":true,"string":"Mon May 14 2012 17:38:08 GMT+0200 (CEST)"},"16080":{"varMapping":{"__isSmartRef__":true,"id":16081},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16082},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16081":{"this":{"__isSmartRef__":true,"id":15904}},"16082":{"timestamp":{"__isSmartRef__":true,"id":16083},"user":"jan.sandbrink","tags":[]},"16083":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"16084":{"varMapping":{"__isSmartRef__":true,"id":16085},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":16086},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16085":{"this":{"__isSmartRef__":true,"id":15904}},"16086":{"timestamp":{"__isSmartRef__":true,"id":16087},"user":"jan.sandbrink","tags":[]},"16087":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"16088":{"varMapping":{"__isSmartRef__":true,"id":16089},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16090},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16089":{"this":{"__isSmartRef__":true,"id":15904}},"16090":{"timestamp":{"__isSmartRef__":true,"id":16091},"user":"jan.sandbrink","tags":[]},"16091":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"16092":{"varMapping":{"__isSmartRef__":true,"id":16093},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":16094},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16093":{"this":{"__isSmartRef__":true,"id":15904}},"16094":{"timestamp":{"__isSmartRef__":true,"id":16095},"user":"jan.sandbrink","tags":[]},"16095":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"16096":{"varMapping":{"__isSmartRef__":true,"id":16097},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":16098},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16097":{"this":{"__isSmartRef__":true,"id":15904}},"16098":{"timestamp":{"__isSmartRef__":true,"id":16099},"user":"josi","tags":["gemtypes"]},"16099":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"16100":{"varMapping":{"__isSmartRef__":true,"id":16101},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":16102},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16101":{"this":{"__isSmartRef__":true,"id":15904}},"16102":{"timestamp":{"__isSmartRef__":true,"id":16103},"user":"josi","tags":["gemtypes"]},"16103":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"16104":{"varMapping":{"__isSmartRef__":true,"id":16105},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16106},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16105":{"this":{"__isSmartRef__":true,"id":15904}},"16106":{"timestamp":{"__isSmartRef__":true,"id":16107},"user":"soergel","tags":["debug"]},"16107":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"16108":{"varMapping":{"__isSmartRef__":true,"id":16109},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16110},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16109":{"this":{"__isSmartRef__":true,"id":15904}},"16110":{"timestamp":{"__isSmartRef__":true,"id":16111},"user":"soergel","tags":["debug"]},"16111":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"16112":{"varMapping":{"__isSmartRef__":true,"id":16113},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":16114},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16113":{"this":{"__isSmartRef__":true,"id":15904}},"16114":{"timestamp":{"__isSmartRef__":true,"id":16115},"user":"josi","tags":["gemtypes"]},"16115":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"16116":{"varMapping":{"__isSmartRef__":true,"id":16117},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":16118},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16117":{"this":{"__isSmartRef__":true,"id":15904}},"16118":{"timestamp":{"__isSmartRef__":true,"id":16119},"user":"soergel","tags":[]},"16119":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"16120":{"varMapping":{"__isSmartRef__":true,"id":16121},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":16122},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16121":{"this":{"__isSmartRef__":true,"id":15904}},"16122":{"timestamp":{"__isSmartRef__":true,"id":16123},"user":"soergel","tags":[]},"16123":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"16124":{"varMapping":{"__isSmartRef__":true,"id":16125},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":16126},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16125":{"this":{"__isSmartRef__":true,"id":15904}},"16126":{"timestamp":{"__isSmartRef__":true,"id":16127},"user":"soergel","tags":[]},"16127":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"16128":{"varMapping":{"__isSmartRef__":true,"id":16129},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":16130},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16129":{"this":{"__isSmartRef__":true,"id":15904}},"16130":{"timestamp":{"__isSmartRef__":true,"id":16131},"user":"josi","tags":["gemtypes"]},"16131":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"16132":{"varMapping":{"__isSmartRef__":true,"id":16133},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":16134},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16133":{"this":{"__isSmartRef__":true,"id":15904}},"16134":{"timestamp":{"__isSmartRef__":true,"id":16135},"user":"josi","tags":["gemtypes"]},"16135":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"16136":{"varMapping":{"__isSmartRef__":true,"id":16137},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":16138},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16137":{"this":{"__isSmartRef__":true,"id":15904}},"16138":{"timestamp":{"__isSmartRef__":true,"id":16139},"user":"jan.sandbrink","tags":[]},"16139":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"16140":{"position":{"__isSmartRef__":true,"id":16141},"_Extent":{"__isSmartRef__":true,"id":16142},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16143},"_Fill":{"__isSmartRef__":true,"id":16144},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16145},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16146},"_BorderRadius":0,"_Opacity":0.3929,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16141":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16142":{"x":100,"y":100,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16143":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16144":{"r":0.42251384761555266,"g":0.6564697760174577,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16145":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16146":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16147":{"x":477.044478,"y":373.25237400000003,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16148":{"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":4,"partName":"Rectangle","changes":[{"__isSmartRef__":true,"id":16149},{"__isSmartRef__":true,"id":16151},{"__isSmartRef__":true,"id":16153},{"__isSmartRef__":true,"id":16155},{"__isSmartRef__":true,"id":16157},{"__isSmartRef__":true,"id":16159}],"revisionOnLoad":158846,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16149":{"date":{"__isSmartRef__":true,"id":16150},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"16150":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:36 GMT+0200 (CEST)"},"16151":{"date":{"__isSmartRef__":true,"id":16152},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"16152":{"isSerializedDate":true,"string":"Thu May 03 2012 15:51:30 GMT+0200 (CEST)"},"16153":{"date":{"__isSmartRef__":true,"id":16154},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"16154":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"16155":{"date":{"__isSmartRef__":true,"id":16156},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"16156":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"16157":{"date":{"__isSmartRef__":true,"id":16158},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"16158":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"16159":{"date":{"__isSmartRef__":true,"id":16160},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"16160":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"16161":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16162":{"morph":{"__isSmartRef__":true,"id":15903},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16163":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16164}},"16164":{"test01IsMorph":{"__isSmartRef__":true,"id":16165}},"16165":{"varMapping":{"__isSmartRef__":true,"id":16166},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":16167},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16166":{"this":{"__isSmartRef__":true,"id":16163}},"16167":{},"16168":{"submorphs":[],"scripts":[],"id":"7C4C3252-5E8F-466E-B469-73CFF0C8EF16","shape":{"__isSmartRef__":true,"id":16169},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16175},"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":16172},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":16176},"textChunks":[{"__isSmartRef__":true,"id":16185}],"charsReplaced":"foo!?","lastFindLoc":10,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":16187},"renderContextTable":{"__isSmartRef__":true,"id":16188},"eventHandler":{"__isSmartRef__":true,"id":16189},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":16190},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","11ADBF9E-8B46-456B-AAE8-2EEB02CCEBAF","2D4F6D33-3C51-476E-AE40-60546A40DE68","A9E70861-E556-47AB-BEAD-D0FAECEB5600","3E98996B-8CBD-43EE-838B-7077F40CDCA5","EA703C32-8C90-434E-B41C-C68157AD30F2","66D5E71D-9222-4C09-8302-AA3CDEB20949","0EBA5973-0BAA-44DC-A022-D1CC0EC0BE46","3EEBF083-903F-4557-8F8B-41B6A2AE60F6","5ED65BB1-290A-42F1-9926-1C44E8888455","522B7458-AFC8-4DEA-877E-FD77F857AFB7","420A518D-042B-4C9E-8ACF-08ACFA991884"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":77},"distanceToDragEvent":{"__isSmartRef__":true,"id":16191},"_TextColor":{"__isSmartRef__":true,"id":15872},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"16169":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":16170},"_Extent":{"__isSmartRef__":true,"id":16171},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16172},"renderContextTable":{"__isSmartRef__":true,"id":16173},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16174},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16170":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16171":{"x":128.695652,"y":26,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16172":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16173":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16174":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16175":{"x":721.574712999999,"y":60.86806600000017,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16176":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16177},{"__isSmartRef__":true,"id":16179},{"__isSmartRef__":true,"id":16181},{"__isSmartRef__":true,"id":16183}],"revisionOnLoad":154263,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16177":{"date":{"__isSmartRef__":true,"id":16178},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16178":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16179":{"date":{"__isSmartRef__":true,"id":16180},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16180":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16181":{"date":{"__isSmartRef__":true,"id":16182},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16182":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16183":{"date":{"__isSmartRef__":true,"id":16184},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16184":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16185":{"style":{"__isSmartRef__":true,"id":16186},"morph":{"__isSmartRef__":true,"id":16168},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":16168},"storedString":"Score","__LivelyClassName__":"lively.morphic.TextChunk"},"16186":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16187":{"x":128.695652,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16188":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16189":{"morph":{"__isSmartRef__":true,"id":16168},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16190":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16191":{"x":82.9799699599514,"y":-8.989984979975077,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16192":{"submorphs":[],"scripts":[],"id":"130B2B8A-5AD8-4592-9935-83D3173BD564","shape":{"__isSmartRef__":true,"id":16193},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16199},"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":16196},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text1","partsBinMetaInfo":{"__isSmartRef__":true,"id":16200},"textChunks":[{"__isSmartRef__":true,"id":16209}],"charsReplaced":"S","lastFindLoc":2,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":16211},"renderContextTable":{"__isSmartRef__":true,"id":16212},"eventHandler":{"__isSmartRef__":true,"id":16213},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":16214},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","11ADBF9E-8B46-456B-AAE8-2EEB02CCEBAF","2D4F6D33-3C51-476E-AE40-60546A40DE68","A9E70861-E556-47AB-BEAD-D0FAECEB5600","3E98996B-8CBD-43EE-838B-7077F40CDCA5","EA703C32-8C90-434E-B41C-C68157AD30F2","66D5E71D-9222-4C09-8302-AA3CDEB20949","84032FE3-8AB6-4424-B83A-FF4E52EED123","0FAD02C2-3CE1-4CDE-91EB-323997C07917","5131ACA3-7F65-4E6A-91B8-6AC15443B98E","D7C16494-3067-4C45-BF94-DD9054822671","EA666F0C-4E3E-4DAF-907F-7383403BB8A6","7DA4B648-E9DD-47ED-8535-C1D59A964675"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":16215},"owner":{"__isSmartRef__":true,"id":77},"_TextColor":{"__isSmartRef__":true,"id":15872},"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"16193":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":16194},"_Extent":{"__isSmartRef__":true,"id":16195},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16196},"renderContextTable":{"__isSmartRef__":true,"id":16197},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16198},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16194":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16195":{"x":128.695652,"y":26,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16196":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16197":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16198":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16199":{"x":681.6446779999991,"y":231.5422290000002,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16200":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16201},{"__isSmartRef__":true,"id":16203},{"__isSmartRef__":true,"id":16205},{"__isSmartRef__":true,"id":16207}],"revisionOnLoad":154263,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16201":{"date":{"__isSmartRef__":true,"id":16202},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16202":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16203":{"date":{"__isSmartRef__":true,"id":16204},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16204":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16205":{"date":{"__isSmartRef__":true,"id":16206},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16206":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16207":{"date":{"__isSmartRef__":true,"id":16208},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16208":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16209":{"style":{"__isSmartRef__":true,"id":16210},"morph":{"__isSmartRef__":true,"id":16192},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":16192},"storedString":"Highscore","__LivelyClassName__":"lively.morphic.TextChunk"},"16210":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16211":{"x":128.695652,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16212":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16213":{"morph":{"__isSmartRef__":true,"id":16192},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16214":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16215":{"x":83.98998497997638,"y":-16.006009012015113,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16216":{"submorphs":[],"scripts":[],"id":"8C41C804-A2E7-40A4-9575-06C6368378FB","shape":{"__isSmartRef__":true,"id":16217},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16223},"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":16220},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ScoreIndicator1","partsBinMetaInfo":{"__isSmartRef__":true,"id":16224},"textChunks":[{"__isSmartRef__":true,"id":16233}],"charsReplaced":"1313337","lastFindLoc":7,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":16235},"renderContextTable":{"__isSmartRef__":true,"id":16236},"eventHandler":{"__isSmartRef__":true,"id":16237},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":16238},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","2573B759-62DC-415C-8492-96EE2DA1D148","695F454E-5EF5-42FA-823A-04C3A5025E0F","0F954437-59B2-4E33-BEE7-CFD1A4BAD12D","2C787A82-E571-4C6F-AFBD-AA01F76AD16B","322F315B-A585-484E-8C4E-3E635AC6188A","20964E56-8B08-4C7C-B99F-BC092C025505","6F046F59-08A3-4649-8105-BD15168FF188","E5745F85-8486-445D-93F3-DFF85B039E7E","0F610A45-E0CB-416D-9EE6-BEFC34CF6B9B","377EB211-6973-4CC2-B421-A363BD21B2A5","DDFA3B52-799A-428B-9BF5-8396E69562F9","6BB65F7B-2CB5-43D6-A615-DB33E9594787"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":16239},"#startLetters":"","_Align":"right","owner":{"__isSmartRef__":true,"id":77},"previousSelection":[3,3],"_TextColor":{"__isSmartRef__":true,"id":15872},"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16240},"__LivelyClassName__":"lively.morphic.Text"},"16217":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":16218},"_Extent":{"__isSmartRef__":true,"id":16219},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16220},"renderContextTable":{"__isSmartRef__":true,"id":16221},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16222},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16218":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16219":{"x":128.695652,"y":26,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16220":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16221":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16222":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16223":{"x":651.716642000001,"y":259.5022490000005,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16224":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16225},{"__isSmartRef__":true,"id":16227},{"__isSmartRef__":true,"id":16229},{"__isSmartRef__":true,"id":16231}],"revisionOnLoad":154263,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16225":{"date":{"__isSmartRef__":true,"id":16226},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16226":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16227":{"date":{"__isSmartRef__":true,"id":16228},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16228":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16229":{"date":{"__isSmartRef__":true,"id":16230},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16230":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16231":{"date":{"__isSmartRef__":true,"id":16232},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16232":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16233":{"style":{"__isSmartRef__":true,"id":16234},"chunkOwner":{"__isSmartRef__":true,"id":16216},"storedString":"4790","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16234":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16235":{"x":128.695652,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16236":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16237":{"morph":{"__isSmartRef__":true,"id":16216},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16238":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16239":{"x":92.97796695594423,"y":-17.022033044055377,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16240":{"setScore":{"__isSmartRef__":true,"id":16241}},"16241":{"varMapping":{"__isSmartRef__":true,"id":16242},"source":"function setScore(score) {\n this.setTextString(score);\n}","funcProperties":{"__isSmartRef__":true,"id":16243},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16242":{"this":{"__isSmartRef__":true,"id":16216}},"16243":{"timestamp":{"__isSmartRef__":true,"id":16244},"user":"jan.sandbrink","tags":[]},"16244":{"isSerializedDate":true,"string":"Tue May 08 2012 12:34:02 GMT+0200 (CEST)"},"16245":{"submorphs":[],"scripts":[],"id":"20A2E9CD-747F-4090-A41B-9CAAB18CEF38","shape":{"__isSmartRef__":true,"id":16246},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16252},"_MaxTextWidth":120.695652,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":16249},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"GameOverIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":16253},"textChunks":[{"__isSmartRef__":true,"id":16262}],"charsReplaced":"foo!?","lastFindLoc":10,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":16264},"renderContextTable":{"__isSmartRef__":true,"id":16265},"eventHandler":{"__isSmartRef__":true,"id":16266},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":16267},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","11ADBF9E-8B46-456B-AAE8-2EEB02CCEBAF","2D4F6D33-3C51-476E-AE40-60546A40DE68","A9E70861-E556-47AB-BEAD-D0FAECEB5600","3E98996B-8CBD-43EE-838B-7077F40CDCA5","EA703C32-8C90-434E-B41C-C68157AD30F2","66D5E71D-9222-4C09-8302-AA3CDEB20949","0EBA5973-0BAA-44DC-A022-D1CC0EC0BE46","3EEBF083-903F-4557-8F8B-41B6A2AE60F6","B37357D0-B1A5-4E83-96FB-D2CA063F2DC3","5324E268-AF55-4777-9CAE-FDD6CAE93B2C","38DE0189-4A0F-4C1E-9026-26C0729D8F0A","4E984210-24D7-4796-9119-FCC9DD07159A"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":120.695652,"_MinTextHeight":null,"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":16268},"owner":{"__isSmartRef__":true,"id":77},"_TextColor":{"__isSmartRef__":true,"id":15872},"_Rotation":0,"_Scale":0.998001,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16269},"__LivelyClassName__":"lively.morphic.Text"},"16246":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":16247},"_Extent":{"__isSmartRef__":true,"id":16248},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16249},"renderContextTable":{"__isSmartRef__":true,"id":16250},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16251},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16247":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16248":{"x":128.695652,"y":26,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16249":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16250":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16251":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16252":{"x":553.8905549999979,"y":226.5402300000007,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16253":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16254},{"__isSmartRef__":true,"id":16256},{"__isSmartRef__":true,"id":16258},{"__isSmartRef__":true,"id":16260}],"revisionOnLoad":154263,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16254":{"date":{"__isSmartRef__":true,"id":16255},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16255":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16256":{"date":{"__isSmartRef__":true,"id":16257},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16257":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16258":{"date":{"__isSmartRef__":true,"id":16259},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16259":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16260":{"date":{"__isSmartRef__":true,"id":16261},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16261":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16262":{"style":{"__isSmartRef__":true,"id":16263},"chunkOwner":{"__isSmartRef__":true,"id":16245},"storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16263":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16264":{"x":128.695652,"y":26,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16265":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16266":{"morph":{"__isSmartRef__":true,"id":16245},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16267":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16268":{"x":90.00000000000159,"y":-12.99399098798574,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16269":{"gameOver":{"__isSmartRef__":true,"id":16270},"gameStarted":{"__isSmartRef__":true,"id":16274}},"16270":{"varMapping":{"__isSmartRef__":true,"id":16271},"source":"function gameOver() {\n this.setTextString(\"GAME OVER\");\n}","funcProperties":{"__isSmartRef__":true,"id":16272},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16271":{"this":{"__isSmartRef__":true,"id":16245}},"16272":{"timestamp":{"__isSmartRef__":true,"id":16273},"user":"jan.sandbrink","tags":[]},"16273":{"isSerializedDate":true,"string":"Mon May 14 2012 11:46:18 GMT+0200 (CEST)"},"16274":{"varMapping":{"__isSmartRef__":true,"id":16275},"source":"function gameStarted() {\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":16276},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16275":{"this":{"__isSmartRef__":true,"id":16245}},"16276":{"timestamp":{"__isSmartRef__":true,"id":16277},"user":"jan.sandbrink","tags":[]},"16277":{"isSerializedDate":true,"string":"Mon May 14 2012 11:46:06 GMT+0200 (CEST)"},"16278":{"submorphs":[],"scripts":[],"id":"C40B14F0-4D53-4125-AF63-F7596DF3A41C","shape":{"__isSmartRef__":true,"id":16279},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16285},"_MaxTextWidth":249.95403951664724,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":16282},"showsHalos":false,"_FontSize":20,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text2","partsBinMetaInfo":{"__isSmartRef__":true,"id":16286},"textChunks":[{"__isSmartRef__":true,"id":16295}],"charsReplaced":"Highscore","lastFindLoc":9,"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":16297},"renderContextTable":{"__isSmartRef__":true,"id":16298},"eventHandler":{"__isSmartRef__":true,"id":16299},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":16300},"_ClipMode":"visible","derivationIds":[355,"1EB1674F-8BF2-419B-B054-86129ED70335","63698904-DC05-4341-A9B6-5CC4A219CD04","11ADBF9E-8B46-456B-AAE8-2EEB02CCEBAF","2D4F6D33-3C51-476E-AE40-60546A40DE68","A9E70861-E556-47AB-BEAD-D0FAECEB5600","3E98996B-8CBD-43EE-838B-7077F40CDCA5","EA703C32-8C90-434E-B41C-C68157AD30F2","66D5E71D-9222-4C09-8302-AA3CDEB20949","84032FE3-8AB6-4424-B83A-FF4E52EED123","0FAD02C2-3CE1-4CDE-91EB-323997C07917","5131ACA3-7F65-4E6A-91B8-6AC15443B98E","D7C16494-3067-4C45-BF94-DD9054822671","EA666F0C-4E3E-4DAF-907F-7383403BB8A6","7DA4B648-E9DD-47ED-8535-C1D59A964675","4205BE17-C142-43FE-805E-B6EAE2265539"],"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":249.95403951664724,"_MinTextHeight":null,"isBeingDragged":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":16301},"_TextColor":{"__isSmartRef__":true,"id":16302},"owner":{"__isSmartRef__":true,"id":77},"previousSelection":[3,3],"_Rotation":0,"_Scale":0.998001,"__LivelyClassName__":"lively.morphic.Text"},"16279":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":16280},"_Extent":{"__isSmartRef__":true,"id":16281},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16282},"renderContextTable":{"__isSmartRef__":true,"id":16283},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16284},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16280":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16281":{"x":257.95403951664724,"y":66,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16282":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16283":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16284":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16285":{"x":420.1564219999992,"y":21.962019000000225,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16286":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","changes":[{"__isSmartRef__":true,"id":16287},{"__isSmartRef__":true,"id":16289},{"__isSmartRef__":true,"id":16291},{"__isSmartRef__":true,"id":16293}],"revisionOnLoad":154263,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16287":{"date":{"__isSmartRef__":true,"id":16288},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"785D95BD-7858-43EB-90E6-A1C085E2F2B9"},"16288":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:32:09 GMT+0200 (CEST)"},"16289":{"date":{"__isSmartRef__":true,"id":16290},"author":"tessi","message":"TextBubble calls its disappear() function after showBubbleTime() milliseconds now","id":"0F4DE333-A551-4961-B29D-70270977EBEF"},"16290":{"isSerializedDate":true,"string":"Sat Apr 21 2012 07:31:43 GMT+0200 (CEST)"},"16291":{"date":{"__isSmartRef__":true,"id":16292},"author":"undefined","message":"Set the inset as: this.setPadding(Rectangle.inset(4,2)). This gives it a more pleasing appearance with a border, and also makes it easier to select near the bounds.","id":"BD5B0E4C-4830-4863-A013-35BB66D5AD6F"},"16292":{"isSerializedDate":true,"string":"Mon Feb 27 2012 06:20:38 GMT+0100 (CET)"},"16293":{"date":{"__isSmartRef__":true,"id":16294},"author":"robertkrahn","message":"text click was broken?","id":"9D065E14-9653-4B2A-9A2E-3AD84EBBC3E0"},"16294":{"isSerializedDate":true,"string":"Sat Apr 21 2012 16:30:30 GMT+0200 (CEST)"},"16295":{"style":{"__isSmartRef__":true,"id":16296},"morph":{"__isSmartRef__":true,"id":16278},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":16278},"storedString":"Yet Another Bejeweled Clone ...","__LivelyClassName__":"lively.morphic.TextChunk"},"16296":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16297":{"x":257.95403951664724,"y":66,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16298":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16299":{"morph":{"__isSmartRef__":true,"id":16278},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16300":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16301":{"x":83.98998497997638,"y":-16.006009012015113,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16302":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16303":{"position":{"__isSmartRef__":true,"id":16304},"_Extent":{"__isSmartRef__":true,"id":16305},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16306},"_Fill":{"__isSmartRef__":true,"id":16307},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16308},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16309},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16304":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16305":{"x":798.6006999999992,"y":505.18840599999965,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16306":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16307":{"r":0.0060878553845526324,"g":0,"b":0.3391805142822193,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16308":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16309":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16310":{"x":62,"y":116,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16311":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"Our Bejeweled board to put the gems on","migrationLevel":4,"partName":"GemBoard","changes":[{"__isSmartRef__":true,"id":16312},{"__isSmartRef__":true,"id":16314},{"__isSmartRef__":true,"id":16316},{"__isSmartRef__":true,"id":16318},{"__isSmartRef__":true,"id":16320},{"__isSmartRef__":true,"id":16322}],"revisionOnLoad":162175,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16312":{"date":{"__isSmartRef__":true,"id":16313},"author":"soergel","message":"no comment","id":"30926D46-00C1-4F97-A64C-603BD6C898B1"},"16313":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:43:24 GMT+0200 (CEST)"},"16314":{"date":{"__isSmartRef__":true,"id":16315},"author":"soergel","message":"first version","id":"00D9A790-91D2-4A63-8FA4-78C344DA038C"},"16315":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:30 GMT+0200 (CEST)"},"16316":{"date":{"__isSmartRef__":true,"id":16317},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"16317":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"16318":{"date":{"__isSmartRef__":true,"id":16319},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"16319":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"16320":{"date":{"__isSmartRef__":true,"id":16321},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"16321":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"16322":{"date":{"__isSmartRef__":true,"id":16323},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"16323":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"16324":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16325":{"morph":{"__isSmartRef__":true,"id":77},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16326":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16327}},"16327":{"test01IsMorph":{"__isSmartRef__":true,"id":16328}},"16328":{"varMapping":{"__isSmartRef__":true,"id":16329},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":16330},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16329":{"this":{"__isSmartRef__":true,"id":16326}},"16330":{},"16331":{"x":799.5987009999992,"y":505.18840599999965,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16332":{"submorphs":[{"__isSmartRef__":true,"id":16333}],"scripts":[],"id":"567D401E-5E34-43E0-9C43-9A16C906A731","shape":{"__isSmartRef__":true,"id":16379},"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":16386},"showsHalos":false,"name":"BasicGem","partsBinMetaInfo":{"__isSmartRef__":true,"id":16387},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":16426},"eventHandler":{"__isSmartRef__":true,"id":16427},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5"],"partTests":{"__isSmartRef__":true,"id":16428},"_ClipMode":"visible","priorExtent":{"__isSmartRef__":true,"id":16433},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"moved":true,"directions":{"__isSmartRef__":true,"id":16434},"neighbours":[null,null,null,null],"#startLetters":"","isGem":true,"isDirty":false,"gem":"emerald","shouldBeDeleted":false,"prevScroll":[0,0],"owner":null,"_Rotation":0,"_Scale":1.0040100200350572,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16435},"__LivelyClassName__":"lively.morphic.Box"},"16333":{"submorphs":[{"__isSmartRef__":true,"id":16334},{"__isSmartRef__":true,"id":16345},{"__isSmartRef__":true,"id":16355}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16365},"derivationIds":[null,"4BC28AF3-05B0-4746-9A43-CDB37C384755","1202424B-E159-44EA-BA2E-AF64AE2B725A","BCD640AE-8267-4E19-B342-E124777D21D7"],"id":"BBE4C125-C0B9-4740-B077-B963A0B200ED","renderContextTable":{"__isSmartRef__":true,"id":16376},"eventHandler":{"__isSmartRef__":true,"id":16377},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16332},"_Position":{"__isSmartRef__":true,"id":16378},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Path"},"16334":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16335},"derivationIds":[null,"AB037B4D-D1CA-41D6-8C01-53402DAC598F","8E6A49D5-BB63-4B5F-BA22-AB655B94AF2C","5A5C8BDB-FF34-4EFE-951E-DDC911D061CD"],"id":"E36EB14E-8B51-48D5-BE28-1F8CB2BB83A9","renderContextTable":{"__isSmartRef__":true,"id":16343},"eventHandler":{"__isSmartRef__":true,"id":16344},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16333},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Path"},"16335":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":16336},{"__isSmartRef__":true,"id":16337}],"renderContextTable":{"__isSmartRef__":true,"id":16338},"_Position":{"__isSmartRef__":true,"id":16339},"_Extent":{"__isSmartRef__":true,"id":16340},"_Padding":{"__isSmartRef__":true,"id":16341},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":16342},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"16336":{"isAbsolute":true,"x":25,"y":8,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"16337":{"isAbsolute":true,"x":25,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"16338":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"16339":{"x":23,"y":6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16340":{"x":3,"y":25,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16341":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16342":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16343":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16344":{"morph":{"__isSmartRef__":true,"id":16334},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16345":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16346},"derivationIds":[null,"B2C7A79B-B687-4BFE-AF3F-6C2720ECDB73","0D117D66-2D14-4E57-BB84-344BA73AC602","06FC3CB7-BE88-45B0-801A-F5BAC9AD821F"],"id":"EC93A197-9396-465E-AB75-4B03E4907C8C","renderContextTable":{"__isSmartRef__":true,"id":16353},"eventHandler":{"__isSmartRef__":true,"id":16354},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16333},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Path"},"16346":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":16347},{"__isSmartRef__":true,"id":16348}],"renderContextTable":{"__isSmartRef__":true,"id":16349},"_Position":{"__isSmartRef__":true,"id":16350},"_Extent":{"__isSmartRef__":true,"id":16351},"_Padding":{"__isSmartRef__":true,"id":16352},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":16342},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"16347":{"isAbsolute":true,"x":9,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"16348":{"isAbsolute":true,"x":25,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"16349":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"16350":{"x":7,"y":28,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16351":{"x":19,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16352":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16353":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16354":{"morph":{"__isSmartRef__":true,"id":16345},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16355":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16356},"derivationIds":[null,"B190EFCC-18CC-4462-AF93-AAD6722CE2AF","76FA41EC-56AE-4286-A022-18F7261A4505","6BD87AF2-6911-4B47-9AA2-41B58A6C3D77"],"id":"B70AD881-1807-44C6-98E2-E4A116D29F80","renderContextTable":{"__isSmartRef__":true,"id":16363},"eventHandler":{"__isSmartRef__":true,"id":16364},"_ClipMode":"visible","droppingEnabled":false,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":16333},"grabbingEnabled":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"__LivelyClassName__":"lively.morphic.Path"},"16356":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":16357},{"__isSmartRef__":true,"id":16358}],"renderContextTable":{"__isSmartRef__":true,"id":16359},"_Position":{"__isSmartRef__":true,"id":16360},"_Extent":{"__isSmartRef__":true,"id":16361},"_Padding":{"__isSmartRef__":true,"id":16362},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":16342},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"16357":{"isAbsolute":true,"x":41,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"16358":{"isAbsolute":true,"x":25,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"16359":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"16360":{"x":23,"y":28,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16361":{"x":19,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16362":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16363":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16364":{"morph":{"__isSmartRef__":true,"id":16355},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16365":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":16366},{"__isSmartRef__":true,"id":16367},{"__isSmartRef__":true,"id":16368},{"__isSmartRef__":true,"id":16369},{"__isSmartRef__":true,"id":16370}],"renderContextTable":{"__isSmartRef__":true,"id":16371},"_Position":{"__isSmartRef__":true,"id":16372},"_Extent":{"__isSmartRef__":true,"id":16373},"_Padding":{"__isSmartRef__":true,"id":16374},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16342},"_Fill":{"__isSmartRef__":true,"id":16375},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"16366":{"isAbsolute":true,"x":25,"y":9,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"16367":{"isAbsolute":true,"x":38,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"16368":{"isAbsolute":true,"x":30,"y":41,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"16369":{"isAbsolute":true,"x":20,"y":41,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"16370":{"isAbsolute":true,"x":12,"y":30,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"16371":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"16372":{"x":11,"y":8,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16373":{"x":27,"y":33,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16374":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16375":{"r":0.10196078431372549,"g":1,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16376":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16377":{"morph":{"__isSmartRef__":true,"id":16333},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16378":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16379":{"position":{"__isSmartRef__":true,"id":16380},"_Extent":{"__isSmartRef__":true,"id":16381},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16382},"_Fill":{"__isSmartRef__":true,"id":16383},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":16384},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16385},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16380":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16381":{"x":49.20369420394888,"y":50.19970019994978,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16382":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16383":{"r":0.8,"g":0.8,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16384":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16385":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16386":{"x":483.03248399999995,"y":67.86406799999999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16387":{"partsSpaceName":"PartsBin/groupBejeweled/","__SourceModuleName__":"Global.lively.PartsBin","comment":"This is a basic gem that can become different types of gems (such as ruby and amethyst).","migrationLevel":4,"partName":"BasicGem","changes":[{"__isSmartRef__":true,"id":16388},{"__isSmartRef__":true,"id":16390},{"__isSmartRef__":true,"id":16392},{"__isSmartRef__":true,"id":16394},{"__isSmartRef__":true,"id":16396},{"__isSmartRef__":true,"id":16398},{"__isSmartRef__":true,"id":16400},{"__isSmartRef__":true,"id":16402},{"__isSmartRef__":true,"id":16404},{"__isSmartRef__":true,"id":16406},{"__isSmartRef__":true,"id":16408},{"__isSmartRef__":true,"id":16410},{"__isSmartRef__":true,"id":16412},{"__isSmartRef__":true,"id":16414},{"__isSmartRef__":true,"id":16416},{"__isSmartRef__":true,"id":16418},{"__isSmartRef__":true,"id":16420},{"__isSmartRef__":true,"id":16422},{"__isSmartRef__":true,"id":16424}],"revisionOnLoad":162033,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"16388":{"date":{"__isSmartRef__":true,"id":16389},"author":"josi","message":"another gemType","id":"16C44641-15C6-4404-A5C5-ED4650E67206"},"16389":{"isSerializedDate":true,"string":"Mon May 07 2012 15:56:34 GMT+0200 (CEST)"},"16390":{"date":{"__isSmartRef__":true,"id":16391},"author":"soergel","message":"overridden","id":"F2823C2C-326F-4A57-95DA-860674FAAE98"},"16391":{"isSerializedDate":true,"string":"Wed May 02 2012 13:40:12 GMT+0200 (CEST)"},"16392":{"date":{"__isSmartRef__":true,"id":16393},"author":"josi","message":"gem type can now be changed into amethyst","id":"BC7F4160-A8F1-492B-806B-E0C2DB3C3D2A"},"16393":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:38:32 GMT+0200 (CEST)"},"16394":{"date":{"__isSmartRef__":true,"id":16395},"author":"josi","message":"can now become a styled ruby ;)","id":"5FD66E1D-7111-430C-A6A6-AC42566771E6"},"16395":{"isSerializedDate":true,"string":"Thu Apr 26 2012 13:43:28 GMT+0200 (CEST)"},"16396":{"date":{"__isSmartRef__":true,"id":16397},"author":"josi","message":"some minor changes (like size and no border for \"gems\")","id":"08765E93-94C3-44D0-840E-5260CAD06CE8"},"16397":{"isSerializedDate":true,"string":"Thu Apr 26 2012 12:12:32 GMT+0200 (CEST)"},"16398":{"date":{"__isSmartRef__":true,"id":16399},"author":"josi","message":"basic functionality of adding real picture (morph) to gem","id":"6A73B3AE-225F-4447-9129-87575BFE4893"},"16399":{"isSerializedDate":true,"string":"Thu Apr 26 2012 11:58:39 GMT+0200 (CEST)"},"16400":{"date":{"__isSmartRef__":true,"id":16401},"author":"josi","message":"added become-functionality (inspired by the FreedomSpeech group), but still lacks of a lot of functionality","id":"E31E69D2-46FE-487C-810B-C284826E0A11"},"16401":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:49:02 GMT+0200 (CEST)"},"16402":{"date":{"__isSmartRef__":true,"id":16403},"author":"josi","message":"no comment","id":"3B32B7A3-D2B4-41A4-AFD2-59AA1837004C"},"16403":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:01:57 GMT+0200 (CEST)"},"16404":{"date":{"__isSmartRef__":true,"id":16405},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"16405":{"isSerializedDate":true,"string":"Mon Apr 09 2012 13:42:07 GMT+0200 (CEST)"},"16406":{"date":{"__isSmartRef__":true,"id":16407},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"16407":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:42:26 GMT+0100 (CET)"},"16408":{"date":{"__isSmartRef__":true,"id":16409},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"16409":{"isSerializedDate":true,"string":"Sat Feb 25 2012 02:59:09 GMT+0100 (CET)"},"16410":{"date":{"__isSmartRef__":true,"id":16411},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"16411":{"isSerializedDate":true,"string":"Wed Mar 14 2012 10:53:45 GMT+0100 (CET)"},"16412":{"date":{"__isSmartRef__":true,"id":16413},"author":"josi","message":"more styled version of ruby","id":"E35A76D9-3A82-4589-B827-20254EA51FB8"},"16413":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:36:26 GMT+0200 (CEST)"},"16414":{"date":{"__isSmartRef__":true,"id":16415},"author":"josi","message":"another gemType & array for all gemTypes","id":"E4C93F7A-B95D-4587-8485-C7940304143B"},"16415":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:52:49 GMT+0200 (CEST)"},"16416":{"date":{"__isSmartRef__":true,"id":16417},"author":"josi","message":"styling diopside","id":"65B5E617-A4DF-460D-A7F4-1F8DEC927840"},"16417":{"isSerializedDate":true,"string":"Mon Apr 30 2012 13:06:13 GMT+0200 (CEST)"},"16418":{"date":{"__isSmartRef__":true,"id":16419},"author":"josi","message":"updating picture is now more general (but needs some refactoring!!!)","id":"C235D240-065B-4DD0-BCBD-00A9B6AD63A1"},"16419":{"isSerializedDate":true,"string":"Mon Apr 30 2012 14:56:55 GMT+0200 (CEST)"},"16420":{"date":{"__isSmartRef__":true,"id":16421},"author":"josi","message":"added blue diamond","id":"62B702D1-677C-4634-8751-EE3FBEC68D50"},"16421":{"isSerializedDate":true,"string":"Mon Apr 30 2012 15:22:13 GMT+0200 (CEST)"},"16422":{"date":{"__isSmartRef__":true,"id":16423},"author":"josi","message":"added prehnite","id":"21C33415-A95E-46F9-A434-B17D3B1D3FE3"},"16423":{"isSerializedDate":true,"string":"Tue May 01 2012 16:17:53 GMT+0200 (CEST)"},"16424":{"date":{"__isSmartRef__":true,"id":16425},"author":"josi","message":"merged (hopefully doesn't overwrite anything again)","id":"3863DEF2-14D9-4777-9E4B-01A2957B34ED"},"16425":{"isSerializedDate":true,"string":"Wed May 02 2012 22:16:49 GMT+0200 (CEST)"},"16426":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16427":{"morph":{"__isSmartRef__":true,"id":16332},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16428":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16429}},"16429":{"test01IsMorph":{"__isSmartRef__":true,"id":16430}},"16430":{"varMapping":{"__isSmartRef__":true,"id":16431},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":16432},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16431":{"this":{"__isSmartRef__":true,"id":16428}},"16432":{},"16433":{"x":49.20369420394888,"y":51.19570619595078,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16434":{"left":0,"up":1,"right":2,"down":3},"16435":{"become":{"__isSmartRef__":true,"id":16436},"onMouseDown":{"__isSmartRef__":true,"id":16440},"updatePicture":{"__isSmartRef__":true,"id":16448},"ruby":{"__isSmartRef__":true,"id":16452},"switchPositionWith":{"__isSmartRef__":true,"id":16456},"addNeighbour":{"__isSmartRef__":true,"id":16460},"amethyst":{"__isSmartRef__":true,"id":16464},"diopside":{"__isSmartRef__":true,"id":16468},"gemTypes":{"__isSmartRef__":true,"id":16472},"becomeRandomGem":{"__isSmartRef__":true,"id":16476},"mark":{"__isSmartRef__":true,"id":16480},"unmark":{"__isSmartRef__":true,"id":16484},"hasNeighbour":{"__isSmartRef__":true,"id":16488},"debugMarkNeighbours":{"__isSmartRef__":true,"id":16492},"debugUnmarkNeighbours":{"__isSmartRef__":true,"id":16496},"disappear":{"__isSmartRef__":true,"id":16500},"findStreakStart":{"__isSmartRef__":true,"id":16504},"buildStreak":{"__isSmartRef__":true,"id":16508},"scoreStreak":{"__isSmartRef__":true,"id":16512},"tryToStreak":{"__isSmartRef__":true,"id":16516},"blueDiamond":{"__isSmartRef__":true,"id":16520},"prehnite":{"__isSmartRef__":true,"id":16524},"debugUnmark":{"__isSmartRef__":true,"id":16528},"debugMark":{"__isSmartRef__":true,"id":16532},"citrine":{"__isSmartRef__":true,"id":16536},"move":{"__isSmartRef__":true,"id":16540},"performMovement":{"__isSmartRef__":true,"id":16544},"getDirectionForNeighbour":{"__isSmartRef__":true,"id":16548},"zircon":{"__isSmartRef__":true,"id":16552},"emerald":{"__isSmartRef__":true,"id":16556},"canScoreBySwitchingWith":{"__isSmartRef__":true,"id":16560}},"16436":{"varMapping":{"__isSmartRef__":true,"id":16437},"source":"function become(gem) {\n this.gem = gem;\n this.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":16438},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16437":{"this":{"__isSmartRef__":true,"id":16332}},"16438":{"timestamp":{"__isSmartRef__":true,"id":16439},"user":"josi","tags":[]},"16439":{"isSerializedDate":true,"string":"Wed Apr 25 2012 16:17:19 GMT+0200 (CEST)"},"16440":{"varMapping":{"__isSmartRef__":true,"id":16441},"source":"function onMouseDown(evt) {\n var markedGem = this.owner.markedGem;\n if (this.owner != $world) {\n if (markedGem == null) {\n this.mark();\n } else if (markedGem == this) {\n this.unmark();\n } else {\n if (this.hasNeighbour(markedGem)) {\n var thisGem = this;\n var thisDirection = this.getDirectionForNeighbour(markedGem);\n var otherDirection = (thisDirection + 2) % 4;\n markedGem.move(otherDirection);\n this.move(thisDirection, function() {\n thisGem.switchPositionWith(markedGem);\n markedGem.unmark();\n });\n }\n }\n }\n\n console.log(this.gem);\n}","funcProperties":{"__isSmartRef__":true,"id":16446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16441":{"this":{"__isSmartRef__":true,"id":16332},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16442}},"16442":{"$super":{"__isSmartRef__":true,"id":16443}},"16443":{"varMapping":{"__isSmartRef__":true,"id":16444},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16445},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16444":{"obj":{"__isSmartRef__":true,"id":16332},"name":"onMouseDown"},"16445":{},"16446":{"timestamp":{"__isSmartRef__":true,"id":16447},"user":"soergel","tags":[]},"16447":{"isSerializedDate":true,"string":"Tue May 08 2012 22:44:31 GMT+0200 (CEST)"},"16448":{"varMapping":{"__isSmartRef__":true,"id":16449},"source":"function updatePicture() {\n this.removeAllMorphs();\n if (this.gemTypes().include(this.gem)) {\n this.addMorph(this[this.gem]());\n this.topMorph().setPosition(pt(0, 0));\n } else {\n gem = Morph.makeRectangle(0, 0, 30, 30);\n gem.setFill(Color.random());\n gem.setPosition(pt(10, 10));\n gem.setBorderWidth(0);\n this.addMorph(gem);\n }\n this.topMorph().disableGrabbing(true);\n this.topMorph().disableDropping(true);\n}","funcProperties":{"__isSmartRef__":true,"id":16450},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16449":{"this":{"__isSmartRef__":true,"id":16332}},"16450":{"timestamp":{"__isSmartRef__":true,"id":16451},"user":"soergel","tags":[]},"16451":{"isSerializedDate":true,"string":"Sun Apr 29 2012 21:44:47 GMT+0200 (CEST)"},"16452":{"varMapping":{"__isSmartRef__":true,"id":16453},"source":"function ruby() {\n var ruby = Morph.makePolygon([pt(15, 9), pt(35, 9), pt(45, 20), pt(25, 41), pt(25, 41), pt(5, 20)], 1, Color.white, Color.red);\n line = Morph.makeLine([pt(5, 20, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(45, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 9, 0), pt(13, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 9, 0), pt(37, 20)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(37, 20, 0), pt(25, 41)], 2, Color.white);\n ruby.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return ruby;\n}","funcProperties":{"__isSmartRef__":true,"id":16454},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16453":{"this":{"__isSmartRef__":true,"id":16332}},"16454":{"timestamp":{"__isSmartRef__":true,"id":16455},"user":"josi","tags":["gemtypes"]},"16455":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:35:37 GMT+0200 (CEST)"},"16456":{"varMapping":{"__isSmartRef__":true,"id":16457},"source":"function switchPositionWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n if(!this.owner.runFieldPhysics())\n {\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n alertOK(\"Move not allowed!\");\n }\n\n this.updatePicture();\n gem.updatePicture();\n}","funcProperties":{"__isSmartRef__":true,"id":16458},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16457":{"this":{"__isSmartRef__":true,"id":16332}},"16458":{"timestamp":{"__isSmartRef__":true,"id":16459},"user":"jan.sandbrink","tags":[]},"16459":{"isSerializedDate":true,"string":"Mon May 14 2012 11:19:03 GMT+0200 (CEST)"},"16460":{"varMapping":{"__isSmartRef__":true,"id":16461},"source":"function addNeighbour(gem, direction) {\n this.neighbours[direction] = gem;\n gem.neighbours[(direction+2) % 4] = this;\n}","funcProperties":{"__isSmartRef__":true,"id":16462},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16461":{"this":{"__isSmartRef__":true,"id":16332}},"16462":{"timestamp":{"__isSmartRef__":true,"id":16463},"user":"jan.sandbrink","tags":[]},"16463":{"isSerializedDate":true,"string":"Thu Apr 26 2012 14:12:13 GMT+0200 (CEST)"},"16464":{"varMapping":{"__isSmartRef__":true,"id":16465},"source":"function amethyst() {\n var amethyst = Morph.makePolygon([pt(14, 9), pt(36, 9), pt(41, 14), pt(41, 36), pt(36, 41), pt(14, 41), pt(9, 36), pt(9, 14)], 1, Color.white, Color.rgb(138, 40, 143));\n line = Morph.makeLine([pt(17, 17, 0), pt(33, 17)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 33, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(33, 17, 0), pt(33, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(17, 17, 0), pt(17, 33)], 2, Color.rgb(200, 120, 200));\n amethyst.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return amethyst;\n}","funcProperties":{"__isSmartRef__":true,"id":16466},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16465":{"this":{"__isSmartRef__":true,"id":16332}},"16466":{"timestamp":{"__isSmartRef__":true,"id":16467},"user":"josi","tags":["gemtypes"]},"16467":{"isSerializedDate":true,"string":"Sat Apr 28 2012 23:35:45 GMT+0200 (CEST)"},"16468":{"varMapping":{"__isSmartRef__":true,"id":16469},"source":"function diopside() {\n var diopside = Morph.makePolygon([pt(9, 25), pt(15, 15), pt(35, 15), pt(41, 25), pt(35, 35), pt(15, 35)], 1, Color.white, Color.rgb(47, 92, 0));\n line = Morph.makeLine([pt(19, 25, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 16, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(16, 34, 0), pt(19, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 16, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(34, 34, 0), pt(31, 25)], 2, Color.rgb(100, 200, 0));\n diopside.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diopside;\n}","funcProperties":{"__isSmartRef__":true,"id":16470},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16469":{"this":{"__isSmartRef__":true,"id":16332}},"16470":{"timestamp":{"__isSmartRef__":true,"id":16471},"user":"josi","tags":["gemtypes"]},"16471":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:20 GMT+0200 (CEST)"},"16472":{"varMapping":{"__isSmartRef__":true,"id":16473},"source":"function gemTypes() {\n return [\"amethyst\", \"blueDiamond\", \"citrine\", \"diopside\", \"emerald\", \"prehnite\", \"ruby\", \"zircon\"];\n}","funcProperties":{"__isSmartRef__":true,"id":16474},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16473":{"this":{"__isSmartRef__":true,"id":16332}},"16474":{"timestamp":{"__isSmartRef__":true,"id":16475},"user":"josi","tags":[]},"16475":{"isSerializedDate":true,"string":"Thu May 10 2012 15:56:15 GMT+0200 (CEST)"},"16476":{"varMapping":{"__isSmartRef__":true,"id":16477},"source":"function becomeRandomGem() {\n gemTypes = this.gemTypes();\n this.become(gemTypes[Math.round(Math.random() * (gemTypes.length - 1))]);\n}","funcProperties":{"__isSmartRef__":true,"id":16478},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16477":{"this":{"__isSmartRef__":true,"id":16332}},"16478":{"timestamp":{"__isSmartRef__":true,"id":16479},"user":"josi","tags":[]},"16479":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:50:07 GMT+0200 (CEST)"},"16480":{"varMapping":{"__isSmartRef__":true,"id":16481},"source":"function mark() {\n this.setFill(Color.yellow);\n\n this.owner.markedGem = this;\n}","funcProperties":{"__isSmartRef__":true,"id":16482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16481":{"this":{"__isSmartRef__":true,"id":16332}},"16482":{"timestamp":{"__isSmartRef__":true,"id":16483},"user":"soergel","tags":[]},"16483":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:29 GMT+0200 (CEST)"},"16484":{"varMapping":{"__isSmartRef__":true,"id":16485},"source":"function unmark() {\n this.setFill(Color.white);\n\n this.owner.markedGem = null;\n}","funcProperties":{"__isSmartRef__":true,"id":16486},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16485":{"this":{"__isSmartRef__":true,"id":16332}},"16486":{"timestamp":{"__isSmartRef__":true,"id":16487},"user":"soergel","tags":[]},"16487":{"isSerializedDate":true,"string":"Sun Apr 29 2012 22:13:52 GMT+0200 (CEST)"},"16488":{"varMapping":{"__isSmartRef__":true,"id":16489},"source":"function hasNeighbour(gem) {\n return $.inArray(gem, this.neighbours) != -1;\n}","funcProperties":{"__isSmartRef__":true,"id":16490},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16489":{"this":{"__isSmartRef__":true,"id":16332}},"16490":{"timestamp":{"__isSmartRef__":true,"id":16491},"user":"soergel","tags":[]},"16491":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:17:26 GMT+0200 (CEST)"},"16492":{"varMapping":{"__isSmartRef__":true,"id":16493},"source":"function debugMarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.red);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16494},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16493":{"this":{"__isSmartRef__":true,"id":16332}},"16494":{"timestamp":{"__isSmartRef__":true,"id":16495},"user":"soergel","tags":["debug"]},"16495":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:40:53 GMT+0200 (CEST)"},"16496":{"varMapping":{"__isSmartRef__":true,"id":16497},"source":"function debugUnmarkNeighbours() {\n this.neighbours.each(function(n) {\n n.setFill(Color.white);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":16498},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16497":{"this":{"__isSmartRef__":true,"id":16332}},"16498":{"timestamp":{"__isSmartRef__":true,"id":16499},"user":"soergel","tags":["debug"]},"16499":{"isSerializedDate":true,"string":"Sun Apr 29 2012 23:47:47 GMT+0200 (CEST)"},"16500":{"varMapping":{"__isSmartRef__":true,"id":16501},"source":"function disappear() {\n var upperNeighbour = this.neighbours[this.directions.up];\n if(upperNeighbour != null) {\n this.gem = upperNeighbour.gem;\n upperNeighbour.disappear();\n }\n else {\n this.becomeRandomGem();\n }\n this.updatePicture();\n this.isDirty = true;\n}","funcProperties":{"__isSmartRef__":true,"id":16502},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16501":{"this":{"__isSmartRef__":true,"id":16332}},"16502":{"timestamp":{"__isSmartRef__":true,"id":16503},"user":"jan.sandbrink","tags":[]},"16503":{"isSerializedDate":true,"string":"Wed May 02 2012 16:48:59 GMT+0200 (CEST)"},"16504":{"varMapping":{"__isSmartRef__":true,"id":16505},"source":"function findStreakStart(direction) {\n var neighbour = this.neighbours[direction];\n if(neighbour == null || neighbour.gem != this.gem) {\n var streakDirection = (direction + 2) % 4;\n this.buildStreak(streakDirection, 0);\n }\n else {\n neighbour.findStreakStart(direction);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16506},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16505":{"this":{"__isSmartRef__":true,"id":16332}},"16506":{"timestamp":{"__isSmartRef__":true,"id":16507},"user":"jan.sandbrink","tags":[]},"16507":{"isSerializedDate":true,"string":"Wed May 02 2012 16:37:10 GMT+0200 (CEST)"},"16508":{"varMapping":{"__isSmartRef__":true,"id":16509},"source":"function buildStreak(direction, streakLength) {\n var neighbour= this.neighbours[direction];\n streakLength += 1;\n if(neighbour != null && neighbour.gem == this.gem) {\n streakLength = neighbour.buildStreak(direction, streakLength);\n }\n\n this.scoreStreak(streakLength);\n return streakLength;\n}","funcProperties":{"__isSmartRef__":true,"id":16510},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16509":{"this":{"__isSmartRef__":true,"id":16332}},"16510":{"timestamp":{"__isSmartRef__":true,"id":16511},"user":"jan.sandbrink","tags":[]},"16511":{"isSerializedDate":true,"string":"Wed May 02 2012 16:42:34 GMT+0200 (CEST)"},"16512":{"varMapping":{"__isSmartRef__":true,"id":16513},"source":"function scoreStreak(streakLength) {\n if(streakLength >= 3) {\n this.shouldBeDeleted = true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16514},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16513":{"this":{"__isSmartRef__":true,"id":16332}},"16514":{"timestamp":{"__isSmartRef__":true,"id":16515},"user":"jan.sandbrink","tags":[]},"16515":{"isSerializedDate":true,"string":"Tue May 08 2012 11:09:19 GMT+0200 (CEST)"},"16516":{"varMapping":{"__isSmartRef__":true,"id":16517},"source":"function tryToStreak(direction) {\n this.findStreakStart(this.directions.down);\n this.findStreakStart(this.directions.left);\n}","funcProperties":{"__isSmartRef__":true,"id":16518},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16517":{"this":{"__isSmartRef__":true,"id":16332}},"16518":{"timestamp":{"__isSmartRef__":true,"id":16519},"user":"jan.sandbrink","tags":[]},"16519":{"isSerializedDate":true,"string":"Wed May 02 2012 15:15:30 GMT+0200 (CEST)"},"16520":{"varMapping":{"__isSmartRef__":true,"id":16521},"source":"function blueDiamond() {\n var diamond = Morph.makePolygon([pt(25, 10), pt(10, 40), pt(40, 40)], 1, Color.white, Color.blue);\n line = Morph.makeLine([pt(25, 11, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(11, 39, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(39, 39, 0), pt(30, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(20, 30)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 30, 0), pt(25, 20)], 2, Color.rgb(179, 179, 245));\n diamond.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return diamond;\n}","funcProperties":{"__isSmartRef__":true,"id":16522},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16521":{"this":{"__isSmartRef__":true,"id":16332}},"16522":{"timestamp":{"__isSmartRef__":true,"id":16523},"user":"josi","tags":["gemtypes"]},"16523":{"isSerializedDate":true,"string":"Wed May 02 2012 22:13:55 GMT+0200 (CEST)"},"16524":{"varMapping":{"__isSmartRef__":true,"id":16525},"source":"function prehnite() {\n var prehnite = Morph.makePolygon([pt(20, 10), pt(30, 10), pt(40, 20), pt(40, 30), pt(30, 40), pt(20, 40), pt(10, 30), pt(10, 20)], 1, Color.white, Color.rgb(160, 250, 200));\n line = Morph.makeLine([pt(10, 30, 0), pt(40, 20)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(10, 20, 0), pt(40, 30)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(20, 10, 0), pt(30, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(30, 10, 0), pt(20, 40)], 1, Color.rgb(215, 255, 230));\n prehnite.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return prehnite;\n}","funcProperties":{"__isSmartRef__":true,"id":16526},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16525":{"this":{"__isSmartRef__":true,"id":16332}},"16526":{"timestamp":{"__isSmartRef__":true,"id":16527},"user":"josi","tags":["gemtypes"]},"16527":{"isSerializedDate":true,"string":"Wed May 02 2012 22:14:33 GMT+0200 (CEST)"},"16528":{"varMapping":{"__isSmartRef__":true,"id":16529},"source":"function debugUnmark() {\n this.setFill(Color.white);\n}","funcProperties":{"__isSmartRef__":true,"id":16530},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16529":{"this":{"__isSmartRef__":true,"id":16332}},"16530":{"timestamp":{"__isSmartRef__":true,"id":16531},"user":"soergel","tags":["debug"]},"16531":{"isSerializedDate":true,"string":"Sun May 06 2012 22:20:49 GMT+0200 (CEST)"},"16532":{"varMapping":{"__isSmartRef__":true,"id":16533},"source":"function debugMark() {\n this.setFill(Color.red);\n}","funcProperties":{"__isSmartRef__":true,"id":16534},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16533":{"this":{"__isSmartRef__":true,"id":16332}},"16534":{"timestamp":{"__isSmartRef__":true,"id":16535},"user":"soergel","tags":["debug"]},"16535":{"isSerializedDate":true,"string":"Sun May 06 2012 22:21:12 GMT+0200 (CEST)"},"16536":{"varMapping":{"__isSmartRef__":true,"id":16537},"source":"function citrine() {\n var citrine = Morph.makePolygon([pt(25, 5), pt(13, 25), pt(25, 45), pt(37, 25)], 1, Color.white, Color.rgb(255, 255, 0));\n line = Morph.makeLine([pt(25, 5, 0), pt(25, 45)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(13, 25, 0), pt(37, 25)], 2, Color.rgb(255, 255, 150));\n citrine.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return citrine;\n}","funcProperties":{"__isSmartRef__":true,"id":16538},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16537":{"this":{"__isSmartRef__":true,"id":16332}},"16538":{"timestamp":{"__isSmartRef__":true,"id":16539},"user":"josi","tags":["gemtypes"]},"16539":{"isSerializedDate":true,"string":"Mon May 07 2012 15:55:31 GMT+0200 (CEST)"},"16540":{"varMapping":{"__isSmartRef__":true,"id":16541},"source":"function move(direction, onFinish) {\n this.originalPosition = this.getPosition();\n console.log(\"Before start stepping\");\n this.startStepping(3, \"performMovement\", {direction: direction, onFinish: onFinish});\n}","funcProperties":{"__isSmartRef__":true,"id":16542},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16541":{"this":{"__isSmartRef__":true,"id":16332}},"16542":{"timestamp":{"__isSmartRef__":true,"id":16543},"user":"soergel","tags":[]},"16543":{"isSerializedDate":true,"string":"Tue May 08 2012 22:47:35 GMT+0200 (CEST)"},"16544":{"varMapping":{"__isSmartRef__":true,"id":16545},"source":"function performMovement(param) {\n var direction = param.direction;\n var onFinish = param.onFinish;\n\n var x = this.getPosition().x;\n var y = this.getPosition().y;\n\n if (direction == undefined) direction = 0; \n\n if (direction % 2 == 0) {\n var newPosition = new Point((x + (direction - 1) * 2), y);\n this.setPosition(newPosition);\n if (Math.abs(x - this.originalPosition.x) > this.getExtent().x) {\n this.stopStepping();\n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n } else {\n var newPosition = new Point(x, y + (direction - 2) * 2);\n this.setPosition(newPosition);\n if (Math.abs(y - this.originalPosition.y) > this.getExtent().y) {\n this.stopStepping(); \n if (onFinish != undefined) onFinish();\n this.setPosition(this.originalPosition)\n }\n }\n \n}","funcProperties":{"__isSmartRef__":true,"id":16546},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16545":{"this":{"__isSmartRef__":true,"id":16332}},"16546":{"timestamp":{"__isSmartRef__":true,"id":16547},"user":"soergel","tags":[]},"16547":{"isSerializedDate":true,"string":"Tue May 08 2012 22:48:18 GMT+0200 (CEST)"},"16548":{"varMapping":{"__isSmartRef__":true,"id":16549},"source":"function getDirectionForNeighbour(neighbour) {\n var direction = undefined;\n $.each(this.neighbours, function(idx, n) {\n if (n == neighbour) \n direction = idx;\n });\n\n return direction;\n}","funcProperties":{"__isSmartRef__":true,"id":16550},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16549":{"this":{"__isSmartRef__":true,"id":16332}},"16550":{"timestamp":{"__isSmartRef__":true,"id":16551},"user":"soergel","tags":[]},"16551":{"isSerializedDate":true,"string":"Tue May 08 2012 22:41:37 GMT+0200 (CEST)"},"16552":{"varMapping":{"__isSmartRef__":true,"id":16553},"source":"function zircon() {\n var zircon = Morph.makePolygon([pt(25, 9), pt(41, 18), pt(41, 32), pt(25, 41), pt(9, 32), pt(9, 18)], 1, Color.white, Color.rgb(255, 201, 38));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 27)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 32, 0), pt(25, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(42, 32, 0), pt(24, 25)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 18, 0), pt(24, 25)], 1, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(25, 43, 0), pt(25, 24)], 2, Color.white);\n zircon.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return zircon;\n}","funcProperties":{"__isSmartRef__":true,"id":16554},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16553":{"this":{"__isSmartRef__":true,"id":16332}},"16554":{"timestamp":{"__isSmartRef__":true,"id":16555},"user":"josi","tags":["gemtypes"]},"16555":{"isSerializedDate":true,"string":"Thu May 10 2012 15:23:48 GMT+0200 (CEST)"},"16556":{"varMapping":{"__isSmartRef__":true,"id":16557},"source":"function emerald() {\n var emerald = Morph.makePolygon([pt(25, 9), pt(38, 30), pt(30, 41), pt(20, 41), pt(12, 30)], 1, Color.white, Color.rgb(26, 255, 0));\n line = Morph.makeLine([pt(25, 8, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(9, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n line = Morph.makeLine([pt(41, 30, 0), pt(25, 30)], 2, Color.white);\n emerald.addMorph(line);\n line.disableDropping(true);\n line.disableGrabbing(true);\n return emerald;\n}","funcProperties":{"__isSmartRef__":true,"id":16558},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16557":{"this":{"__isSmartRef__":true,"id":16332}},"16558":{"timestamp":{"__isSmartRef__":true,"id":16559},"user":"josi","tags":["gemtypes"]},"16559":{"isSerializedDate":true,"string":"Thu May 10 2012 16:04:14 GMT+0200 (CEST)"},"16560":{"varMapping":{"__isSmartRef__":true,"id":16561},"source":"function canScoreBySwitchingWith(gem) {\n var tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n this.tryToStreak();\n gem.tryToStreak();\n\n var canScore = this.shouldBeDeleted || gem.shouldBeDeleted;\n\n tmpGem = this.gem;\n this.gem = gem.gem;\n gem.gem = tmpGem;\n\n return canScore;\n}","funcProperties":{"__isSmartRef__":true,"id":16562},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16561":{"this":{"__isSmartRef__":true,"id":16332}},"16562":{"timestamp":{"__isSmartRef__":true,"id":16563},"user":"jan.sandbrink","tags":[]},"16563":{"isSerializedDate":true,"string":"Mon May 14 2012 11:21:12 GMT+0200 (CEST)"},"16564":{"newGame":{"__isSmartRef__":true,"id":16565},"getGemFrame":{"__isSmartRef__":true,"id":16569},"clear":{"__isSmartRef__":true,"id":16573},"updateScore":{"__isSmartRef__":true,"id":16577},"getPrototype":{"__isSmartRef__":true,"id":16581},"gameIsOver":{"__isSmartRef__":true,"id":16585}},"16565":{"varMapping":{"__isSmartRef__":true,"id":16566},"source":"function newGame() {\n this.clear();\n\n var gemPrototype = this.getPrototype();\n var gemFrame = this.getGemFrame();\n var gemExtent = gemPrototype.priorExtent;\n\n var lastRow = null;\n var isFirstGem = true;\n \n for (row = 0; row < this.numberOfVerticalGems; row++) {\n var leftNeighbour = null;\n var currentRow = [];\n for (column = 0; column < this.numberOfHorizontalGems; column++) {\n var newGem = gemPrototype.copy();\n newGem.becomeRandomGem();\n gemFrame.addMorph(newGem);\n newGem.setPosition(new Point(1 + column * gemExtent.x, 1 + row * gemExtent.y));\n \n if(leftNeighbour != null)\n newGem.addNeighbour(leftNeighbour, newGem.directions.left);\n\n leftNeighbour = newGem;\n\n if(lastRow != null)\n newGem.addNeighbour(lastRow[column], newGem.directions.up);\n currentRow[column] = newGem;\n\n if(isFirstGem) {\n isFirstGem = false;\n this.getGemFrame().fieldHead = newGem; \n }\n }\n lastRow = currentRow;\n }\n\n this.lockScore = true;\n this.getGemFrame().cleanInitialStreaks();\n this.lockScore = false;\n}","funcProperties":{"__isSmartRef__":true,"id":16567},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16566":{"this":{"__isSmartRef__":true,"id":77}},"16567":{"timestamp":{"__isSmartRef__":true,"id":16568},"user":"soergel","tags":[]},"16568":{"isSerializedDate":true,"string":"Mon May 14 2012 14:07:17 GMT+0200 (CEST)"},"16569":{"varMapping":{"__isSmartRef__":true,"id":16570},"source":"function getGemFrame() {\n return this.submorphs.select(function(e) {\n return e.isGemFrame;\n })[0];\n}","funcProperties":{"__isSmartRef__":true,"id":16571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16570":{"this":{"__isSmartRef__":true,"id":77}},"16571":{"timestamp":{"__isSmartRef__":true,"id":16572},"user":"soergel","tags":[]},"16572":{"isSerializedDate":true,"string":"Sun Apr 29 2012 17:24:18 GMT+0200 (CEST)"},"16573":{"varMapping":{"__isSmartRef__":true,"id":16574},"source":"function clear() {\n this.getGemFrame().clear();\n this.gameOverIndicator.gameStarted();\n this.updateScore(0);\n}","funcProperties":{"__isSmartRef__":true,"id":16575},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16574":{"this":{"__isSmartRef__":true,"id":77}},"16575":{"timestamp":{"__isSmartRef__":true,"id":16576},"user":"jan.sandbrink","tags":[]},"16576":{"isSerializedDate":true,"string":"Mon May 14 2012 11:43:46 GMT+0200 (CEST)"},"16577":{"varMapping":{"__isSmartRef__":true,"id":16578},"source":"function updateScore(score) {\n if(this.lockScore)\n return;\n\n this.ScoreIndicator.setScore(score);\n if(score > this.highscore)\n {\n this.highscore = score;\n this.HighscoreIndicator.setScore(score);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":16579},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16578":{"this":{"__isSmartRef__":true,"id":77}},"16579":{"timestamp":{"__isSmartRef__":true,"id":16580},"user":"jan.sandbrink","tags":[]},"16580":{"isSerializedDate":true,"string":"Thu May 10 2012 13:46:30 GMT+0200 (CEST)"},"16581":{"varMapping":{"__isSmartRef__":true,"id":16582},"source":"function getPrototype() {\n var availablePrototypeList = this.prototypeBox.submorphs.select(function(sm) {\n return sm.isGem;\n });\n \n if (availablePrototypeList.length == 0)\n return $world.loadPartItem(\"BasicGem\", 'PartsBin/groupBejeweled');\n else\n return availablePrototypeList[0];\n}","funcProperties":{"__isSmartRef__":true,"id":16583},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16582":{"this":{"__isSmartRef__":true,"id":77}},"16583":{"timestamp":{"__isSmartRef__":true,"id":16584},"user":"soergel","tags":[]},"16584":{"isSerializedDate":true,"string":"Tue May 08 2012 17:43:25 GMT+0200 (CEST)"},"16585":{"varMapping":{"__isSmartRef__":true,"id":16586},"source":"function gameIsOver() {\n this.gameOverIndicator.gameOver();\n}","funcProperties":{"__isSmartRef__":true,"id":16587},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"16586":{"this":{"__isSmartRef__":true,"id":77}},"16587":{"timestamp":{"__isSmartRef__":true,"id":16588},"user":"jan.sandbrink","tags":[]},"16588":{"isSerializedDate":true,"string":"Mon May 14 2012 11:43:18 GMT+0200 (CEST)"},"16589":{"submorphs":[{"__isSmartRef__":true,"id":16590}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16739},"id":"FCFBC654-124D-488C-8966-940C5B3054AF","renderContextTable":{"__isSmartRef__":true,"id":16744},"eventHandler":{"__isSmartRef__":true,"id":16745},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":16746},"LK2":true,"_Position":{"__isSmartRef__":true,"id":16747},"priorExtent":{"__isSmartRef__":true,"id":16748},"targetMorph":{"__isSmartRef__":true,"id":16749},"titleBar":{"__isSmartRef__":true,"id":16590},"contentOffset":{"__isSmartRef__":true,"id":20296},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":20297},"expandedExtent":{"__isSmartRef__":true,"id":20298},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":20299},"name":"Explorer","prevDragPos":{"__isSmartRef__":true,"id":20344},"isBeingDragged":false,"highlighted":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","explorer":{"__isSmartRef__":true,"id":16749},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isCopyMorphRef":true,"morphRefId":1,"prevScroll":[0,0],"minExtent":{"__isSmartRef__":true,"id":20345},"derivationIds":[369,"5976C77B-5C20-4DC4-BDA1-A2269E9FEC17","8A4661CC-271E-4CA9-9B42-C428E5DCCB01","B002D7D6-4167-4D6A-8981-E569CE5EE4CC","21A298C5-87D3-4C5F-8FB6-34DB19723B44","A077835E-1096-40C4-92FB-6830D29FC989","32525E7F-A548-4001-86AE-BBDE7D2BAD17"],"_Rotation":0,"_Scale":1.0141055623885957,"_ClipMode":"visible","owner":{"__isSmartRef__":true,"id":0},"expandedPosition":{"__isSmartRef__":true,"id":16747},"helperMorphs":[{"__isSmartRef__":true,"id":20346}],"state":"collapsed","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20383},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"16590":{"submorphs":[{"__isSmartRef__":true,"id":16591},{"__isSmartRef__":true,"id":16605},{"__isSmartRef__":true,"id":16652},{"__isSmartRef__":true,"id":16687}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16723},"id":"68FE0298-21B0-4582-B290-DC88D5F6C748","renderContextTable":{"__isSmartRef__":true,"id":16734},"eventHandler":{"__isSmartRef__":true,"id":16735},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16736},"_Position":{"__isSmartRef__":true,"id":16737},"windowMorph":{"__isSmartRef__":true,"id":16589},"label":{"__isSmartRef__":true,"id":16591},"closeButton":{"__isSmartRef__":true,"id":16605},"menuButton":{"__isSmartRef__":true,"id":16652},"collapseButton":{"__isSmartRef__":true,"id":16687},"priorExtent":{"__isSmartRef__":true,"id":16738},"owner":{"__isSmartRef__":true,"id":16589},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[374,"CFE848EF-BE01-4E69-BBD0-796826FDBA2C","27B1F973-A4A1-49ED-8194-15A2125092E5","1AAC1E25-BFD3-4949-82B7-CA49C7FE30CC","AAFC6ADC-565B-42D5-B95A-49BB4FAE6F07","AA057279-ADDD-4D59-9A0A-E86FD7D21BE6","8EADAC43-54B0-4FAC-AF1C-A0D8FDD9E3CA"],"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.TitleBar"},"16591":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16592},"id":"E43DD39F-DD0B-4733-B20A-813A81E7FA52","renderContextTable":{"__isSmartRef__":true,"id":16598},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16599}],"eventHandler":{"__isSmartRef__":true,"id":16601},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":16602},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":16590},"priorExtent":{"__isSmartRef__":true,"id":16603},"_MaxTextWidth":251.49672894514134,"_MinTextWidth":251.49672894514134,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":16604},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[375,"73673BCB-A91C-4ECA-A36D-D85A24B4F4A3","2EE1A4B9-842D-4C63-ABEA-21DC74163CEE","3F973521-D5D9-4B44-BCF8-822B923644E8","F50BD739-1DA1-4EB3-9653-7B3145EA8817","A7AE88A1-BD5C-4F03-9E65-373F047B2C25","F8F2EE4C-88F2-4D50-ABC7-1F747DC646BB"],"__LivelyClassName__":"lively.morphic.Text"},"16592":{"_Position":{"__isSmartRef__":true,"id":16593},"renderContextTable":{"__isSmartRef__":true,"id":16594},"_Extent":{"__isSmartRef__":true,"id":16595},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":16596},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16597},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16593":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16594":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16595":{"x":251.49672894514134,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16596":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16597":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16598":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16599":{"style":{"__isSmartRef__":true,"id":16600},"chunkOwner":{"__isSmartRef__":true,"id":16591},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Explorer","__LivelyClassName__":"lively.morphic.TextChunk"},"16600":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontWeight":"normal","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16601":{"morph":{"__isSmartRef__":true,"id":16591},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16602":{"resizeWidth":true},"16603":{"x":251.49672894514134,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16604":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16605":{"submorphs":[{"__isSmartRef__":true,"id":16606}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16618},"id":"099C7072-0204-445D-8345-3C112B2756A4","renderContextTable":{"__isSmartRef__":true,"id":16634},"eventHandler":{"__isSmartRef__":true,"id":16635},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":16636},"priorExtent":{"__isSmartRef__":true,"id":16637},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16624},"lighterFill":{"__isSmartRef__":true,"id":16638},"label":{"__isSmartRef__":true,"id":16606},"owner":{"__isSmartRef__":true,"id":16590},"layout":{"__isSmartRef__":true,"id":16647},"attributeConnections":[{"__isSmartRef__":true,"id":16648},{"__isSmartRef__":true,"id":16650}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[376,"C3AC01F3-7977-4D0A-A42C-700DE29F8F8E","A9533421-3987-49B1-B8FE-11D3B48B77B3","EC79C6DC-0809-4378-8061-032B4DD2D496","4DB70E9E-760D-401A-9BAD-25367B78CF72","1DC03620-BC8A-47EC-978A-2036FF929A8A","B048691C-3D91-4A6E-B21D-2AF0EB3E85C7"],"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.WindowControl"},"16606":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16607},"id":"010AA1CB-2E03-4814-A557-A23B94376F93","renderContextTable":{"__isSmartRef__":true,"id":16612},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16613}],"eventHandler":{"__isSmartRef__":true,"id":16615},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":16616},"priorExtent":{"__isSmartRef__":true,"id":16617},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16605},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[377,"C621D837-4DB4-4C83-A8C9-1C995944A45D","BCB8C9A6-BD1A-49F5-8BDD-7C6C8BFB840C","9AA4F44C-9D66-4990-B0E2-2998FC750C65","E136552C-1013-430B-8229-122AA2720D75","D343D9D5-BB6B-471C-89FD-977D04A54C18","198CEAEE-A3BF-4CED-8D10-C86583D458D7"],"__LivelyClassName__":"lively.morphic.Text"},"16607":{"_Position":{"__isSmartRef__":true,"id":16608},"renderContextTable":{"__isSmartRef__":true,"id":16609},"_Extent":{"__isSmartRef__":true,"id":16610},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":16611},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16597},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16608":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16609":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16610":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16611":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16612":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16613":{"style":{"__isSmartRef__":true,"id":16614},"chunkOwner":{"__isSmartRef__":true,"id":16606},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"X","__LivelyClassName__":"lively.morphic.TextChunk"},"16614":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16615":{"morph":{"__isSmartRef__":true,"id":16606},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16616":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16617":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16618":{"_Position":{"__isSmartRef__":true,"id":16619},"renderContextTable":{"__isSmartRef__":true,"id":16620},"_Extent":{"__isSmartRef__":true,"id":16621},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16622},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16623},"_Fill":{"__isSmartRef__":true,"id":16624},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16619":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16620":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16621":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16622":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16623":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16624":{"stops":[{"__isSmartRef__":true,"id":16625},{"__isSmartRef__":true,"id":16627},{"__isSmartRef__":true,"id":16629},{"__isSmartRef__":true,"id":16631}],"vector":{"__isSmartRef__":true,"id":16633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16625":{"offset":0,"color":{"__isSmartRef__":true,"id":16626}},"16626":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16627":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16628}},"16628":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16629":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16630}},"16630":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16631":{"offset":1,"color":{"__isSmartRef__":true,"id":16632}},"16632":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16633":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16634":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16635":{"morph":{"__isSmartRef__":true,"id":16605},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16636":{"x":290.49672894514134,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16637":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16638":{"stops":[{"__isSmartRef__":true,"id":16639},{"__isSmartRef__":true,"id":16641},{"__isSmartRef__":true,"id":16643},{"__isSmartRef__":true,"id":16645}],"vector":{"__isSmartRef__":true,"id":16633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16639":{"offset":0,"color":{"__isSmartRef__":true,"id":16640}},"16640":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16641":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16642}},"16642":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16643":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16644}},"16644":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16645":{"offset":1,"color":{"__isSmartRef__":true,"id":16646}},"16646":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16647":{"moveHorizontal":true},"16648":{"sourceObj":{"__isSmartRef__":true,"id":16605},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16589},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16649},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16649":{"source":{"__isSmartRef__":true,"id":16605},"target":{"__isSmartRef__":true,"id":16589}},"16650":{"sourceObj":{"__isSmartRef__":true,"id":16605},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16589},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16651},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16651":{"source":{"__isSmartRef__":true,"id":16605},"target":{"__isSmartRef__":true,"id":16589}},"16652":{"submorphs":[{"__isSmartRef__":true,"id":16653}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16665},"id":"36F1928E-047A-42E6-B1D7-EFC329608B17","renderContextTable":{"__isSmartRef__":true,"id":16670},"eventHandler":{"__isSmartRef__":true,"id":16671},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":16672},"priorExtent":{"__isSmartRef__":true,"id":16673},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16624},"lighterFill":{"__isSmartRef__":true,"id":16674},"label":{"__isSmartRef__":true,"id":16653},"owner":{"__isSmartRef__":true,"id":16590},"attributeConnections":[{"__isSmartRef__":true,"id":16683},{"__isSmartRef__":true,"id":16685}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","prevScroll":[0,0],"derivationIds":[378,"FF4FE4CA-DFFC-40C6-A1E8-32667E37F3EC","A8A6A338-D618-4672-AFA8-914FD7C2A19E","85D2A7A2-F0B5-45CD-BB83-E6F60E8B681C","535E0653-E19D-4F22-952A-34C8EDED44E9","977A1381-981C-4500-B887-78143DE21406","62DA4EDF-FBE4-4D01-834D-C3E763CF55DE"],"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.WindowControl"},"16653":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16654},"id":"10FF0575-7A2C-4D2A-AA1F-3716ADA93D6F","renderContextTable":{"__isSmartRef__":true,"id":16659},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16660}],"eventHandler":{"__isSmartRef__":true,"id":16662},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":16663},"priorExtent":{"__isSmartRef__":true,"id":16664},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16652},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"prevScroll":[0,0],"derivationIds":[379,"9C08820E-6B60-44C2-9150-BD546391671F","36F5662C-375A-4549-B94E-F150DCBCE3F8","030ACD5E-7567-45E7-928D-24821846DBD3","B1DB7B8C-99F5-44D9-8312-ADD58545154E","9037A2C8-C56D-4C9B-B2B6-FFEBD4CFC0B0","353D5A24-E404-457D-93C4-BC195B094724"],"__LivelyClassName__":"lively.morphic.Text"},"16654":{"_Position":{"__isSmartRef__":true,"id":16655},"renderContextTable":{"__isSmartRef__":true,"id":16656},"_Extent":{"__isSmartRef__":true,"id":16657},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":16658},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16597},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16655":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16656":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16657":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16658":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16659":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16660":{"style":{"__isSmartRef__":true,"id":16661},"chunkOwner":{"__isSmartRef__":true,"id":16653},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"M","__LivelyClassName__":"lively.morphic.TextChunk"},"16661":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16662":{"morph":{"__isSmartRef__":true,"id":16653},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16663":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16664":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16665":{"_Position":{"__isSmartRef__":true,"id":16666},"renderContextTable":{"__isSmartRef__":true,"id":16667},"_Extent":{"__isSmartRef__":true,"id":16668},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16669},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16623},"_Fill":{"__isSmartRef__":true,"id":16624},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16666":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16667":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16668":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16669":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16670":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16671":{"morph":{"__isSmartRef__":true,"id":16652},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16672":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16673":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16674":{"stops":[{"__isSmartRef__":true,"id":16675},{"__isSmartRef__":true,"id":16677},{"__isSmartRef__":true,"id":16679},{"__isSmartRef__":true,"id":16681}],"vector":{"__isSmartRef__":true,"id":16633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16675":{"offset":0,"color":{"__isSmartRef__":true,"id":16676}},"16676":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16677":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16678}},"16678":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16679":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16680}},"16680":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16681":{"offset":1,"color":{"__isSmartRef__":true,"id":16682}},"16682":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16683":{"sourceObj":{"__isSmartRef__":true,"id":16652},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16589},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16684},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16684":{"source":{"__isSmartRef__":true,"id":16652},"target":{"__isSmartRef__":true,"id":16589}},"16685":{"sourceObj":{"__isSmartRef__":true,"id":16652},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16589},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16686},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16686":{"source":{"__isSmartRef__":true,"id":16652},"target":{"__isSmartRef__":true,"id":16589}},"16687":{"submorphs":[{"__isSmartRef__":true,"id":16688}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16700},"id":"A35C619C-CAC3-45A6-BF75-BE39FD359B0E","renderContextTable":{"__isSmartRef__":true,"id":16705},"eventHandler":{"__isSmartRef__":true,"id":16706},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":16707},"priorExtent":{"__isSmartRef__":true,"id":16708},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":16624},"lighterFill":{"__isSmartRef__":true,"id":16709},"label":{"__isSmartRef__":true,"id":16688},"owner":{"__isSmartRef__":true,"id":16590},"layout":{"__isSmartRef__":true,"id":16718},"attributeConnections":[{"__isSmartRef__":true,"id":16719},{"__isSmartRef__":true,"id":16721}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[380,"B603C6F6-E6E9-4618-BF46-1521ADDE21FE","7D67707D-A36A-46C7-AF4E-DBA063259CD8","0CE8DB38-9500-4B3D-BA30-191E72ABDE7C","9C2B6C81-CB1C-4AD9-941A-5307CCDA74CC","27DE4ECD-BBB4-4CA2-9C13-DBE49DE7A744","B9D13F17-7AA4-44BC-AA55-FF1F6DB50D8C"],"_ClipMode":"visible","__LivelyClassName__":"lively.morphic.WindowControl"},"16688":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16689},"id":"E623BE0C-7FCE-4027-995B-85FDFC6B0884","renderContextTable":{"__isSmartRef__":true,"id":16694},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":16695}],"eventHandler":{"__isSmartRef__":true,"id":16697},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":16698},"priorExtent":{"__isSmartRef__":true,"id":16699},"_MaxTextWidth":17,"_MinTextWidth":17,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":16687},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[381,"B48F0AA9-A9AE-4316-865F-D969FFFD4C87","3CE2E949-41E5-4680-ADB0-8AF865F87CA7","C865C749-7005-416E-B5A2-0FB224AB308E","CAED6589-594E-438B-ADB7-264F9B9D92B0","A391E593-03B1-4FDA-B6B3-978336437357","40913CEC-D4ED-4CA1-97B2-858D96CDC1F3"],"__LivelyClassName__":"lively.morphic.Text"},"16689":{"_Position":{"__isSmartRef__":true,"id":16690},"renderContextTable":{"__isSmartRef__":true,"id":16691},"_Extent":{"__isSmartRef__":true,"id":16692},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":16693},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16597},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16690":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16691":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16692":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16693":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16694":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16695":{"style":{"__isSmartRef__":true,"id":16696},"chunkOwner":{"__isSmartRef__":true,"id":16688},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"–","__LivelyClassName__":"lively.morphic.TextChunk"},"16696":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"16697":{"morph":{"__isSmartRef__":true,"id":16688},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16698":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16699":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16700":{"_Position":{"__isSmartRef__":true,"id":16701},"renderContextTable":{"__isSmartRef__":true,"id":16702},"_Extent":{"__isSmartRef__":true,"id":16703},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16704},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16623},"_Fill":{"__isSmartRef__":true,"id":16624},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16701":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16702":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16703":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16704":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16705":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16706":{"morph":{"__isSmartRef__":true,"id":16687},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16707":{"x":271.49672894514134,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16708":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16709":{"stops":[{"__isSmartRef__":true,"id":16710},{"__isSmartRef__":true,"id":16712},{"__isSmartRef__":true,"id":16714},{"__isSmartRef__":true,"id":16716}],"vector":{"__isSmartRef__":true,"id":16633},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"16710":{"offset":0,"color":{"__isSmartRef__":true,"id":16711}},"16711":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16712":{"offset":0.4,"color":{"__isSmartRef__":true,"id":16713}},"16713":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16714":{"offset":0.6,"color":{"__isSmartRef__":true,"id":16715}},"16715":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16716":{"offset":1,"color":{"__isSmartRef__":true,"id":16717}},"16717":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16718":{"moveHorizontal":true},"16719":{"sourceObj":{"__isSmartRef__":true,"id":16687},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":16589},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16720},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16720":{"source":{"__isSmartRef__":true,"id":16687},"target":{"__isSmartRef__":true,"id":16589}},"16721":{"sourceObj":{"__isSmartRef__":true,"id":16687},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":16589},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":16722},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"16722":{"source":{"__isSmartRef__":true,"id":16687},"target":{"__isSmartRef__":true,"id":16589}},"16723":{"_Position":{"__isSmartRef__":true,"id":16724},"renderContextTable":{"__isSmartRef__":true,"id":16725},"_Extent":{"__isSmartRef__":true,"id":16726},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16727},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16728},"_Fill":{"__isSmartRef__":true,"id":16729},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 8px 8px","_Opacity":1,"_BorderStyle":"solid","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16724":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16725":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16726":{"x":310.49672894514134,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16727":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16728":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"16729":{"stops":[{"__isSmartRef__":true,"id":16730},{"__isSmartRef__":true,"id":16731}],"vector":{"__isSmartRef__":true,"id":16733},"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16730":{"offset":0,"color":{"__isSmartRef__":true,"id":156}},"16731":{"offset":1,"color":{"__isSmartRef__":true,"id":16732}},"16732":{"r":0.6400000000000001,"g":0.6400000000000001,"b":0.6400000000000001,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16733":{"x":0,"y":0,"width":0,"height":1,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16734":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16735":{"morph":{"__isSmartRef__":true,"id":16590},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16736":{"resizeWidth":true,"adjustForNewBounds":true},"16737":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16738":{"x":310.49672894514134,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16739":{"renderContextTable":{"__isSmartRef__":true,"id":16740},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":16741},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":16742},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Opacity":1,"_BorderStyle":"solid","_Position":{"__isSmartRef__":true,"id":16743},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16740":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16741":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"16742":{"x":310.49672894514134,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16743":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16744":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16745":{"morph":{"__isSmartRef__":true,"id":16589},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"16746":{"adjustForNewBounds":true},"16747":{"x":450.3877838765295,"y":130.57769545390755,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16748":{"x":310.49672894514134,"y":419.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"16749":{"submorphs":[{"__isSmartRef__":true,"id":16750},{"__isSmartRef__":true,"id":20239}],"scripts":[],"id":"FEBCD28B-AB11-491E-AE97-13D4CE60D9B2","shape":{"__isSmartRef__":true,"id":20262},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":20269},"showsHalos":false,"name":"ExplorerPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":20270},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":20273},"eventHandler":{"__isSmartRef__":true,"id":20274},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":null,"priorExtent":{"__isSmartRef__":true,"id":20275},"distanceToDragEvent":{"__isSmartRef__":true,"id":20276},"layout":{"__isSmartRef__":true,"id":20277},"workspace":{"__isSmartRef__":true,"id":20239},"treeView":{"__isSmartRef__":true,"id":16750},"focusedNode":{"__isSmartRef__":true,"id":16753},"isInLayoutCycle":false,"prevScroll":[0,0],"derivationIds":[370,"19EB328E-FFB1-41CD-B181-A60FCF27908C","D1C1A399-6222-405C-A922-2ADD2DFBFB56","F7B66347-DB63-470F-8ABC-5C342E31BC5E","7A83A60F-0956-4BD5-AFDB-B7CFECEF9E30","D14B60A2-D449-4E15-8A1B-EADF6D8A988B","9AA7774E-2D58-467B-986D-947454B915CA"],"_Rotation":0,"_Scale":1,"_ClipMode":"visible","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20279},"__LivelyClassName__":"lively.morphic.Box"},"16750":{"submorphs":[{"__isSmartRef__":true,"id":16751}],"scripts":[{"__isSmartRef__":true,"id":20157}],"id":"84B3772F-4E34-46F4-8E97-C5C29877B53B","shape":{"__isSmartRef__":true,"id":20158},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":20164},"showsHalos":false,"name":"TreeView","partsBinMetaInfo":{"__isSmartRef__":true,"id":20165},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":20166},"eventHandler":{"__isSmartRef__":true,"id":20167},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":20168},"layout":{"__isSmartRef__":true,"id":20169},"isInLayoutCycle":false,"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"owner":{"__isSmartRef__":true,"id":16749},"distanceToDragEvent":{"__isSmartRef__":true,"id":20171},"colors":{"__isSmartRef__":true,"id":20172},"fonts":{"__isSmartRef__":true,"id":20174},"sizes":{"__isSmartRef__":true,"id":20175},"rootNode":{"__isSmartRef__":true,"id":16753},"prevScroll":[0,0],"derivationIds":[371,"5F72E9BF-51FA-45DD-9F01-ADDC32FBF64C","4B46569F-B458-41CF-846F-31DB325C55FE","BC2E4190-4592-4E2C-8644-51CA0FC16963","DBB73829-F82D-45F0-8499-2332C8C0487E","78E2B139-F388-4299-A7CC-0964C21003A4","F124DD76-61DA-471A-A1DA-D01C9F74D5C3"],"_Rotation":0,"_Scale":1,"_ClipMode":"visible","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20180},"__LivelyClassName__":"lively.morphic.Box"},"16751":{"submorphs":[{"__isSmartRef__":true,"id":16752}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20139},"derivationIds":[null],"id":"C1531B6F-CBCC-4FE6-8E48-A781C857942D","renderContextTable":{"__isSmartRef__":true,"id":20144},"eventHandler":{"__isSmartRef__":true,"id":20145},"_ClipMode":"scroll","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20146},"layout":{"__isSmartRef__":true,"id":20147},"grabbingEnabled":false,"draggingEnabled":false,"name":"TreeViewScrollPane","owner":{"__isSmartRef__":true,"id":16750},"priorExtent":{"__isSmartRef__":true,"id":20148},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20149},"__LivelyClassName__":"lively.morphic.Clip","__SourceModuleName__":"Global.lively.morphic.Core"},"16752":{"submorphs":[{"__isSmartRef__":true,"id":16753},{"__isSmartRef__":true,"id":16852}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20121},"derivationIds":[null],"id":"6CC77D78-27AD-4EA5-A489-34FD50ABDC4D","renderContextTable":{"__isSmartRef__":true,"id":20126},"eventHandler":{"__isSmartRef__":true,"id":20127},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20128},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":20130},"owner":{"__isSmartRef__":true,"id":16751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20131},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16753":{"submorphs":[{"__isSmartRef__":true,"id":16754},{"__isSmartRef__":true,"id":16771}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16791},"derivationIds":[null],"id":"E77754A4-DA1B-46D2-8B5B-8A26EDBF4751","renderContextTable":{"__isSmartRef__":true,"id":16796},"eventHandler":{"__isSmartRef__":true,"id":16797},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16798},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":15904},"propertyList":["submorphs","scripts","id","shape","droppingEnabled","halosEnabled","registeredForMouseEvents","_Position","showsHalos","name","partsBinMetaInfo","__SourceModuleName__","renderContextTable","eventHandler","attributeConnections","doNotSerialize","doNotCopyProperties","derivationIds","partTests","_ClipMode","priorExtent","isBeingDragged","grabbingEnabled","draggingEnabled","moved","directions","neighbours","#startLetters","isGem","isDirty","gem","shouldBeDeleted","prevScroll","owner","_renderContext","_isRendered","halos","_Rotation","_Scale"],"level":0,"treeView":{"__isSmartRef__":true,"id":16750},"label":"Properties","children":[{"__isSmartRef__":true,"id":16799},{"__isSmartRef__":true,"id":16854},{"__isSmartRef__":true,"id":16938},{"__isSmartRef__":true,"id":17022},{"__isSmartRef__":true,"id":17106},{"__isSmartRef__":true,"id":17190},{"__isSmartRef__":true,"id":17274},{"__isSmartRef__":true,"id":17358},{"__isSmartRef__":true,"id":17443},{"__isSmartRef__":true,"id":17527},{"__isSmartRef__":true,"id":17611},{"__isSmartRef__":true,"id":17695},{"__isSmartRef__":true,"id":17779},{"__isSmartRef__":true,"id":17863},{"__isSmartRef__":true,"id":17947},{"__isSmartRef__":true,"id":18031},{"__isSmartRef__":true,"id":18115},{"__isSmartRef__":true,"id":18199},{"__isSmartRef__":true,"id":18283},{"__isSmartRef__":true,"id":18367},{"__isSmartRef__":true,"id":18451},{"__isSmartRef__":true,"id":18535},{"__isSmartRef__":true,"id":18619},{"__isSmartRef__":true,"id":18703},{"__isSmartRef__":true,"id":18787},{"__isSmartRef__":true,"id":18871},{"__isSmartRef__":true,"id":18955},{"__isSmartRef__":true,"id":19039},{"__isSmartRef__":true,"id":19123},{"__isSmartRef__":true,"id":19207},{"__isSmartRef__":true,"id":19291},{"__isSmartRef__":true,"id":19375},{"__isSmartRef__":true,"id":19459},{"__isSmartRef__":true,"id":19543},{"__isSmartRef__":true,"id":19627},{"__isSmartRef__":true,"id":19711},{"__isSmartRef__":true,"id":19795},{"__isSmartRef__":true,"id":19879},{"__isSmartRef__":true,"id":19963}],"parent":null,"expander":{"__isSmartRef__":true,"id":16754},"text":{"__isSmartRef__":true,"id":16771},"owner":{"__isSmartRef__":true,"id":16752},"_Position":{"__isSmartRef__":true,"id":20099},"priorExtent":{"__isSmartRef__":true,"id":20100},"_Rotation":0,"_Scale":1.0141055623885957,"childrenWrapper":{"__isSmartRef__":true,"id":16852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20101},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16754":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16755},"derivationIds":[null],"id":"9CC60CA2-41D7-48D4-9430-6EA31102F0F2","renderContextTable":{"__isSmartRef__":true,"id":16761},"eventHandler":{"__isSmartRef__":true,"id":16762},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16763},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":true,"owner":{"__isSmartRef__":true,"id":16753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16764},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"16755":{"_Position":{"__isSmartRef__":true,"id":16756},"renderContextTable":{"__isSmartRef__":true,"id":16757},"_Extent":{"__isSmartRef__":true,"id":16758},"_Padding":{"__isSmartRef__":true,"id":16759},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":156},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16756":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16757":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16758":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16759":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16760":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16761":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16762":{"morph":{"__isSmartRef__":true,"id":16754},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16763":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16764":{"toggle":{"__isSmartRef__":true,"id":16765},"toggleExpansion":{"__isSmartRef__":true,"id":16768}},"16765":{"varMapping":{"__isSmartRef__":true,"id":16766},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":16767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16766":{"this":{"__isSmartRef__":true,"id":16754}},"16767":{},"16768":{"varMapping":{"__isSmartRef__":true,"id":16769},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":16770},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16769":{"this":{"__isSmartRef__":true,"id":16754}},"16770":{},"16771":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16772},"derivationIds":[null],"id":"2DF6283B-00FF-44D3-A7FF-7B928F278D8A","renderContextTable":{"__isSmartRef__":true,"id":16779},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":16780},{"__isSmartRef__":true,"id":16782}],"eventHandler":{"__isSmartRef__":true,"id":16785},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":16786},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":16753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16787},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16772":{"_Position":{"__isSmartRef__":true,"id":16773},"renderContextTable":{"__isSmartRef__":true,"id":16774},"_Extent":{"__isSmartRef__":true,"id":16775},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":{"__isSmartRef__":true,"id":16778},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16773":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16774":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16775":{"x":136,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16776":{"x":4,"y":2,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16777":{"r":0,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16778":{"r":0.9529411764705882,"g":0.9529411764705882,"b":0.9529411764705882,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16779":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16780":{"style":{"__isSmartRef__":true,"id":16781},"chunkOwner":{"__isSmartRef__":true,"id":16771},"storedString":"Properties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16781":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16782":{"style":{"__isSmartRef__":true,"id":16783},"chunkOwner":{"__isSmartRef__":true,"id":16771},"storedString":": BasicGem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16783":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16784":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16785":{"morph":{"__isSmartRef__":true,"id":16771},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16786":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16787":{"layoutText":{"__isSmartRef__":true,"id":16788}},"16788":{"varMapping":{"__isSmartRef__":true,"id":16789},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":16790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16789":{"this":{"__isSmartRef__":true,"id":16771}},"16790":{},"16791":{"_Position":{"__isSmartRef__":true,"id":16792},"renderContextTable":{"__isSmartRef__":true,"id":16793},"_Extent":{"__isSmartRef__":true,"id":16794},"_Padding":{"__isSmartRef__":true,"id":16795},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16792":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16793":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16794":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16795":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16796":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16797":{"morph":{"__isSmartRef__":true,"id":16753},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16798":{"resizeWidth":true},"16799":{"submorphs":[{"__isSmartRef__":true,"id":16800},{"__isSmartRef__":true,"id":16817}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16833},"derivationIds":[null],"id":"FABEE1EF-87B2-417C-8655-8C75AA080322","renderContextTable":{"__isSmartRef__":true,"id":16838},"eventHandler":{"__isSmartRef__":true,"id":16839},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16840},"grabbingEnabled":false,"draggingEnabled":false,"data":"","propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"#startLetters","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":16800},"text":{"__isSmartRef__":true,"id":16817},"owner":{"__isSmartRef__":true,"id":16841},"_Position":{"__isSmartRef__":true,"id":20077},"priorExtent":{"__isSmartRef__":true,"id":20078},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20079},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16800":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16801},"derivationIds":[null],"id":"FF85F905-08E5-413A-B453-048F7FD7966C","renderContextTable":{"__isSmartRef__":true,"id":16807},"eventHandler":{"__isSmartRef__":true,"id":16808},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16809},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":16799},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16810},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"16801":{"_Position":{"__isSmartRef__":true,"id":16802},"renderContextTable":{"__isSmartRef__":true,"id":16803},"_Extent":{"__isSmartRef__":true,"id":16804},"_Padding":{"__isSmartRef__":true,"id":16805},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":16806},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16802":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16803":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16804":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16805":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16806":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16807":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16808":{"morph":{"__isSmartRef__":true,"id":16800},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16809":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16810":{"toggle":{"__isSmartRef__":true,"id":16811},"toggleExpansion":{"__isSmartRef__":true,"id":16814}},"16811":{"varMapping":{"__isSmartRef__":true,"id":16812},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":16813},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16812":{"this":{"__isSmartRef__":true,"id":16800}},"16813":{},"16814":{"varMapping":{"__isSmartRef__":true,"id":16815},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":16816},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16815":{"this":{"__isSmartRef__":true,"id":16800}},"16816":{},"16817":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16818},"derivationIds":[null],"id":"1823F1D0-8F1C-45E7-BC6D-37158CEE72F3","renderContextTable":{"__isSmartRef__":true,"id":16822},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":16823},{"__isSmartRef__":true,"id":16825}],"eventHandler":{"__isSmartRef__":true,"id":16827},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":16828},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":16799},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16829},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16818":{"_Position":{"__isSmartRef__":true,"id":16819},"renderContextTable":{"__isSmartRef__":true,"id":16820},"_Extent":{"__isSmartRef__":true,"id":16821},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16819":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16820":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16821":{"x":89,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16822":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16823":{"style":{"__isSmartRef__":true,"id":16824},"chunkOwner":{"__isSmartRef__":true,"id":16817},"storedString":"#startLetters","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16824":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16825":{"style":{"__isSmartRef__":true,"id":16826},"chunkOwner":{"__isSmartRef__":true,"id":16817},"storedString":": ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16826":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16827":{"morph":{"__isSmartRef__":true,"id":16817},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16828":{"x":112.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16829":{"layoutText":{"__isSmartRef__":true,"id":16830}},"16830":{"varMapping":{"__isSmartRef__":true,"id":16831},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":16832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16831":{"this":{"__isSmartRef__":true,"id":16817}},"16832":{},"16833":{"_Position":{"__isSmartRef__":true,"id":16834},"renderContextTable":{"__isSmartRef__":true,"id":16835},"_Extent":{"__isSmartRef__":true,"id":16836},"_Padding":{"__isSmartRef__":true,"id":16837},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16834":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16835":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16836":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16837":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16838":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16839":{"morph":{"__isSmartRef__":true,"id":16799},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16840":{"resizeWidth":true},"16841":{"submorphs":[{"__isSmartRef__":true,"id":16799}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16842},"derivationIds":[null],"id":"D74CF9BC-6AA2-4FC0-A785-92E5F3331FD5","renderContextTable":{"__isSmartRef__":true,"id":16847},"eventHandler":{"__isSmartRef__":true,"id":16848},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16849},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":16851},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":20068},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20069},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16842":{"_Position":{"__isSmartRef__":true,"id":16843},"renderContextTable":{"__isSmartRef__":true,"id":16844},"_Extent":{"__isSmartRef__":true,"id":16845},"_Padding":{"__isSmartRef__":true,"id":16846},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16843":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16844":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16845":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16846":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16847":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16848":{"morph":{"__isSmartRef__":true,"id":16841},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16849":{"layouter":{"__isSmartRef__":true,"id":16850},"resizeWidth":true},"16850":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":16841},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"16851":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16852":{"submorphs":[{"__isSmartRef__":true,"id":16841},{"__isSmartRef__":true,"id":16853},{"__isSmartRef__":true,"id":16937},{"__isSmartRef__":true,"id":17021},{"__isSmartRef__":true,"id":17105},{"__isSmartRef__":true,"id":17189},{"__isSmartRef__":true,"id":17273},{"__isSmartRef__":true,"id":17357},{"__isSmartRef__":true,"id":17442},{"__isSmartRef__":true,"id":17526},{"__isSmartRef__":true,"id":17610},{"__isSmartRef__":true,"id":17694},{"__isSmartRef__":true,"id":17778},{"__isSmartRef__":true,"id":17862},{"__isSmartRef__":true,"id":17946},{"__isSmartRef__":true,"id":18030},{"__isSmartRef__":true,"id":18114},{"__isSmartRef__":true,"id":18198},{"__isSmartRef__":true,"id":18282},{"__isSmartRef__":true,"id":18366},{"__isSmartRef__":true,"id":18450},{"__isSmartRef__":true,"id":18534},{"__isSmartRef__":true,"id":18618},{"__isSmartRef__":true,"id":18702},{"__isSmartRef__":true,"id":18786},{"__isSmartRef__":true,"id":18870},{"__isSmartRef__":true,"id":18954},{"__isSmartRef__":true,"id":19038},{"__isSmartRef__":true,"id":19122},{"__isSmartRef__":true,"id":19206},{"__isSmartRef__":true,"id":19290},{"__isSmartRef__":true,"id":19374},{"__isSmartRef__":true,"id":19458},{"__isSmartRef__":true,"id":19542},{"__isSmartRef__":true,"id":19626},{"__isSmartRef__":true,"id":19710},{"__isSmartRef__":true,"id":19794},{"__isSmartRef__":true,"id":19878},{"__isSmartRef__":true,"id":19962}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20046},"derivationIds":[null],"id":"CA8D4F22-F33A-4B12-8963-F545BBEB7229","renderContextTable":{"__isSmartRef__":true,"id":20051},"eventHandler":{"__isSmartRef__":true,"id":20052},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20053},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":20055},"owner":{"__isSmartRef__":true,"id":16752},"_Position":{"__isSmartRef__":true,"id":20056},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20057},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16853":{"submorphs":[{"__isSmartRef__":true,"id":16854}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16918},"derivationIds":[null],"id":"D2654563-7537-46FF-B844-4D72826A0FF6","renderContextTable":{"__isSmartRef__":true,"id":16923},"eventHandler":{"__isSmartRef__":true,"id":16924},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16925},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":16927},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":16928},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16929},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16854":{"submorphs":[{"__isSmartRef__":true,"id":16855},{"__isSmartRef__":true,"id":16872}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16888},"derivationIds":[null],"id":"C28B0AB8-AD9B-468C-8927-2C242353195F","renderContextTable":{"__isSmartRef__":true,"id":16893},"eventHandler":{"__isSmartRef__":true,"id":16894},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16895},"grabbingEnabled":false,"draggingEnabled":false,"data":"visible","propertyList":["0","1","2","3","4","5","6"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"_ClipMode","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":16855},"text":{"__isSmartRef__":true,"id":16872},"owner":{"__isSmartRef__":true,"id":16853},"_Position":{"__isSmartRef__":true,"id":16896},"priorExtent":{"__isSmartRef__":true,"id":16897},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16898},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16855":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16856},"derivationIds":[null],"id":"B8DF245A-2489-4B4F-9584-ECA5B02FBE5F","renderContextTable":{"__isSmartRef__":true,"id":16862},"eventHandler":{"__isSmartRef__":true,"id":16863},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16864},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":16854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16865},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"16856":{"_Position":{"__isSmartRef__":true,"id":16857},"renderContextTable":{"__isSmartRef__":true,"id":16858},"_Extent":{"__isSmartRef__":true,"id":16859},"_Padding":{"__isSmartRef__":true,"id":16860},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":16861},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16857":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16858":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16859":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16860":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16861":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16862":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16863":{"morph":{"__isSmartRef__":true,"id":16855},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16864":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16865":{"toggle":{"__isSmartRef__":true,"id":16866},"toggleExpansion":{"__isSmartRef__":true,"id":16869}},"16866":{"varMapping":{"__isSmartRef__":true,"id":16867},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":16868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16867":{"this":{"__isSmartRef__":true,"id":16855}},"16868":{},"16869":{"varMapping":{"__isSmartRef__":true,"id":16870},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":16871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16870":{"this":{"__isSmartRef__":true,"id":16855}},"16871":{},"16872":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16873},"derivationIds":[null],"id":"4DE3281D-2034-43DB-9A40-C78DF52C2A2A","renderContextTable":{"__isSmartRef__":true,"id":16877},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":16878},{"__isSmartRef__":true,"id":16880}],"eventHandler":{"__isSmartRef__":true,"id":16882},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":16883},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":16854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16884},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16873":{"_Position":{"__isSmartRef__":true,"id":16874},"renderContextTable":{"__isSmartRef__":true,"id":16875},"_Extent":{"__isSmartRef__":true,"id":16876},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16874":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16875":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16876":{"x":114,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16877":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16878":{"style":{"__isSmartRef__":true,"id":16879},"chunkOwner":{"__isSmartRef__":true,"id":16872},"storedString":"_ClipMode","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16879":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16880":{"style":{"__isSmartRef__":true,"id":16881},"chunkOwner":{"__isSmartRef__":true,"id":16872},"storedString":": visible","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16881":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16882":{"morph":{"__isSmartRef__":true,"id":16872},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16883":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16884":{"layoutText":{"__isSmartRef__":true,"id":16885}},"16885":{"varMapping":{"__isSmartRef__":true,"id":16886},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":16887},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16886":{"this":{"__isSmartRef__":true,"id":16872}},"16887":{},"16888":{"_Position":{"__isSmartRef__":true,"id":16889},"renderContextTable":{"__isSmartRef__":true,"id":16890},"_Extent":{"__isSmartRef__":true,"id":16891},"_Padding":{"__isSmartRef__":true,"id":16892},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16889":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16890":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16891":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16892":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16893":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16894":{"morph":{"__isSmartRef__":true,"id":16854},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16895":{"resizeWidth":true},"16896":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16897":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16898":{"updateExpanderColor":{"__isSmartRef__":true,"id":16899},"onMouseDown":{"__isSmartRef__":true,"id":16902},"isRoot":{"__isSmartRef__":true,"id":16909},"displayValue":{"__isSmartRef__":true,"id":16912},"update":{"__isSmartRef__":true,"id":16915}},"16899":{"varMapping":{"__isSmartRef__":true,"id":16900},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":16901},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16900":{"this":{"__isSmartRef__":true,"id":16854}},"16901":{},"16902":{"varMapping":{"__isSmartRef__":true,"id":16903},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":16908},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16903":{"this":{"__isSmartRef__":true,"id":16854},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16904}},"16904":{"$super":{"__isSmartRef__":true,"id":16905}},"16905":{"varMapping":{"__isSmartRef__":true,"id":16906},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16907},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16906":{"obj":{"__isSmartRef__":true,"id":16854},"name":"onMouseDown"},"16907":{},"16908":{},"16909":{"varMapping":{"__isSmartRef__":true,"id":16910},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":16911},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16910":{"this":{"__isSmartRef__":true,"id":16854}},"16911":{},"16912":{"varMapping":{"__isSmartRef__":true,"id":16913},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":16914},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16913":{"this":{"__isSmartRef__":true,"id":16854}},"16914":{},"16915":{"varMapping":{"__isSmartRef__":true,"id":16916},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16916":{"this":{"__isSmartRef__":true,"id":16854}},"16917":{},"16918":{"_Position":{"__isSmartRef__":true,"id":16919},"renderContextTable":{"__isSmartRef__":true,"id":16920},"_Extent":{"__isSmartRef__":true,"id":16921},"_Padding":{"__isSmartRef__":true,"id":16922},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16919":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16920":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16921":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16922":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16923":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16924":{"morph":{"__isSmartRef__":true,"id":16853},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16925":{"layouter":{"__isSmartRef__":true,"id":16926},"resizeWidth":true},"16926":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":16853},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"16927":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16928":{"x":0,"y":760,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16929":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":16930}},"16930":{"varMapping":{"__isSmartRef__":true,"id":16931},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":16936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16931":{"this":{"__isSmartRef__":true,"id":16853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16932}},"16932":{"$super":{"__isSmartRef__":true,"id":16933}},"16933":{"varMapping":{"__isSmartRef__":true,"id":16934},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16935},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16934":{"obj":{"__isSmartRef__":true,"id":16853},"name":"getLayoutableSubmorphs"},"16935":{},"16936":{},"16937":{"submorphs":[{"__isSmartRef__":true,"id":16938}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17002},"derivationIds":[null],"id":"9EDBA591-BC35-4584-AC9B-8D1983FE7ACA","renderContextTable":{"__isSmartRef__":true,"id":17007},"eventHandler":{"__isSmartRef__":true,"id":17008},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17009},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17011},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17012},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17013},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16938":{"submorphs":[{"__isSmartRef__":true,"id":16939},{"__isSmartRef__":true,"id":16956}],"scripts":[],"shape":{"__isSmartRef__":true,"id":16972},"derivationIds":[null],"id":"B8F4B583-7590-466D-92D6-6C894E4B360F","renderContextTable":{"__isSmartRef__":true,"id":16977},"eventHandler":{"__isSmartRef__":true,"id":16978},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":16979},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":15962},"propertyList":["x","y"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"_Position","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":16939},"text":{"__isSmartRef__":true,"id":16956},"owner":{"__isSmartRef__":true,"id":16937},"_Position":{"__isSmartRef__":true,"id":16980},"priorExtent":{"__isSmartRef__":true,"id":16981},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16982},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"16939":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16940},"derivationIds":[null],"id":"FF9F63A9-C0CF-4D4B-B69E-4C41B8B12066","renderContextTable":{"__isSmartRef__":true,"id":16946},"eventHandler":{"__isSmartRef__":true,"id":16947},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":16948},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":16938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16949},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"16940":{"_Position":{"__isSmartRef__":true,"id":16941},"renderContextTable":{"__isSmartRef__":true,"id":16942},"_Extent":{"__isSmartRef__":true,"id":16943},"_Padding":{"__isSmartRef__":true,"id":16944},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":16945},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16941":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16942":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16943":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16944":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16945":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16946":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16947":{"morph":{"__isSmartRef__":true,"id":16939},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16948":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16949":{"toggle":{"__isSmartRef__":true,"id":16950},"toggleExpansion":{"__isSmartRef__":true,"id":16953}},"16950":{"varMapping":{"__isSmartRef__":true,"id":16951},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":16952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16951":{"this":{"__isSmartRef__":true,"id":16939}},"16952":{},"16953":{"varMapping":{"__isSmartRef__":true,"id":16954},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":16955},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16954":{"this":{"__isSmartRef__":true,"id":16939}},"16955":{},"16956":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":16957},"derivationIds":[null],"id":"4920C7B7-C0E8-4FD5-93F8-4F29F4732E0E","renderContextTable":{"__isSmartRef__":true,"id":16961},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":16962},{"__isSmartRef__":true,"id":16964}],"eventHandler":{"__isSmartRef__":true,"id":16966},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":16967},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":16938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16968},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16957":{"_Position":{"__isSmartRef__":true,"id":16958},"renderContextTable":{"__isSmartRef__":true,"id":16959},"_Extent":{"__isSmartRef__":true,"id":16960},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16958":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16959":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16960":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16961":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"16962":{"style":{"__isSmartRef__":true,"id":16963},"chunkOwner":{"__isSmartRef__":true,"id":16956},"storedString":"_Position","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16963":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16964":{"style":{"__isSmartRef__":true,"id":16965},"chunkOwner":{"__isSmartRef__":true,"id":16956},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16965":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"16966":{"morph":{"__isSmartRef__":true,"id":16956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16967":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16968":{"layoutText":{"__isSmartRef__":true,"id":16969}},"16969":{"varMapping":{"__isSmartRef__":true,"id":16970},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":16971},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16970":{"this":{"__isSmartRef__":true,"id":16956}},"16971":{},"16972":{"_Position":{"__isSmartRef__":true,"id":16973},"renderContextTable":{"__isSmartRef__":true,"id":16974},"_Extent":{"__isSmartRef__":true,"id":16975},"_Padding":{"__isSmartRef__":true,"id":16976},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"16973":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16974":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"16975":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16976":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16977":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"16978":{"morph":{"__isSmartRef__":true,"id":16938},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"16979":{"resizeWidth":true},"16980":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16981":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"16982":{"updateExpanderColor":{"__isSmartRef__":true,"id":16983},"onMouseDown":{"__isSmartRef__":true,"id":16986},"isRoot":{"__isSmartRef__":true,"id":16993},"displayValue":{"__isSmartRef__":true,"id":16996},"update":{"__isSmartRef__":true,"id":16999}},"16983":{"varMapping":{"__isSmartRef__":true,"id":16984},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":16985},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16984":{"this":{"__isSmartRef__":true,"id":16938}},"16985":{},"16986":{"varMapping":{"__isSmartRef__":true,"id":16987},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":16992},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16987":{"this":{"__isSmartRef__":true,"id":16938},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":16988}},"16988":{"$super":{"__isSmartRef__":true,"id":16989}},"16989":{"varMapping":{"__isSmartRef__":true,"id":16990},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":16991},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16990":{"obj":{"__isSmartRef__":true,"id":16938},"name":"onMouseDown"},"16991":{},"16992":{},"16993":{"varMapping":{"__isSmartRef__":true,"id":16994},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":16995},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16994":{"this":{"__isSmartRef__":true,"id":16938}},"16995":{},"16996":{"varMapping":{"__isSmartRef__":true,"id":16997},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":16998},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"16997":{"this":{"__isSmartRef__":true,"id":16938}},"16998":{},"16999":{"varMapping":{"__isSmartRef__":true,"id":17000},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17000":{"this":{"__isSmartRef__":true,"id":16938}},"17001":{},"17002":{"_Position":{"__isSmartRef__":true,"id":17003},"renderContextTable":{"__isSmartRef__":true,"id":17004},"_Extent":{"__isSmartRef__":true,"id":17005},"_Padding":{"__isSmartRef__":true,"id":17006},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17003":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17004":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17005":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17006":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17007":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17008":{"morph":{"__isSmartRef__":true,"id":16937},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17009":{"layouter":{"__isSmartRef__":true,"id":17010},"resizeWidth":true},"17010":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":16937},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17011":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17012":{"x":0,"y":740,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17013":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17014}},"17014":{"varMapping":{"__isSmartRef__":true,"id":17015},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17015":{"this":{"__isSmartRef__":true,"id":16937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17016}},"17016":{"$super":{"__isSmartRef__":true,"id":17017}},"17017":{"varMapping":{"__isSmartRef__":true,"id":17018},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17019},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17018":{"obj":{"__isSmartRef__":true,"id":16937},"name":"getLayoutableSubmorphs"},"17019":{},"17020":{},"17021":{"submorphs":[{"__isSmartRef__":true,"id":17022}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17086},"derivationIds":[null],"id":"9E9189A2-E76D-49A7-98D5-3EF295FC1F12","renderContextTable":{"__isSmartRef__":true,"id":17091},"eventHandler":{"__isSmartRef__":true,"id":17092},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17093},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17095},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17096},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17097},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17022":{"submorphs":[{"__isSmartRef__":true,"id":17023},{"__isSmartRef__":true,"id":17040}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17056},"derivationIds":[null],"id":"D0A2E203-E5B7-416A-B02C-BAD63B9A2010","renderContextTable":{"__isSmartRef__":true,"id":17061},"eventHandler":{"__isSmartRef__":true,"id":17062},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17063},"grabbingEnabled":false,"draggingEnabled":false,"data":0,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"_Rotation","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17023},"text":{"__isSmartRef__":true,"id":17040},"owner":{"__isSmartRef__":true,"id":17021},"_Position":{"__isSmartRef__":true,"id":17064},"priorExtent":{"__isSmartRef__":true,"id":17065},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17066},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17023":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17024},"derivationIds":[null],"id":"4EA97BA9-7F1E-4972-8574-05365F7F15A8","renderContextTable":{"__isSmartRef__":true,"id":17030},"eventHandler":{"__isSmartRef__":true,"id":17031},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17032},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17033},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17024":{"_Position":{"__isSmartRef__":true,"id":17025},"renderContextTable":{"__isSmartRef__":true,"id":17026},"_Extent":{"__isSmartRef__":true,"id":17027},"_Padding":{"__isSmartRef__":true,"id":17028},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17029},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17025":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17026":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17027":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17028":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17029":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17030":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17031":{"morph":{"__isSmartRef__":true,"id":17023},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17032":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17033":{"toggle":{"__isSmartRef__":true,"id":17034},"toggleExpansion":{"__isSmartRef__":true,"id":17037}},"17034":{"varMapping":{"__isSmartRef__":true,"id":17035},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17035":{"this":{"__isSmartRef__":true,"id":17023}},"17036":{},"17037":{"varMapping":{"__isSmartRef__":true,"id":17038},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17039},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17038":{"this":{"__isSmartRef__":true,"id":17023}},"17039":{},"17040":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17041},"derivationIds":[null],"id":"326D917C-EE87-477C-9D40-D5C5AF06709B","renderContextTable":{"__isSmartRef__":true,"id":17045},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17046},{"__isSmartRef__":true,"id":17048}],"eventHandler":{"__isSmartRef__":true,"id":17050},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17051},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17052},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17041":{"_Position":{"__isSmartRef__":true,"id":17042},"renderContextTable":{"__isSmartRef__":true,"id":17043},"_Extent":{"__isSmartRef__":true,"id":17044},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17042":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17043":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17044":{"x":78,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17045":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17046":{"style":{"__isSmartRef__":true,"id":17047},"chunkOwner":{"__isSmartRef__":true,"id":17040},"storedString":"_Rotation","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17047":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17048":{"style":{"__isSmartRef__":true,"id":17049},"chunkOwner":{"__isSmartRef__":true,"id":17040},"storedString":": 0","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17049":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17050":{"morph":{"__isSmartRef__":true,"id":17040},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17051":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17052":{"layoutText":{"__isSmartRef__":true,"id":17053}},"17053":{"varMapping":{"__isSmartRef__":true,"id":17054},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17054":{"this":{"__isSmartRef__":true,"id":17040}},"17055":{},"17056":{"_Position":{"__isSmartRef__":true,"id":17057},"renderContextTable":{"__isSmartRef__":true,"id":17058},"_Extent":{"__isSmartRef__":true,"id":17059},"_Padding":{"__isSmartRef__":true,"id":17060},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17057":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17058":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17059":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17060":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17061":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17062":{"morph":{"__isSmartRef__":true,"id":17022},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17063":{"resizeWidth":true},"17064":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17065":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17066":{"updateExpanderColor":{"__isSmartRef__":true,"id":17067},"onMouseDown":{"__isSmartRef__":true,"id":17070},"isRoot":{"__isSmartRef__":true,"id":17077},"displayValue":{"__isSmartRef__":true,"id":17080},"update":{"__isSmartRef__":true,"id":17083}},"17067":{"varMapping":{"__isSmartRef__":true,"id":17068},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17068":{"this":{"__isSmartRef__":true,"id":17022}},"17069":{},"17070":{"varMapping":{"__isSmartRef__":true,"id":17071},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17071":{"this":{"__isSmartRef__":true,"id":17022},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17072}},"17072":{"$super":{"__isSmartRef__":true,"id":17073}},"17073":{"varMapping":{"__isSmartRef__":true,"id":17074},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17074":{"obj":{"__isSmartRef__":true,"id":17022},"name":"onMouseDown"},"17075":{},"17076":{},"17077":{"varMapping":{"__isSmartRef__":true,"id":17078},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17079},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17078":{"this":{"__isSmartRef__":true,"id":17022}},"17079":{},"17080":{"varMapping":{"__isSmartRef__":true,"id":17081},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17081":{"this":{"__isSmartRef__":true,"id":17022}},"17082":{},"17083":{"varMapping":{"__isSmartRef__":true,"id":17084},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17084":{"this":{"__isSmartRef__":true,"id":17022}},"17085":{},"17086":{"_Position":{"__isSmartRef__":true,"id":17087},"renderContextTable":{"__isSmartRef__":true,"id":17088},"_Extent":{"__isSmartRef__":true,"id":17089},"_Padding":{"__isSmartRef__":true,"id":17090},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17087":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17088":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17089":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17090":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17091":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17092":{"morph":{"__isSmartRef__":true,"id":17021},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17093":{"layouter":{"__isSmartRef__":true,"id":17094},"resizeWidth":true},"17094":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17021},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17095":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17096":{"x":0,"y":720,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17097":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17098}},"17098":{"varMapping":{"__isSmartRef__":true,"id":17099},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17099":{"this":{"__isSmartRef__":true,"id":17021},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17100}},"17100":{"$super":{"__isSmartRef__":true,"id":17101}},"17101":{"varMapping":{"__isSmartRef__":true,"id":17102},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17103},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17102":{"obj":{"__isSmartRef__":true,"id":17021},"name":"getLayoutableSubmorphs"},"17103":{},"17104":{},"17105":{"submorphs":[{"__isSmartRef__":true,"id":17106}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17170},"derivationIds":[null],"id":"E7F9A93E-2DD1-4F51-9A43-0C4CE5A81775","renderContextTable":{"__isSmartRef__":true,"id":17175},"eventHandler":{"__isSmartRef__":true,"id":17176},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17177},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17179},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17180},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17181},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17106":{"submorphs":[{"__isSmartRef__":true,"id":17107},{"__isSmartRef__":true,"id":17124}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17140},"derivationIds":[null],"id":"C9671D9F-F80C-4D8E-94F9-479B709B495B","renderContextTable":{"__isSmartRef__":true,"id":17145},"eventHandler":{"__isSmartRef__":true,"id":17146},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17147},"grabbingEnabled":false,"draggingEnabled":false,"data":1.0040100200350572,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"_Scale","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17107},"text":{"__isSmartRef__":true,"id":17124},"owner":{"__isSmartRef__":true,"id":17105},"_Position":{"__isSmartRef__":true,"id":17148},"priorExtent":{"__isSmartRef__":true,"id":17149},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17150},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17107":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17108},"derivationIds":[null],"id":"4FA1A977-EE77-4961-B2A3-68412038A714","renderContextTable":{"__isSmartRef__":true,"id":17114},"eventHandler":{"__isSmartRef__":true,"id":17115},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17116},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17117},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17108":{"_Position":{"__isSmartRef__":true,"id":17109},"renderContextTable":{"__isSmartRef__":true,"id":17110},"_Extent":{"__isSmartRef__":true,"id":17111},"_Padding":{"__isSmartRef__":true,"id":17112},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17113},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17109":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17110":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17111":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17112":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17113":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17114":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17115":{"morph":{"__isSmartRef__":true,"id":17107},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17116":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17117":{"toggle":{"__isSmartRef__":true,"id":17118},"toggleExpansion":{"__isSmartRef__":true,"id":17121}},"17118":{"varMapping":{"__isSmartRef__":true,"id":17119},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17119":{"this":{"__isSmartRef__":true,"id":17107}},"17120":{},"17121":{"varMapping":{"__isSmartRef__":true,"id":17122},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17122":{"this":{"__isSmartRef__":true,"id":17107}},"17123":{},"17124":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17125},"derivationIds":[null],"id":"0C793200-8F6F-4448-81AB-070200E887F7","renderContextTable":{"__isSmartRef__":true,"id":17129},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17130},{"__isSmartRef__":true,"id":17132}],"eventHandler":{"__isSmartRef__":true,"id":17134},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17135},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17136},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17125":{"_Position":{"__isSmartRef__":true,"id":17126},"renderContextTable":{"__isSmartRef__":true,"id":17127},"_Extent":{"__isSmartRef__":true,"id":17128},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17126":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17127":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17128":{"x":179,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17129":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17130":{"style":{"__isSmartRef__":true,"id":17131},"chunkOwner":{"__isSmartRef__":true,"id":17124},"storedString":"_Scale","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17131":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17132":{"style":{"__isSmartRef__":true,"id":17133},"chunkOwner":{"__isSmartRef__":true,"id":17124},"storedString":": 1.0040100200350572","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17133":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17134":{"morph":{"__isSmartRef__":true,"id":17124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17135":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17136":{"layoutText":{"__isSmartRef__":true,"id":17137}},"17137":{"varMapping":{"__isSmartRef__":true,"id":17138},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17138":{"this":{"__isSmartRef__":true,"id":17124}},"17139":{},"17140":{"_Position":{"__isSmartRef__":true,"id":17141},"renderContextTable":{"__isSmartRef__":true,"id":17142},"_Extent":{"__isSmartRef__":true,"id":17143},"_Padding":{"__isSmartRef__":true,"id":17144},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17141":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17142":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17143":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17144":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17145":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17146":{"morph":{"__isSmartRef__":true,"id":17106},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17147":{"resizeWidth":true},"17148":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17149":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17150":{"updateExpanderColor":{"__isSmartRef__":true,"id":17151},"onMouseDown":{"__isSmartRef__":true,"id":17154},"isRoot":{"__isSmartRef__":true,"id":17161},"displayValue":{"__isSmartRef__":true,"id":17164},"update":{"__isSmartRef__":true,"id":17167}},"17151":{"varMapping":{"__isSmartRef__":true,"id":17152},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17153},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17152":{"this":{"__isSmartRef__":true,"id":17106}},"17153":{},"17154":{"varMapping":{"__isSmartRef__":true,"id":17155},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17155":{"this":{"__isSmartRef__":true,"id":17106},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17156}},"17156":{"$super":{"__isSmartRef__":true,"id":17157}},"17157":{"varMapping":{"__isSmartRef__":true,"id":17158},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17158":{"obj":{"__isSmartRef__":true,"id":17106},"name":"onMouseDown"},"17159":{},"17160":{},"17161":{"varMapping":{"__isSmartRef__":true,"id":17162},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17162":{"this":{"__isSmartRef__":true,"id":17106}},"17163":{},"17164":{"varMapping":{"__isSmartRef__":true,"id":17165},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17166},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17165":{"this":{"__isSmartRef__":true,"id":17106}},"17166":{},"17167":{"varMapping":{"__isSmartRef__":true,"id":17168},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17168":{"this":{"__isSmartRef__":true,"id":17106}},"17169":{},"17170":{"_Position":{"__isSmartRef__":true,"id":17171},"renderContextTable":{"__isSmartRef__":true,"id":17172},"_Extent":{"__isSmartRef__":true,"id":17173},"_Padding":{"__isSmartRef__":true,"id":17174},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17171":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17172":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17173":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17174":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17175":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17176":{"morph":{"__isSmartRef__":true,"id":17105},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17177":{"layouter":{"__isSmartRef__":true,"id":17178},"resizeWidth":true},"17178":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17105},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17179":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17180":{"x":0,"y":700,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17181":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17182}},"17182":{"varMapping":{"__isSmartRef__":true,"id":17183},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17183":{"this":{"__isSmartRef__":true,"id":17105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17184}},"17184":{"$super":{"__isSmartRef__":true,"id":17185}},"17185":{"varMapping":{"__isSmartRef__":true,"id":17186},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17187},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17186":{"obj":{"__isSmartRef__":true,"id":17105},"name":"getLayoutableSubmorphs"},"17187":{},"17188":{},"17189":{"submorphs":[{"__isSmartRef__":true,"id":17190}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17254},"derivationIds":[null],"id":"C5E276D1-BE0B-4426-A338-EE136BB5B947","renderContextTable":{"__isSmartRef__":true,"id":17259},"eventHandler":{"__isSmartRef__":true,"id":17260},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17261},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17263},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17264},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17265},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17190":{"submorphs":[{"__isSmartRef__":true,"id":17191},{"__isSmartRef__":true,"id":17208}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17224},"derivationIds":[null],"id":"3E88A3A0-249C-4E70-98C4-148E8B7E31B5","renderContextTable":{"__isSmartRef__":true,"id":17229},"eventHandler":{"__isSmartRef__":true,"id":17230},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17231},"grabbingEnabled":false,"draggingEnabled":false,"data":"Global.lively.morphic.Core","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"__SourceModuleName__","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17191},"text":{"__isSmartRef__":true,"id":17208},"owner":{"__isSmartRef__":true,"id":17189},"_Position":{"__isSmartRef__":true,"id":17232},"priorExtent":{"__isSmartRef__":true,"id":17233},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17234},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17191":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17192},"derivationIds":[null],"id":"047F5FB2-334E-4629-B6EE-0B5E4FD5F63B","renderContextTable":{"__isSmartRef__":true,"id":17198},"eventHandler":{"__isSmartRef__":true,"id":17199},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17200},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17201},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17192":{"_Position":{"__isSmartRef__":true,"id":17193},"renderContextTable":{"__isSmartRef__":true,"id":17194},"_Extent":{"__isSmartRef__":true,"id":17195},"_Padding":{"__isSmartRef__":true,"id":17196},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17197},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17193":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17194":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17195":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17196":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17197":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17198":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17199":{"morph":{"__isSmartRef__":true,"id":17191},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17200":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17201":{"toggle":{"__isSmartRef__":true,"id":17202},"toggleExpansion":{"__isSmartRef__":true,"id":17205}},"17202":{"varMapping":{"__isSmartRef__":true,"id":17203},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17203":{"this":{"__isSmartRef__":true,"id":17191}},"17204":{},"17205":{"varMapping":{"__isSmartRef__":true,"id":17206},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17207},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17206":{"this":{"__isSmartRef__":true,"id":17191}},"17207":{},"17208":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17209},"derivationIds":[null],"id":"209E612D-6641-4CE1-80C5-8A7A5F513501","renderContextTable":{"__isSmartRef__":true,"id":17213},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17214},{"__isSmartRef__":true,"id":17216}],"eventHandler":{"__isSmartRef__":true,"id":17218},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17219},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17220},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17209":{"_Position":{"__isSmartRef__":true,"id":17210},"renderContextTable":{"__isSmartRef__":true,"id":17211},"_Extent":{"__isSmartRef__":true,"id":17212},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17210":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17211":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17212":{"x":313,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17213":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17214":{"style":{"__isSmartRef__":true,"id":17215},"chunkOwner":{"__isSmartRef__":true,"id":17208},"storedString":"__SourceModuleName__","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17215":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17216":{"style":{"__isSmartRef__":true,"id":17217},"chunkOwner":{"__isSmartRef__":true,"id":17208},"storedString":": Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17217":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17218":{"morph":{"__isSmartRef__":true,"id":17208},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17219":{"x":360,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17220":{"layoutText":{"__isSmartRef__":true,"id":17221}},"17221":{"varMapping":{"__isSmartRef__":true,"id":17222},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17223},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17222":{"this":{"__isSmartRef__":true,"id":17208}},"17223":{},"17224":{"_Position":{"__isSmartRef__":true,"id":17225},"renderContextTable":{"__isSmartRef__":true,"id":17226},"_Extent":{"__isSmartRef__":true,"id":17227},"_Padding":{"__isSmartRef__":true,"id":17228},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17225":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17226":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17227":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17228":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17229":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17230":{"morph":{"__isSmartRef__":true,"id":17190},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17231":{"resizeWidth":true},"17232":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17233":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17234":{"updateExpanderColor":{"__isSmartRef__":true,"id":17235},"onMouseDown":{"__isSmartRef__":true,"id":17238},"isRoot":{"__isSmartRef__":true,"id":17245},"displayValue":{"__isSmartRef__":true,"id":17248},"update":{"__isSmartRef__":true,"id":17251}},"17235":{"varMapping":{"__isSmartRef__":true,"id":17236},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17237},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17236":{"this":{"__isSmartRef__":true,"id":17190}},"17237":{},"17238":{"varMapping":{"__isSmartRef__":true,"id":17239},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17244},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17239":{"this":{"__isSmartRef__":true,"id":17190},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17240}},"17240":{"$super":{"__isSmartRef__":true,"id":17241}},"17241":{"varMapping":{"__isSmartRef__":true,"id":17242},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17243},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17242":{"obj":{"__isSmartRef__":true,"id":17190},"name":"onMouseDown"},"17243":{},"17244":{},"17245":{"varMapping":{"__isSmartRef__":true,"id":17246},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17247},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17246":{"this":{"__isSmartRef__":true,"id":17190}},"17247":{},"17248":{"varMapping":{"__isSmartRef__":true,"id":17249},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17250},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17249":{"this":{"__isSmartRef__":true,"id":17190}},"17250":{},"17251":{"varMapping":{"__isSmartRef__":true,"id":17252},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17252":{"this":{"__isSmartRef__":true,"id":17190}},"17253":{},"17254":{"_Position":{"__isSmartRef__":true,"id":17255},"renderContextTable":{"__isSmartRef__":true,"id":17256},"_Extent":{"__isSmartRef__":true,"id":17257},"_Padding":{"__isSmartRef__":true,"id":17258},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17255":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17256":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17257":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17258":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17259":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17260":{"morph":{"__isSmartRef__":true,"id":17189},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17261":{"layouter":{"__isSmartRef__":true,"id":17262},"resizeWidth":true},"17262":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17189},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17263":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17264":{"x":0,"y":680,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17265":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17266}},"17266":{"varMapping":{"__isSmartRef__":true,"id":17267},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17272},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17267":{"this":{"__isSmartRef__":true,"id":17189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17268}},"17268":{"$super":{"__isSmartRef__":true,"id":17269}},"17269":{"varMapping":{"__isSmartRef__":true,"id":17270},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17271},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17270":{"obj":{"__isSmartRef__":true,"id":17189},"name":"getLayoutableSubmorphs"},"17271":{},"17272":{},"17273":{"submorphs":[{"__isSmartRef__":true,"id":17274}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17338},"derivationIds":[null],"id":"6753134C-F381-4D09-A674-8E283106C945","renderContextTable":{"__isSmartRef__":true,"id":17343},"eventHandler":{"__isSmartRef__":true,"id":17344},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17345},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17347},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17348},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17349},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17274":{"submorphs":[{"__isSmartRef__":true,"id":17275},{"__isSmartRef__":true,"id":17292}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17308},"derivationIds":[null],"id":"4854A820-A92B-444E-9C8D-9062EA1132AC","renderContextTable":{"__isSmartRef__":true,"id":17313},"eventHandler":{"__isSmartRef__":true,"id":17314},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17315},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"_isRendered","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17275},"text":{"__isSmartRef__":true,"id":17292},"owner":{"__isSmartRef__":true,"id":17273},"_Position":{"__isSmartRef__":true,"id":17316},"priorExtent":{"__isSmartRef__":true,"id":17317},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17318},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17275":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17276},"derivationIds":[null],"id":"24C36BF9-44F9-47C6-B363-A1EE72C426DF","renderContextTable":{"__isSmartRef__":true,"id":17282},"eventHandler":{"__isSmartRef__":true,"id":17283},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17284},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17285},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17276":{"_Position":{"__isSmartRef__":true,"id":17277},"renderContextTable":{"__isSmartRef__":true,"id":17278},"_Extent":{"__isSmartRef__":true,"id":17279},"_Padding":{"__isSmartRef__":true,"id":17280},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17281},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17277":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17278":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17279":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17280":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17281":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17282":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17283":{"morph":{"__isSmartRef__":true,"id":17275},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17284":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17285":{"toggle":{"__isSmartRef__":true,"id":17286},"toggleExpansion":{"__isSmartRef__":true,"id":17289}},"17286":{"varMapping":{"__isSmartRef__":true,"id":17287},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17287":{"this":{"__isSmartRef__":true,"id":17275}},"17288":{},"17289":{"varMapping":{"__isSmartRef__":true,"id":17290},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17291},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17290":{"this":{"__isSmartRef__":true,"id":17275}},"17291":{},"17292":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17293},"derivationIds":[null],"id":"2CC2BAFA-3F24-4244-9683-50D21DAF6FB1","renderContextTable":{"__isSmartRef__":true,"id":17297},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17298},{"__isSmartRef__":true,"id":17300}],"eventHandler":{"__isSmartRef__":true,"id":17302},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17303},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17304},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17293":{"_Position":{"__isSmartRef__":true,"id":17294},"renderContextTable":{"__isSmartRef__":true,"id":17295},"_Extent":{"__isSmartRef__":true,"id":17296},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17294":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17295":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17296":{"x":110,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17297":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17298":{"style":{"__isSmartRef__":true,"id":17299},"chunkOwner":{"__isSmartRef__":true,"id":17292},"storedString":"_isRendered","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17299":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17300":{"style":{"__isSmartRef__":true,"id":17301},"chunkOwner":{"__isSmartRef__":true,"id":17292},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17301":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17302":{"morph":{"__isSmartRef__":true,"id":17292},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17303":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17304":{"layoutText":{"__isSmartRef__":true,"id":17305}},"17305":{"varMapping":{"__isSmartRef__":true,"id":17306},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17307},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17306":{"this":{"__isSmartRef__":true,"id":17292}},"17307":{},"17308":{"_Position":{"__isSmartRef__":true,"id":17309},"renderContextTable":{"__isSmartRef__":true,"id":17310},"_Extent":{"__isSmartRef__":true,"id":17311},"_Padding":{"__isSmartRef__":true,"id":17312},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17309":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17310":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17311":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17312":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17313":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17314":{"morph":{"__isSmartRef__":true,"id":17274},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17315":{"resizeWidth":true},"17316":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17317":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17318":{"updateExpanderColor":{"__isSmartRef__":true,"id":17319},"onMouseDown":{"__isSmartRef__":true,"id":17322},"isRoot":{"__isSmartRef__":true,"id":17329},"displayValue":{"__isSmartRef__":true,"id":17332},"update":{"__isSmartRef__":true,"id":17335}},"17319":{"varMapping":{"__isSmartRef__":true,"id":17320},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17321},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17320":{"this":{"__isSmartRef__":true,"id":17274}},"17321":{},"17322":{"varMapping":{"__isSmartRef__":true,"id":17323},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17328},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17323":{"this":{"__isSmartRef__":true,"id":17274},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17324}},"17324":{"$super":{"__isSmartRef__":true,"id":17325}},"17325":{"varMapping":{"__isSmartRef__":true,"id":17326},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17327},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17326":{"obj":{"__isSmartRef__":true,"id":17274},"name":"onMouseDown"},"17327":{},"17328":{},"17329":{"varMapping":{"__isSmartRef__":true,"id":17330},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17331},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17330":{"this":{"__isSmartRef__":true,"id":17274}},"17331":{},"17332":{"varMapping":{"__isSmartRef__":true,"id":17333},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17334},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17333":{"this":{"__isSmartRef__":true,"id":17274}},"17334":{},"17335":{"varMapping":{"__isSmartRef__":true,"id":17336},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17336":{"this":{"__isSmartRef__":true,"id":17274}},"17337":{},"17338":{"_Position":{"__isSmartRef__":true,"id":17339},"renderContextTable":{"__isSmartRef__":true,"id":17340},"_Extent":{"__isSmartRef__":true,"id":17341},"_Padding":{"__isSmartRef__":true,"id":17342},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17339":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17340":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17341":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17342":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17343":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17344":{"morph":{"__isSmartRef__":true,"id":17273},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17345":{"layouter":{"__isSmartRef__":true,"id":17346},"resizeWidth":true},"17346":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17273},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17347":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17348":{"x":0,"y":660,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17349":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17350}},"17350":{"varMapping":{"__isSmartRef__":true,"id":17351},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17356},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17351":{"this":{"__isSmartRef__":true,"id":17273},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17352}},"17352":{"$super":{"__isSmartRef__":true,"id":17353}},"17353":{"varMapping":{"__isSmartRef__":true,"id":17354},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17355},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17354":{"obj":{"__isSmartRef__":true,"id":17273},"name":"getLayoutableSubmorphs"},"17355":{},"17356":{},"17357":{"submorphs":[{"__isSmartRef__":true,"id":17358}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17423},"derivationIds":[null],"id":"AAA005FC-A951-45EC-9FB7-C23FAD589C2F","renderContextTable":{"__isSmartRef__":true,"id":17428},"eventHandler":{"__isSmartRef__":true,"id":17429},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17430},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17432},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17433},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17434},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17358":{"submorphs":[{"__isSmartRef__":true,"id":17359},{"__isSmartRef__":true,"id":17376}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17392},"derivationIds":[null],"id":"A9BA2764-9F9F-43BA-830A-DBF67FBBB763","renderContextTable":{"__isSmartRef__":true,"id":17397},"eventHandler":{"__isSmartRef__":true,"id":17398},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17399},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":17400},"propertyList":["parentNode","morphNode","shapeNode","originNode"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"_renderContext","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17359},"text":{"__isSmartRef__":true,"id":17376},"owner":{"__isSmartRef__":true,"id":17357},"_Position":{"__isSmartRef__":true,"id":17401},"priorExtent":{"__isSmartRef__":true,"id":17402},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17403},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17359":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17360},"derivationIds":[null],"id":"49F37E78-7274-46C3-86B4-9087DF7171BE","renderContextTable":{"__isSmartRef__":true,"id":17366},"eventHandler":{"__isSmartRef__":true,"id":17367},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17368},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17358},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17369},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17360":{"_Position":{"__isSmartRef__":true,"id":17361},"renderContextTable":{"__isSmartRef__":true,"id":17362},"_Extent":{"__isSmartRef__":true,"id":17363},"_Padding":{"__isSmartRef__":true,"id":17364},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17365},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17361":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17362":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17363":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17364":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17365":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17366":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17367":{"morph":{"__isSmartRef__":true,"id":17359},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17368":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17369":{"toggle":{"__isSmartRef__":true,"id":17370},"toggleExpansion":{"__isSmartRef__":true,"id":17373}},"17370":{"varMapping":{"__isSmartRef__":true,"id":17371},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17371":{"this":{"__isSmartRef__":true,"id":17359}},"17372":{},"17373":{"varMapping":{"__isSmartRef__":true,"id":17374},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17375},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17374":{"this":{"__isSmartRef__":true,"id":17359}},"17375":{},"17376":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17377},"derivationIds":[null],"id":"8D95413D-EF9D-4D4D-8F28-506DE28E249F","renderContextTable":{"__isSmartRef__":true,"id":17381},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17382},{"__isSmartRef__":true,"id":17384}],"eventHandler":{"__isSmartRef__":true,"id":17386},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17387},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17358},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17388},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17377":{"_Position":{"__isSmartRef__":true,"id":17378},"renderContextTable":{"__isSmartRef__":true,"id":17379},"_Extent":{"__isSmartRef__":true,"id":17380},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17378":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17379":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17380":{"x":190,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17381":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17382":{"style":{"__isSmartRef__":true,"id":17383},"chunkOwner":{"__isSmartRef__":true,"id":17376},"storedString":"_renderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17383":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17384":{"style":{"__isSmartRef__":true,"id":17385},"chunkOwner":{"__isSmartRef__":true,"id":17376},"storedString":": RenderContext","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17385":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17386":{"morph":{"__isSmartRef__":true,"id":17376},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17387":{"x":217.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17388":{"layoutText":{"__isSmartRef__":true,"id":17389}},"17389":{"varMapping":{"__isSmartRef__":true,"id":17390},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17391},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17390":{"this":{"__isSmartRef__":true,"id":17376}},"17391":{},"17392":{"_Position":{"__isSmartRef__":true,"id":17393},"renderContextTable":{"__isSmartRef__":true,"id":17394},"_Extent":{"__isSmartRef__":true,"id":17395},"_Padding":{"__isSmartRef__":true,"id":17396},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17393":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17394":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17395":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17396":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17397":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17398":{"morph":{"__isSmartRef__":true,"id":17358},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17399":{"resizeWidth":true},"17400":{"__LivelyClassName__":"lively.morphic.HTML.RenderContext","__SourceModuleName__":"Global.lively.morphic.HTML"},"17401":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17402":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17403":{"updateExpanderColor":{"__isSmartRef__":true,"id":17404},"onMouseDown":{"__isSmartRef__":true,"id":17407},"isRoot":{"__isSmartRef__":true,"id":17414},"displayValue":{"__isSmartRef__":true,"id":17417},"update":{"__isSmartRef__":true,"id":17420}},"17404":{"varMapping":{"__isSmartRef__":true,"id":17405},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17406},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17405":{"this":{"__isSmartRef__":true,"id":17358}},"17406":{},"17407":{"varMapping":{"__isSmartRef__":true,"id":17408},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17413},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17408":{"this":{"__isSmartRef__":true,"id":17358},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17409}},"17409":{"$super":{"__isSmartRef__":true,"id":17410}},"17410":{"varMapping":{"__isSmartRef__":true,"id":17411},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17412},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17411":{"obj":{"__isSmartRef__":true,"id":17358},"name":"onMouseDown"},"17412":{},"17413":{},"17414":{"varMapping":{"__isSmartRef__":true,"id":17415},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17416},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17415":{"this":{"__isSmartRef__":true,"id":17358}},"17416":{},"17417":{"varMapping":{"__isSmartRef__":true,"id":17418},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17419},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17418":{"this":{"__isSmartRef__":true,"id":17358}},"17419":{},"17420":{"varMapping":{"__isSmartRef__":true,"id":17421},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17421":{"this":{"__isSmartRef__":true,"id":17358}},"17422":{},"17423":{"_Position":{"__isSmartRef__":true,"id":17424},"renderContextTable":{"__isSmartRef__":true,"id":17425},"_Extent":{"__isSmartRef__":true,"id":17426},"_Padding":{"__isSmartRef__":true,"id":17427},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17424":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17425":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17426":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17427":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17428":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17429":{"morph":{"__isSmartRef__":true,"id":17357},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17430":{"layouter":{"__isSmartRef__":true,"id":17431},"resizeWidth":true},"17431":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17357},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17432":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17433":{"x":0,"y":640,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17434":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17435}},"17435":{"varMapping":{"__isSmartRef__":true,"id":17436},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17441},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17436":{"this":{"__isSmartRef__":true,"id":17357},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17437}},"17437":{"$super":{"__isSmartRef__":true,"id":17438}},"17438":{"varMapping":{"__isSmartRef__":true,"id":17439},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17440},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17439":{"obj":{"__isSmartRef__":true,"id":17357},"name":"getLayoutableSubmorphs"},"17440":{},"17441":{},"17442":{"submorphs":[{"__isSmartRef__":true,"id":17443}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17507},"derivationIds":[null],"id":"7C3C79E8-EE63-44C6-9ACE-136ECDA73ECF","renderContextTable":{"__isSmartRef__":true,"id":17512},"eventHandler":{"__isSmartRef__":true,"id":17513},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17514},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17516},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17517},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17518},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17443":{"submorphs":[{"__isSmartRef__":true,"id":17444},{"__isSmartRef__":true,"id":17461}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17477},"derivationIds":[null],"id":"8E99A7F4-301E-4CD6-B9A8-7ABC26D05735","renderContextTable":{"__isSmartRef__":true,"id":17482},"eventHandler":{"__isSmartRef__":true,"id":17483},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17484},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"attributeConnections","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17444},"text":{"__isSmartRef__":true,"id":17461},"owner":{"__isSmartRef__":true,"id":17442},"_Position":{"__isSmartRef__":true,"id":17485},"priorExtent":{"__isSmartRef__":true,"id":17486},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17487},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17444":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17445},"derivationIds":[null],"id":"105F9920-5991-498D-B0B4-E6B3CD801A69","renderContextTable":{"__isSmartRef__":true,"id":17451},"eventHandler":{"__isSmartRef__":true,"id":17452},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17453},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17443},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17454},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17445":{"_Position":{"__isSmartRef__":true,"id":17446},"renderContextTable":{"__isSmartRef__":true,"id":17447},"_Extent":{"__isSmartRef__":true,"id":17448},"_Padding":{"__isSmartRef__":true,"id":17449},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17450},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17446":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17447":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17448":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17449":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17450":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17451":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17452":{"morph":{"__isSmartRef__":true,"id":17444},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17453":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17454":{"toggle":{"__isSmartRef__":true,"id":17455},"toggleExpansion":{"__isSmartRef__":true,"id":17458}},"17455":{"varMapping":{"__isSmartRef__":true,"id":17456},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17456":{"this":{"__isSmartRef__":true,"id":17444}},"17457":{},"17458":{"varMapping":{"__isSmartRef__":true,"id":17459},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17460},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17459":{"this":{"__isSmartRef__":true,"id":17444}},"17460":{},"17461":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17462},"derivationIds":[null],"id":"2B3F6438-E909-4068-A257-8943A22EF629","renderContextTable":{"__isSmartRef__":true,"id":17466},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17467},{"__isSmartRef__":true,"id":17469}],"eventHandler":{"__isSmartRef__":true,"id":17471},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17472},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17443},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17473},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17462":{"_Position":{"__isSmartRef__":true,"id":17463},"renderContextTable":{"__isSmartRef__":true,"id":17464},"_Extent":{"__isSmartRef__":true,"id":17465},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17463":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17464":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17465":{"x":143,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17466":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17467":{"style":{"__isSmartRef__":true,"id":17468},"chunkOwner":{"__isSmartRef__":true,"id":17461},"storedString":"attributeConnections","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17468":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17469":{"style":{"__isSmartRef__":true,"id":17470},"chunkOwner":{"__isSmartRef__":true,"id":17461},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17470":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17471":{"morph":{"__isSmartRef__":true,"id":17461},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17472":{"x":180,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17473":{"layoutText":{"__isSmartRef__":true,"id":17474}},"17474":{"varMapping":{"__isSmartRef__":true,"id":17475},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17475":{"this":{"__isSmartRef__":true,"id":17461}},"17476":{},"17477":{"_Position":{"__isSmartRef__":true,"id":17478},"renderContextTable":{"__isSmartRef__":true,"id":17479},"_Extent":{"__isSmartRef__":true,"id":17480},"_Padding":{"__isSmartRef__":true,"id":17481},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17478":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17479":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17480":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17481":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17482":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17483":{"morph":{"__isSmartRef__":true,"id":17443},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17484":{"resizeWidth":true},"17485":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17486":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17487":{"updateExpanderColor":{"__isSmartRef__":true,"id":17488},"onMouseDown":{"__isSmartRef__":true,"id":17491},"isRoot":{"__isSmartRef__":true,"id":17498},"displayValue":{"__isSmartRef__":true,"id":17501},"update":{"__isSmartRef__":true,"id":17504}},"17488":{"varMapping":{"__isSmartRef__":true,"id":17489},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17490},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17489":{"this":{"__isSmartRef__":true,"id":17443}},"17490":{},"17491":{"varMapping":{"__isSmartRef__":true,"id":17492},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17497},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17492":{"this":{"__isSmartRef__":true,"id":17443},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17493}},"17493":{"$super":{"__isSmartRef__":true,"id":17494}},"17494":{"varMapping":{"__isSmartRef__":true,"id":17495},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17496},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17495":{"obj":{"__isSmartRef__":true,"id":17443},"name":"onMouseDown"},"17496":{},"17497":{},"17498":{"varMapping":{"__isSmartRef__":true,"id":17499},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17500},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17499":{"this":{"__isSmartRef__":true,"id":17443}},"17500":{},"17501":{"varMapping":{"__isSmartRef__":true,"id":17502},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17503},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17502":{"this":{"__isSmartRef__":true,"id":17443}},"17503":{},"17504":{"varMapping":{"__isSmartRef__":true,"id":17505},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17505":{"this":{"__isSmartRef__":true,"id":17443}},"17506":{},"17507":{"_Position":{"__isSmartRef__":true,"id":17508},"renderContextTable":{"__isSmartRef__":true,"id":17509},"_Extent":{"__isSmartRef__":true,"id":17510},"_Padding":{"__isSmartRef__":true,"id":17511},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17508":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17509":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17510":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17511":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17512":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17513":{"morph":{"__isSmartRef__":true,"id":17442},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17514":{"layouter":{"__isSmartRef__":true,"id":17515},"resizeWidth":true},"17515":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17442},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17516":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17517":{"x":0,"y":620,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17518":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17519}},"17519":{"varMapping":{"__isSmartRef__":true,"id":17520},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17525},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17520":{"this":{"__isSmartRef__":true,"id":17442},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17521}},"17521":{"$super":{"__isSmartRef__":true,"id":17522}},"17522":{"varMapping":{"__isSmartRef__":true,"id":17523},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17524},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17523":{"obj":{"__isSmartRef__":true,"id":17442},"name":"getLayoutableSubmorphs"},"17524":{},"17525":{},"17526":{"submorphs":[{"__isSmartRef__":true,"id":17527}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17591},"derivationIds":[null],"id":"C11C805A-BB1D-42F9-86B0-576B405A0FB3","renderContextTable":{"__isSmartRef__":true,"id":17596},"eventHandler":{"__isSmartRef__":true,"id":17597},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17598},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17600},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17601},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17602},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17527":{"submorphs":[{"__isSmartRef__":true,"id":17528},{"__isSmartRef__":true,"id":17545}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17561},"derivationIds":[null],"id":"029D406B-AF23-4121-8B5A-9AABC9513D2B","renderContextTable":{"__isSmartRef__":true,"id":17566},"eventHandler":{"__isSmartRef__":true,"id":17567},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17568},"grabbingEnabled":false,"draggingEnabled":false,"data":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","AF79EBFF-EF50-4426-AAE4-ED153D00A7E8","231CE1FA-9ED5-498D-A2DF-89DCD8144910","353F1852-04EC-4BCE-B2D6-4B5BF1753990","DDBE40C6-C133-41C6-B7AB-CA63C08F24F5","D1192A47-67F3-449E-9223-70A2A4F36856","75566D59-70F6-4AC8-8499-D875B662ECE5","E84F6B69-CB86-4B23-A179-E1901C44E7CA","F734BDBC-D3D8-42FB-9D16-548E840AB400","C174E41E-99FE-4D88-8A99-9BF241D0E165","B798353D-D92A-4D24-9726-BDB0AFAE5660","4E12B7B9-9BA2-467C-ACCD-FDFDE3C0DC33","5E04972C-44C7-415F-B605-60EA8C9BCD29","374843A8-AD07-4F8D-88B2-0634A578EB14","07809FA0-A598-444A-B93D-42AB64283836","E878F9DF-A780-4AAB-956C-259018E74EB1","5FDA9CAD-1AB7-41B0-AB29-7AED81CE9321","2726CC2B-6ECF-4368-9B68-F7C9DF9EFCEC","6327F5FC-33CF-4DD8-B5A3-C22EAEA3128F","74A3F065-BA26-4115-8BEA-1A792FB89BB8","EDE35919-4CF0-4C71-A0E0-0CE22C0667B8","D7035A71-41B4-4732-B905-50C7606B41ED","46388232-02EC-4B63-B17C-144511B8833E","F422CEDD-E5FB-460F-B7F6-51C8D23E532E","20659DFA-EB76-4512-BD73-5E1A131B7876","DC654FC2-2207-4E58-9112-F036389CE174","8972791B-72BF-49D9-9019-EBF824E16F1D","3EE080D6-CBA4-4469-98B6-5C762F93980C","661A3584-063D-4AAF-9325-E1A48622B6A5","4A0FD29D-561B-4555-B5F5-14561410B2CF"],"propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"derivationIds","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17528},"text":{"__isSmartRef__":true,"id":17545},"owner":{"__isSmartRef__":true,"id":17526},"_Position":{"__isSmartRef__":true,"id":17569},"priorExtent":{"__isSmartRef__":true,"id":17570},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17571},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17528":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17529},"derivationIds":[null],"id":"9163EAA8-2B98-4169-B914-1D5052C477A0","renderContextTable":{"__isSmartRef__":true,"id":17535},"eventHandler":{"__isSmartRef__":true,"id":17536},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17537},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17538},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17529":{"_Position":{"__isSmartRef__":true,"id":17530},"renderContextTable":{"__isSmartRef__":true,"id":17531},"_Extent":{"__isSmartRef__":true,"id":17532},"_Padding":{"__isSmartRef__":true,"id":17533},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17534},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17530":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17531":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17532":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17533":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17534":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17535":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17536":{"morph":{"__isSmartRef__":true,"id":17528},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17537":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17538":{"toggle":{"__isSmartRef__":true,"id":17539},"toggleExpansion":{"__isSmartRef__":true,"id":17542}},"17539":{"varMapping":{"__isSmartRef__":true,"id":17540},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17540":{"this":{"__isSmartRef__":true,"id":17528}},"17541":{},"17542":{"varMapping":{"__isSmartRef__":true,"id":17543},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17544},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17543":{"this":{"__isSmartRef__":true,"id":17528}},"17544":{},"17545":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17546},"derivationIds":[null],"id":"8449A62F-9849-4222-855D-D0113DF4F8E6","renderContextTable":{"__isSmartRef__":true,"id":17550},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17551},{"__isSmartRef__":true,"id":17553}],"eventHandler":{"__isSmartRef__":true,"id":17555},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17556},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17557},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17546":{"_Position":{"__isSmartRef__":true,"id":17547},"renderContextTable":{"__isSmartRef__":true,"id":17548},"_Extent":{"__isSmartRef__":true,"id":17549},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17547":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17548":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17549":{"x":110,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17550":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17551":{"style":{"__isSmartRef__":true,"id":17552},"chunkOwner":{"__isSmartRef__":true,"id":17545},"storedString":"derivationIds","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17552":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17553":{"style":{"__isSmartRef__":true,"id":17554},"chunkOwner":{"__isSmartRef__":true,"id":17545},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17554":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17555":{"morph":{"__isSmartRef__":true,"id":17545},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17556":{"x":150,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17557":{"layoutText":{"__isSmartRef__":true,"id":17558}},"17558":{"varMapping":{"__isSmartRef__":true,"id":17559},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17559":{"this":{"__isSmartRef__":true,"id":17545}},"17560":{},"17561":{"_Position":{"__isSmartRef__":true,"id":17562},"renderContextTable":{"__isSmartRef__":true,"id":17563},"_Extent":{"__isSmartRef__":true,"id":17564},"_Padding":{"__isSmartRef__":true,"id":17565},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17562":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17563":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17564":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17565":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17566":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17567":{"morph":{"__isSmartRef__":true,"id":17527},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17568":{"resizeWidth":true},"17569":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17570":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17571":{"updateExpanderColor":{"__isSmartRef__":true,"id":17572},"onMouseDown":{"__isSmartRef__":true,"id":17575},"isRoot":{"__isSmartRef__":true,"id":17582},"displayValue":{"__isSmartRef__":true,"id":17585},"update":{"__isSmartRef__":true,"id":17588}},"17572":{"varMapping":{"__isSmartRef__":true,"id":17573},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17574},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17573":{"this":{"__isSmartRef__":true,"id":17527}},"17574":{},"17575":{"varMapping":{"__isSmartRef__":true,"id":17576},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17581},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17576":{"this":{"__isSmartRef__":true,"id":17527},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17577}},"17577":{"$super":{"__isSmartRef__":true,"id":17578}},"17578":{"varMapping":{"__isSmartRef__":true,"id":17579},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17580},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17579":{"obj":{"__isSmartRef__":true,"id":17527},"name":"onMouseDown"},"17580":{},"17581":{},"17582":{"varMapping":{"__isSmartRef__":true,"id":17583},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17584},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17583":{"this":{"__isSmartRef__":true,"id":17527}},"17584":{},"17585":{"varMapping":{"__isSmartRef__":true,"id":17586},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17586":{"this":{"__isSmartRef__":true,"id":17527}},"17587":{},"17588":{"varMapping":{"__isSmartRef__":true,"id":17589},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17589":{"this":{"__isSmartRef__":true,"id":17527}},"17590":{},"17591":{"_Position":{"__isSmartRef__":true,"id":17592},"renderContextTable":{"__isSmartRef__":true,"id":17593},"_Extent":{"__isSmartRef__":true,"id":17594},"_Padding":{"__isSmartRef__":true,"id":17595},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17592":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17593":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17594":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17595":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17596":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17597":{"morph":{"__isSmartRef__":true,"id":17526},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17598":{"layouter":{"__isSmartRef__":true,"id":17599},"resizeWidth":true},"17599":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17526},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17600":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17601":{"x":0,"y":600,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17602":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17603}},"17603":{"varMapping":{"__isSmartRef__":true,"id":17604},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17604":{"this":{"__isSmartRef__":true,"id":17526},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17605}},"17605":{"$super":{"__isSmartRef__":true,"id":17606}},"17606":{"varMapping":{"__isSmartRef__":true,"id":17607},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17607":{"obj":{"__isSmartRef__":true,"id":17526},"name":"getLayoutableSubmorphs"},"17608":{},"17609":{},"17610":{"submorphs":[{"__isSmartRef__":true,"id":17611}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17675},"derivationIds":[null],"id":"EAB6325C-4160-460D-B6DF-8DDB6FBB0821","renderContextTable":{"__isSmartRef__":true,"id":17680},"eventHandler":{"__isSmartRef__":true,"id":17681},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17682},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17684},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17685},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17686},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17611":{"submorphs":[{"__isSmartRef__":true,"id":17612},{"__isSmartRef__":true,"id":17629}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17645},"derivationIds":[null],"id":"9532897D-D03F-4B66-BB6D-2BD8EE864814","renderContextTable":{"__isSmartRef__":true,"id":17650},"eventHandler":{"__isSmartRef__":true,"id":17651},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17652},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":16010},"propertyList":["left","up","right","down"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"directions","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17612},"text":{"__isSmartRef__":true,"id":17629},"owner":{"__isSmartRef__":true,"id":17610},"_Position":{"__isSmartRef__":true,"id":17653},"priorExtent":{"__isSmartRef__":true,"id":17654},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17655},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17612":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17613},"derivationIds":[null],"id":"4CD3123F-E9D2-4497-8F22-E2D93B5B9153","renderContextTable":{"__isSmartRef__":true,"id":17619},"eventHandler":{"__isSmartRef__":true,"id":17620},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17621},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17611},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17622},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17613":{"_Position":{"__isSmartRef__":true,"id":17614},"renderContextTable":{"__isSmartRef__":true,"id":17615},"_Extent":{"__isSmartRef__":true,"id":17616},"_Padding":{"__isSmartRef__":true,"id":17617},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17618},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17614":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17615":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17616":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17617":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17618":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17619":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17620":{"morph":{"__isSmartRef__":true,"id":17612},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17621":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17622":{"toggle":{"__isSmartRef__":true,"id":17623},"toggleExpansion":{"__isSmartRef__":true,"id":17626}},"17623":{"varMapping":{"__isSmartRef__":true,"id":17624},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17624":{"this":{"__isSmartRef__":true,"id":17612}},"17625":{},"17626":{"varMapping":{"__isSmartRef__":true,"id":17627},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17628},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17627":{"this":{"__isSmartRef__":true,"id":17612}},"17628":{},"17629":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17630},"derivationIds":[null],"id":"B23FA20E-5C5E-4581-8507-E3110C6E1360","renderContextTable":{"__isSmartRef__":true,"id":17634},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17635},{"__isSmartRef__":true,"id":17637}],"eventHandler":{"__isSmartRef__":true,"id":17639},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17640},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17611},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17641},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17630":{"_Position":{"__isSmartRef__":true,"id":17631},"renderContextTable":{"__isSmartRef__":true,"id":17632},"_Extent":{"__isSmartRef__":true,"id":17633},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17631":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17632":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17633":{"x":92,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17634":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17635":{"style":{"__isSmartRef__":true,"id":17636},"chunkOwner":{"__isSmartRef__":true,"id":17629},"storedString":"directions","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17636":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17637":{"style":{"__isSmartRef__":true,"id":17638},"chunkOwner":{"__isSmartRef__":true,"id":17629},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17638":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17639":{"morph":{"__isSmartRef__":true,"id":17629},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17640":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17641":{"layoutText":{"__isSmartRef__":true,"id":17642}},"17642":{"varMapping":{"__isSmartRef__":true,"id":17643},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17643":{"this":{"__isSmartRef__":true,"id":17629}},"17644":{},"17645":{"_Position":{"__isSmartRef__":true,"id":17646},"renderContextTable":{"__isSmartRef__":true,"id":17647},"_Extent":{"__isSmartRef__":true,"id":17648},"_Padding":{"__isSmartRef__":true,"id":17649},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17646":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17647":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17648":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17649":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17650":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17651":{"morph":{"__isSmartRef__":true,"id":17611},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17652":{"resizeWidth":true},"17653":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17654":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17655":{"updateExpanderColor":{"__isSmartRef__":true,"id":17656},"onMouseDown":{"__isSmartRef__":true,"id":17659},"isRoot":{"__isSmartRef__":true,"id":17666},"displayValue":{"__isSmartRef__":true,"id":17669},"update":{"__isSmartRef__":true,"id":17672}},"17656":{"varMapping":{"__isSmartRef__":true,"id":17657},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17658},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17657":{"this":{"__isSmartRef__":true,"id":17611}},"17658":{},"17659":{"varMapping":{"__isSmartRef__":true,"id":17660},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17665},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17660":{"this":{"__isSmartRef__":true,"id":17611},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17661}},"17661":{"$super":{"__isSmartRef__":true,"id":17662}},"17662":{"varMapping":{"__isSmartRef__":true,"id":17663},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17664},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17663":{"obj":{"__isSmartRef__":true,"id":17611},"name":"onMouseDown"},"17664":{},"17665":{},"17666":{"varMapping":{"__isSmartRef__":true,"id":17667},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17668},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17667":{"this":{"__isSmartRef__":true,"id":17611}},"17668":{},"17669":{"varMapping":{"__isSmartRef__":true,"id":17670},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17671},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17670":{"this":{"__isSmartRef__":true,"id":17611}},"17671":{},"17672":{"varMapping":{"__isSmartRef__":true,"id":17673},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17673":{"this":{"__isSmartRef__":true,"id":17611}},"17674":{},"17675":{"_Position":{"__isSmartRef__":true,"id":17676},"renderContextTable":{"__isSmartRef__":true,"id":17677},"_Extent":{"__isSmartRef__":true,"id":17678},"_Padding":{"__isSmartRef__":true,"id":17679},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17676":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17677":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17678":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17679":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17680":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17681":{"morph":{"__isSmartRef__":true,"id":17610},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17682":{"layouter":{"__isSmartRef__":true,"id":17683},"resizeWidth":true},"17683":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17610},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17684":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17685":{"x":0,"y":580,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17686":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17687}},"17687":{"varMapping":{"__isSmartRef__":true,"id":17688},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17693},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17688":{"this":{"__isSmartRef__":true,"id":17610},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17689}},"17689":{"$super":{"__isSmartRef__":true,"id":17690}},"17690":{"varMapping":{"__isSmartRef__":true,"id":17691},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17692},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17691":{"obj":{"__isSmartRef__":true,"id":17610},"name":"getLayoutableSubmorphs"},"17692":{},"17693":{},"17694":{"submorphs":[{"__isSmartRef__":true,"id":17695}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17759},"derivationIds":[null],"id":"0278C384-93D5-4F91-AD60-C988A5AD87EB","renderContextTable":{"__isSmartRef__":true,"id":17764},"eventHandler":{"__isSmartRef__":true,"id":17765},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17766},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17768},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17769},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17770},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17695":{"submorphs":[{"__isSmartRef__":true,"id":17696},{"__isSmartRef__":true,"id":17713}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17729},"derivationIds":[null],"id":"EE3A04EE-7E5D-4531-AA8E-9F3AC1385DEB","renderContextTable":{"__isSmartRef__":true,"id":17734},"eventHandler":{"__isSmartRef__":true,"id":17735},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17736},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"doNotCopyProperties","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17696},"text":{"__isSmartRef__":true,"id":17713},"owner":{"__isSmartRef__":true,"id":17694},"_Position":{"__isSmartRef__":true,"id":17737},"priorExtent":{"__isSmartRef__":true,"id":17738},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17739},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17696":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17697},"derivationIds":[null],"id":"BBBF8D72-0A76-4D96-84DF-C4E0CCD846CF","renderContextTable":{"__isSmartRef__":true,"id":17703},"eventHandler":{"__isSmartRef__":true,"id":17704},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17705},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17695},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17706},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17697":{"_Position":{"__isSmartRef__":true,"id":17698},"renderContextTable":{"__isSmartRef__":true,"id":17699},"_Extent":{"__isSmartRef__":true,"id":17700},"_Padding":{"__isSmartRef__":true,"id":17701},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17702},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17698":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17699":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17700":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17701":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17702":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17703":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17704":{"morph":{"__isSmartRef__":true,"id":17696},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17705":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17706":{"toggle":{"__isSmartRef__":true,"id":17707},"toggleExpansion":{"__isSmartRef__":true,"id":17710}},"17707":{"varMapping":{"__isSmartRef__":true,"id":17708},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17708":{"this":{"__isSmartRef__":true,"id":17696}},"17709":{},"17710":{"varMapping":{"__isSmartRef__":true,"id":17711},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17712},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17711":{"this":{"__isSmartRef__":true,"id":17696}},"17712":{},"17713":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17714},"derivationIds":[null],"id":"52773F26-81FC-472F-9B6C-EE2867FB8EDC","renderContextTable":{"__isSmartRef__":true,"id":17718},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17719},{"__isSmartRef__":true,"id":17721}],"eventHandler":{"__isSmartRef__":true,"id":17723},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17724},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17695},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17725},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17714":{"_Position":{"__isSmartRef__":true,"id":17715},"renderContextTable":{"__isSmartRef__":true,"id":17716},"_Extent":{"__isSmartRef__":true,"id":17717},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17715":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17716":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17717":{"x":147,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17718":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17719":{"style":{"__isSmartRef__":true,"id":17720},"chunkOwner":{"__isSmartRef__":true,"id":17713},"storedString":"doNotCopyProperties","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17720":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17721":{"style":{"__isSmartRef__":true,"id":17722},"chunkOwner":{"__isSmartRef__":true,"id":17713},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17722":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17723":{"morph":{"__isSmartRef__":true,"id":17713},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17724":{"x":172.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17725":{"layoutText":{"__isSmartRef__":true,"id":17726}},"17726":{"varMapping":{"__isSmartRef__":true,"id":17727},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17727":{"this":{"__isSmartRef__":true,"id":17713}},"17728":{},"17729":{"_Position":{"__isSmartRef__":true,"id":17730},"renderContextTable":{"__isSmartRef__":true,"id":17731},"_Extent":{"__isSmartRef__":true,"id":17732},"_Padding":{"__isSmartRef__":true,"id":17733},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17730":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17731":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17732":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17733":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17734":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17735":{"morph":{"__isSmartRef__":true,"id":17695},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17736":{"resizeWidth":true},"17737":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17738":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17739":{"updateExpanderColor":{"__isSmartRef__":true,"id":17740},"onMouseDown":{"__isSmartRef__":true,"id":17743},"isRoot":{"__isSmartRef__":true,"id":17750},"displayValue":{"__isSmartRef__":true,"id":17753},"update":{"__isSmartRef__":true,"id":17756}},"17740":{"varMapping":{"__isSmartRef__":true,"id":17741},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17741":{"this":{"__isSmartRef__":true,"id":17695}},"17742":{},"17743":{"varMapping":{"__isSmartRef__":true,"id":17744},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17749},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17744":{"this":{"__isSmartRef__":true,"id":17695},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17745}},"17745":{"$super":{"__isSmartRef__":true,"id":17746}},"17746":{"varMapping":{"__isSmartRef__":true,"id":17747},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17748},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17747":{"obj":{"__isSmartRef__":true,"id":17695},"name":"onMouseDown"},"17748":{},"17749":{},"17750":{"varMapping":{"__isSmartRef__":true,"id":17751},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17752},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17751":{"this":{"__isSmartRef__":true,"id":17695}},"17752":{},"17753":{"varMapping":{"__isSmartRef__":true,"id":17754},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17754":{"this":{"__isSmartRef__":true,"id":17695}},"17755":{},"17756":{"varMapping":{"__isSmartRef__":true,"id":17757},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17757":{"this":{"__isSmartRef__":true,"id":17695}},"17758":{},"17759":{"_Position":{"__isSmartRef__":true,"id":17760},"renderContextTable":{"__isSmartRef__":true,"id":17761},"_Extent":{"__isSmartRef__":true,"id":17762},"_Padding":{"__isSmartRef__":true,"id":17763},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17760":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17761":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17762":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17763":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17764":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17765":{"morph":{"__isSmartRef__":true,"id":17694},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17766":{"layouter":{"__isSmartRef__":true,"id":17767},"resizeWidth":true},"17767":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17694},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17768":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17769":{"x":0,"y":560,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17770":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17771}},"17771":{"varMapping":{"__isSmartRef__":true,"id":17772},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17777},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17772":{"this":{"__isSmartRef__":true,"id":17694},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17773}},"17773":{"$super":{"__isSmartRef__":true,"id":17774}},"17774":{"varMapping":{"__isSmartRef__":true,"id":17775},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17776},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17775":{"obj":{"__isSmartRef__":true,"id":17694},"name":"getLayoutableSubmorphs"},"17776":{},"17777":{},"17778":{"submorphs":[{"__isSmartRef__":true,"id":17779}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17843},"derivationIds":[null],"id":"01EF88EB-5366-4827-A4E7-399B45AB78BE","renderContextTable":{"__isSmartRef__":true,"id":17848},"eventHandler":{"__isSmartRef__":true,"id":17849},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17850},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17852},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17853},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17854},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17779":{"submorphs":[{"__isSmartRef__":true,"id":17780},{"__isSmartRef__":true,"id":17797}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17813},"derivationIds":[null],"id":"93A93C50-B782-4655-8D62-A50273631C00","renderContextTable":{"__isSmartRef__":true,"id":17818},"eventHandler":{"__isSmartRef__":true,"id":17819},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17820},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"doNotSerialize","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17780},"text":{"__isSmartRef__":true,"id":17797},"owner":{"__isSmartRef__":true,"id":17778},"_Position":{"__isSmartRef__":true,"id":17821},"priorExtent":{"__isSmartRef__":true,"id":17822},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17823},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17780":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17781},"derivationIds":[null],"id":"54467EFA-BD90-4BE7-A5F8-C9D895FA7CDF","renderContextTable":{"__isSmartRef__":true,"id":17787},"eventHandler":{"__isSmartRef__":true,"id":17788},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17789},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17779},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17790},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17781":{"_Position":{"__isSmartRef__":true,"id":17782},"renderContextTable":{"__isSmartRef__":true,"id":17783},"_Extent":{"__isSmartRef__":true,"id":17784},"_Padding":{"__isSmartRef__":true,"id":17785},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17786},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17782":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17783":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17784":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17785":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17786":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17787":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17788":{"morph":{"__isSmartRef__":true,"id":17780},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17789":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17790":{"toggle":{"__isSmartRef__":true,"id":17791},"toggleExpansion":{"__isSmartRef__":true,"id":17794}},"17791":{"varMapping":{"__isSmartRef__":true,"id":17792},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17792":{"this":{"__isSmartRef__":true,"id":17780}},"17793":{},"17794":{"varMapping":{"__isSmartRef__":true,"id":17795},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17796},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17795":{"this":{"__isSmartRef__":true,"id":17780}},"17796":{},"17797":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17798},"derivationIds":[null],"id":"B0EEED95-5A7D-4963-A787-410829C03C86","renderContextTable":{"__isSmartRef__":true,"id":17802},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17803},{"__isSmartRef__":true,"id":17805}],"eventHandler":{"__isSmartRef__":true,"id":17807},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17808},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17779},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17809},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17798":{"_Position":{"__isSmartRef__":true,"id":17799},"renderContextTable":{"__isSmartRef__":true,"id":17800},"_Extent":{"__isSmartRef__":true,"id":17801},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17799":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17800":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17801":{"x":108,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17802":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17803":{"style":{"__isSmartRef__":true,"id":17804},"chunkOwner":{"__isSmartRef__":true,"id":17797},"storedString":"doNotSerialize","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17804":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17805":{"style":{"__isSmartRef__":true,"id":17806},"chunkOwner":{"__isSmartRef__":true,"id":17797},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17806":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17807":{"morph":{"__isSmartRef__":true,"id":17797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17808":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17809":{"layoutText":{"__isSmartRef__":true,"id":17810}},"17810":{"varMapping":{"__isSmartRef__":true,"id":17811},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17811":{"this":{"__isSmartRef__":true,"id":17797}},"17812":{},"17813":{"_Position":{"__isSmartRef__":true,"id":17814},"renderContextTable":{"__isSmartRef__":true,"id":17815},"_Extent":{"__isSmartRef__":true,"id":17816},"_Padding":{"__isSmartRef__":true,"id":17817},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17814":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17816":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17817":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17818":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17819":{"morph":{"__isSmartRef__":true,"id":17779},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17820":{"resizeWidth":true},"17821":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17822":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17823":{"updateExpanderColor":{"__isSmartRef__":true,"id":17824},"onMouseDown":{"__isSmartRef__":true,"id":17827},"isRoot":{"__isSmartRef__":true,"id":17834},"displayValue":{"__isSmartRef__":true,"id":17837},"update":{"__isSmartRef__":true,"id":17840}},"17824":{"varMapping":{"__isSmartRef__":true,"id":17825},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17826},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17825":{"this":{"__isSmartRef__":true,"id":17779}},"17826":{},"17827":{"varMapping":{"__isSmartRef__":true,"id":17828},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17833},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17828":{"this":{"__isSmartRef__":true,"id":17779},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17829}},"17829":{"$super":{"__isSmartRef__":true,"id":17830}},"17830":{"varMapping":{"__isSmartRef__":true,"id":17831},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17832},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17831":{"obj":{"__isSmartRef__":true,"id":17779},"name":"onMouseDown"},"17832":{},"17833":{},"17834":{"varMapping":{"__isSmartRef__":true,"id":17835},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17836},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17835":{"this":{"__isSmartRef__":true,"id":17779}},"17836":{},"17837":{"varMapping":{"__isSmartRef__":true,"id":17838},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17838":{"this":{"__isSmartRef__":true,"id":17779}},"17839":{},"17840":{"varMapping":{"__isSmartRef__":true,"id":17841},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17841":{"this":{"__isSmartRef__":true,"id":17779}},"17842":{},"17843":{"_Position":{"__isSmartRef__":true,"id":17844},"renderContextTable":{"__isSmartRef__":true,"id":17845},"_Extent":{"__isSmartRef__":true,"id":17846},"_Padding":{"__isSmartRef__":true,"id":17847},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17844":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17845":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17846":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17847":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17848":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17849":{"morph":{"__isSmartRef__":true,"id":17778},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17850":{"layouter":{"__isSmartRef__":true,"id":17851},"resizeWidth":true},"17851":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17778},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17852":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17853":{"x":0,"y":540,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17854":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17855}},"17855":{"varMapping":{"__isSmartRef__":true,"id":17856},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17861},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17856":{"this":{"__isSmartRef__":true,"id":17778},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17857}},"17857":{"$super":{"__isSmartRef__":true,"id":17858}},"17858":{"varMapping":{"__isSmartRef__":true,"id":17859},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17860},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17859":{"obj":{"__isSmartRef__":true,"id":17778},"name":"getLayoutableSubmorphs"},"17860":{},"17861":{},"17862":{"submorphs":[{"__isSmartRef__":true,"id":17863}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17927},"derivationIds":[null],"id":"3AFCE43F-8D58-4419-939F-E4F5CBC254E9","renderContextTable":{"__isSmartRef__":true,"id":17932},"eventHandler":{"__isSmartRef__":true,"id":17933},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17934},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":17936},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":17937},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17938},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17863":{"submorphs":[{"__isSmartRef__":true,"id":17864},{"__isSmartRef__":true,"id":17881}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17897},"derivationIds":[null],"id":"AF284CF4-A2C0-49F9-966B-C3B9975B2437","renderContextTable":{"__isSmartRef__":true,"id":17902},"eventHandler":{"__isSmartRef__":true,"id":17903},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17904},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"draggingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17864},"text":{"__isSmartRef__":true,"id":17881},"owner":{"__isSmartRef__":true,"id":17862},"_Position":{"__isSmartRef__":true,"id":17905},"priorExtent":{"__isSmartRef__":true,"id":17906},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17907},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17864":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17865},"derivationIds":[null],"id":"82D76F59-D7F2-458D-847B-74D9DFD5B09B","renderContextTable":{"__isSmartRef__":true,"id":17871},"eventHandler":{"__isSmartRef__":true,"id":17872},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17873},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17863},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17874},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17865":{"_Position":{"__isSmartRef__":true,"id":17866},"renderContextTable":{"__isSmartRef__":true,"id":17867},"_Extent":{"__isSmartRef__":true,"id":17868},"_Padding":{"__isSmartRef__":true,"id":17869},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17870},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17866":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17867":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17868":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17869":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17870":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17871":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17872":{"morph":{"__isSmartRef__":true,"id":17864},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17873":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17874":{"toggle":{"__isSmartRef__":true,"id":17875},"toggleExpansion":{"__isSmartRef__":true,"id":17878}},"17875":{"varMapping":{"__isSmartRef__":true,"id":17876},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17876":{"this":{"__isSmartRef__":true,"id":17864}},"17877":{},"17878":{"varMapping":{"__isSmartRef__":true,"id":17879},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17880},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17879":{"this":{"__isSmartRef__":true,"id":17864}},"17880":{},"17881":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17882},"derivationIds":[null],"id":"1E498CCB-3C14-43DB-936A-967BD6288FFC","renderContextTable":{"__isSmartRef__":true,"id":17886},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17887},{"__isSmartRef__":true,"id":17889}],"eventHandler":{"__isSmartRef__":true,"id":17891},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17892},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17863},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17893},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17882":{"_Position":{"__isSmartRef__":true,"id":17883},"renderContextTable":{"__isSmartRef__":true,"id":17884},"_Extent":{"__isSmartRef__":true,"id":17885},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17883":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17884":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17885":{"x":140,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17886":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17887":{"style":{"__isSmartRef__":true,"id":17888},"chunkOwner":{"__isSmartRef__":true,"id":17881},"storedString":"draggingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17888":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17889":{"style":{"__isSmartRef__":true,"id":17890},"chunkOwner":{"__isSmartRef__":true,"id":17881},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17890":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17891":{"morph":{"__isSmartRef__":true,"id":17881},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17892":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17893":{"layoutText":{"__isSmartRef__":true,"id":17894}},"17894":{"varMapping":{"__isSmartRef__":true,"id":17895},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17895":{"this":{"__isSmartRef__":true,"id":17881}},"17896":{},"17897":{"_Position":{"__isSmartRef__":true,"id":17898},"renderContextTable":{"__isSmartRef__":true,"id":17899},"_Extent":{"__isSmartRef__":true,"id":17900},"_Padding":{"__isSmartRef__":true,"id":17901},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17898":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17899":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17900":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17901":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17902":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17903":{"morph":{"__isSmartRef__":true,"id":17863},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17904":{"resizeWidth":true},"17905":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17906":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17907":{"updateExpanderColor":{"__isSmartRef__":true,"id":17908},"onMouseDown":{"__isSmartRef__":true,"id":17911},"isRoot":{"__isSmartRef__":true,"id":17918},"displayValue":{"__isSmartRef__":true,"id":17921},"update":{"__isSmartRef__":true,"id":17924}},"17908":{"varMapping":{"__isSmartRef__":true,"id":17909},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17910},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17909":{"this":{"__isSmartRef__":true,"id":17863}},"17910":{},"17911":{"varMapping":{"__isSmartRef__":true,"id":17912},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":17917},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17912":{"this":{"__isSmartRef__":true,"id":17863},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17913}},"17913":{"$super":{"__isSmartRef__":true,"id":17914}},"17914":{"varMapping":{"__isSmartRef__":true,"id":17915},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17916},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17915":{"obj":{"__isSmartRef__":true,"id":17863},"name":"onMouseDown"},"17916":{},"17917":{},"17918":{"varMapping":{"__isSmartRef__":true,"id":17919},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":17920},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17919":{"this":{"__isSmartRef__":true,"id":17863}},"17920":{},"17921":{"varMapping":{"__isSmartRef__":true,"id":17922},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":17923},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17922":{"this":{"__isSmartRef__":true,"id":17863}},"17923":{},"17924":{"varMapping":{"__isSmartRef__":true,"id":17925},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17925":{"this":{"__isSmartRef__":true,"id":17863}},"17926":{},"17927":{"_Position":{"__isSmartRef__":true,"id":17928},"renderContextTable":{"__isSmartRef__":true,"id":17929},"_Extent":{"__isSmartRef__":true,"id":17930},"_Padding":{"__isSmartRef__":true,"id":17931},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17928":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17929":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17930":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17931":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17932":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17933":{"morph":{"__isSmartRef__":true,"id":17862},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17934":{"layouter":{"__isSmartRef__":true,"id":17935},"resizeWidth":true},"17935":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17862},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"17936":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17937":{"x":0,"y":520,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17938":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":17939}},"17939":{"varMapping":{"__isSmartRef__":true,"id":17940},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":17945},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17940":{"this":{"__isSmartRef__":true,"id":17862},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17941}},"17941":{"$super":{"__isSmartRef__":true,"id":17942}},"17942":{"varMapping":{"__isSmartRef__":true,"id":17943},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":17944},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17943":{"obj":{"__isSmartRef__":true,"id":17862},"name":"getLayoutableSubmorphs"},"17944":{},"17945":{},"17946":{"submorphs":[{"__isSmartRef__":true,"id":17947}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18011},"derivationIds":[null],"id":"3BB785E6-BE2D-4F99-AB03-531428CD0976","renderContextTable":{"__isSmartRef__":true,"id":18016},"eventHandler":{"__isSmartRef__":true,"id":18017},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18018},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18020},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18021},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18022},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17947":{"submorphs":[{"__isSmartRef__":true,"id":17948},{"__isSmartRef__":true,"id":17965}],"scripts":[],"shape":{"__isSmartRef__":true,"id":17981},"derivationIds":[null],"id":"02498790-BC24-425B-A959-499CE62B9EFD","renderContextTable":{"__isSmartRef__":true,"id":17986},"eventHandler":{"__isSmartRef__":true,"id":17987},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":17988},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"droppingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":17948},"text":{"__isSmartRef__":true,"id":17965},"owner":{"__isSmartRef__":true,"id":17946},"_Position":{"__isSmartRef__":true,"id":17989},"priorExtent":{"__isSmartRef__":true,"id":17990},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17991},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"17948":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17949},"derivationIds":[null],"id":"A3D3AF66-3EFF-4106-8AAA-5100F80EA6A4","renderContextTable":{"__isSmartRef__":true,"id":17955},"eventHandler":{"__isSmartRef__":true,"id":17956},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":17957},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":17947},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17958},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"17949":{"_Position":{"__isSmartRef__":true,"id":17950},"renderContextTable":{"__isSmartRef__":true,"id":17951},"_Extent":{"__isSmartRef__":true,"id":17952},"_Padding":{"__isSmartRef__":true,"id":17953},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":17954},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17950":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17951":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17952":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17953":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17954":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17955":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17956":{"morph":{"__isSmartRef__":true,"id":17948},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17957":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17958":{"toggle":{"__isSmartRef__":true,"id":17959},"toggleExpansion":{"__isSmartRef__":true,"id":17962}},"17959":{"varMapping":{"__isSmartRef__":true,"id":17960},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":17961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17960":{"this":{"__isSmartRef__":true,"id":17948}},"17961":{},"17962":{"varMapping":{"__isSmartRef__":true,"id":17963},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":17964},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17963":{"this":{"__isSmartRef__":true,"id":17948}},"17964":{},"17965":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":17966},"derivationIds":[null],"id":"FB38BCF8-D1E3-4DBE-AF91-F2D5ACCC01C3","renderContextTable":{"__isSmartRef__":true,"id":17970},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":17971},{"__isSmartRef__":true,"id":17973}],"eventHandler":{"__isSmartRef__":true,"id":17975},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":17976},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":17947},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17977},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17966":{"_Position":{"__isSmartRef__":true,"id":17967},"renderContextTable":{"__isSmartRef__":true,"id":17968},"_Extent":{"__isSmartRef__":true,"id":17969},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17967":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17968":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17969":{"x":140,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17970":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"17971":{"style":{"__isSmartRef__":true,"id":17972},"chunkOwner":{"__isSmartRef__":true,"id":17965},"storedString":"droppingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17972":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17973":{"style":{"__isSmartRef__":true,"id":17974},"chunkOwner":{"__isSmartRef__":true,"id":17965},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17974":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"17975":{"morph":{"__isSmartRef__":true,"id":17965},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17976":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17977":{"layoutText":{"__isSmartRef__":true,"id":17978}},"17978":{"varMapping":{"__isSmartRef__":true,"id":17979},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":17980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17979":{"this":{"__isSmartRef__":true,"id":17965}},"17980":{},"17981":{"_Position":{"__isSmartRef__":true,"id":17982},"renderContextTable":{"__isSmartRef__":true,"id":17983},"_Extent":{"__isSmartRef__":true,"id":17984},"_Padding":{"__isSmartRef__":true,"id":17985},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"17982":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17983":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"17984":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17985":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17986":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"17987":{"morph":{"__isSmartRef__":true,"id":17947},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"17988":{"resizeWidth":true},"17989":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17990":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"17991":{"updateExpanderColor":{"__isSmartRef__":true,"id":17992},"onMouseDown":{"__isSmartRef__":true,"id":17995},"isRoot":{"__isSmartRef__":true,"id":18002},"displayValue":{"__isSmartRef__":true,"id":18005},"update":{"__isSmartRef__":true,"id":18008}},"17992":{"varMapping":{"__isSmartRef__":true,"id":17993},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":17994},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17993":{"this":{"__isSmartRef__":true,"id":17947}},"17994":{},"17995":{"varMapping":{"__isSmartRef__":true,"id":17996},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18001},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17996":{"this":{"__isSmartRef__":true,"id":17947},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":17997}},"17997":{"$super":{"__isSmartRef__":true,"id":17998}},"17998":{"varMapping":{"__isSmartRef__":true,"id":17999},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18000},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"17999":{"obj":{"__isSmartRef__":true,"id":17947},"name":"onMouseDown"},"18000":{},"18001":{},"18002":{"varMapping":{"__isSmartRef__":true,"id":18003},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18004},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18003":{"this":{"__isSmartRef__":true,"id":17947}},"18004":{},"18005":{"varMapping":{"__isSmartRef__":true,"id":18006},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18007},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18006":{"this":{"__isSmartRef__":true,"id":17947}},"18007":{},"18008":{"varMapping":{"__isSmartRef__":true,"id":18009},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18009":{"this":{"__isSmartRef__":true,"id":17947}},"18010":{},"18011":{"_Position":{"__isSmartRef__":true,"id":18012},"renderContextTable":{"__isSmartRef__":true,"id":18013},"_Extent":{"__isSmartRef__":true,"id":18014},"_Padding":{"__isSmartRef__":true,"id":18015},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18012":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18013":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18014":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18015":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18016":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18017":{"morph":{"__isSmartRef__":true,"id":17946},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18018":{"layouter":{"__isSmartRef__":true,"id":18019},"resizeWidth":true},"18019":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":17946},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18020":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18021":{"x":0,"y":500,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18022":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18023}},"18023":{"varMapping":{"__isSmartRef__":true,"id":18024},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18029},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18024":{"this":{"__isSmartRef__":true,"id":17946},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18025}},"18025":{"$super":{"__isSmartRef__":true,"id":18026}},"18026":{"varMapping":{"__isSmartRef__":true,"id":18027},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18028},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18027":{"obj":{"__isSmartRef__":true,"id":17946},"name":"getLayoutableSubmorphs"},"18028":{},"18029":{},"18030":{"submorphs":[{"__isSmartRef__":true,"id":18031}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18095},"derivationIds":[null],"id":"19183568-8499-4451-8502-E2553C248756","renderContextTable":{"__isSmartRef__":true,"id":18100},"eventHandler":{"__isSmartRef__":true,"id":18101},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18102},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18104},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18105},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18106},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18031":{"submorphs":[{"__isSmartRef__":true,"id":18032},{"__isSmartRef__":true,"id":18049}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18065},"derivationIds":[null],"id":"89CAC3CC-5408-4A29-A42E-8484878E892F","renderContextTable":{"__isSmartRef__":true,"id":18070},"eventHandler":{"__isSmartRef__":true,"id":18071},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18072},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":16003},"propertyList":["morph","__SourceModuleName__","dispatchTable"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"eventHandler","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18032},"text":{"__isSmartRef__":true,"id":18049},"owner":{"__isSmartRef__":true,"id":18030},"_Position":{"__isSmartRef__":true,"id":18073},"priorExtent":{"__isSmartRef__":true,"id":18074},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18075},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18032":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18033},"derivationIds":[null],"id":"F42365B9-3024-432D-8847-A3CEC5C0A631","renderContextTable":{"__isSmartRef__":true,"id":18039},"eventHandler":{"__isSmartRef__":true,"id":18040},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18041},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18031},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18042},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18033":{"_Position":{"__isSmartRef__":true,"id":18034},"renderContextTable":{"__isSmartRef__":true,"id":18035},"_Extent":{"__isSmartRef__":true,"id":18036},"_Padding":{"__isSmartRef__":true,"id":18037},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18038},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18034":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18035":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18036":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18037":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18038":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18039":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18040":{"morph":{"__isSmartRef__":true,"id":18032},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18041":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18042":{"toggle":{"__isSmartRef__":true,"id":18043},"toggleExpansion":{"__isSmartRef__":true,"id":18046}},"18043":{"varMapping":{"__isSmartRef__":true,"id":18044},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18044":{"this":{"__isSmartRef__":true,"id":18032}},"18045":{},"18046":{"varMapping":{"__isSmartRef__":true,"id":18047},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18048},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18047":{"this":{"__isSmartRef__":true,"id":18032}},"18048":{},"18049":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18050},"derivationIds":[null],"id":"15DF880D-FA87-4DC2-8C97-9F41CBDC1432","renderContextTable":{"__isSmartRef__":true,"id":18054},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18055},{"__isSmartRef__":true,"id":18057}],"eventHandler":{"__isSmartRef__":true,"id":18059},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18060},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18031},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18061},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18050":{"_Position":{"__isSmartRef__":true,"id":18051},"renderContextTable":{"__isSmartRef__":true,"id":18052},"_Extent":{"__isSmartRef__":true,"id":18053},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18051":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18052":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18053":{"x":170,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18054":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18055":{"style":{"__isSmartRef__":true,"id":18056},"chunkOwner":{"__isSmartRef__":true,"id":18049},"storedString":"eventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18056":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18057":{"style":{"__isSmartRef__":true,"id":18058},"chunkOwner":{"__isSmartRef__":true,"id":18049},"storedString":": EventHandler","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18058":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18059":{"morph":{"__isSmartRef__":true,"id":18049},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18060":{"x":195,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18061":{"layoutText":{"__isSmartRef__":true,"id":18062}},"18062":{"varMapping":{"__isSmartRef__":true,"id":18063},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18063":{"this":{"__isSmartRef__":true,"id":18049}},"18064":{},"18065":{"_Position":{"__isSmartRef__":true,"id":18066},"renderContextTable":{"__isSmartRef__":true,"id":18067},"_Extent":{"__isSmartRef__":true,"id":18068},"_Padding":{"__isSmartRef__":true,"id":18069},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18066":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18067":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18068":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18069":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18070":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18071":{"morph":{"__isSmartRef__":true,"id":18031},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18072":{"resizeWidth":true},"18073":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18074":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18075":{"updateExpanderColor":{"__isSmartRef__":true,"id":18076},"onMouseDown":{"__isSmartRef__":true,"id":18079},"isRoot":{"__isSmartRef__":true,"id":18086},"displayValue":{"__isSmartRef__":true,"id":18089},"update":{"__isSmartRef__":true,"id":18092}},"18076":{"varMapping":{"__isSmartRef__":true,"id":18077},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18078},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18077":{"this":{"__isSmartRef__":true,"id":18031}},"18078":{},"18079":{"varMapping":{"__isSmartRef__":true,"id":18080},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18085},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18080":{"this":{"__isSmartRef__":true,"id":18031},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18081}},"18081":{"$super":{"__isSmartRef__":true,"id":18082}},"18082":{"varMapping":{"__isSmartRef__":true,"id":18083},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18084},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18083":{"obj":{"__isSmartRef__":true,"id":18031},"name":"onMouseDown"},"18084":{},"18085":{},"18086":{"varMapping":{"__isSmartRef__":true,"id":18087},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18087":{"this":{"__isSmartRef__":true,"id":18031}},"18088":{},"18089":{"varMapping":{"__isSmartRef__":true,"id":18090},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18090":{"this":{"__isSmartRef__":true,"id":18031}},"18091":{},"18092":{"varMapping":{"__isSmartRef__":true,"id":18093},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18093":{"this":{"__isSmartRef__":true,"id":18031}},"18094":{},"18095":{"_Position":{"__isSmartRef__":true,"id":18096},"renderContextTable":{"__isSmartRef__":true,"id":18097},"_Extent":{"__isSmartRef__":true,"id":18098},"_Padding":{"__isSmartRef__":true,"id":18099},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18096":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18097":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18098":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18099":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18100":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18101":{"morph":{"__isSmartRef__":true,"id":18030},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18102":{"layouter":{"__isSmartRef__":true,"id":18103},"resizeWidth":true},"18103":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18030},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18104":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18105":{"x":0,"y":480,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18106":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18107}},"18107":{"varMapping":{"__isSmartRef__":true,"id":18108},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18108":{"this":{"__isSmartRef__":true,"id":18030},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18109}},"18109":{"$super":{"__isSmartRef__":true,"id":18110}},"18110":{"varMapping":{"__isSmartRef__":true,"id":18111},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18112},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18111":{"obj":{"__isSmartRef__":true,"id":18030},"name":"getLayoutableSubmorphs"},"18112":{},"18113":{},"18114":{"submorphs":[{"__isSmartRef__":true,"id":18115}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18179},"derivationIds":[null],"id":"C7E5B80C-4DA7-428E-A39D-65E7B1A4430A","renderContextTable":{"__isSmartRef__":true,"id":18184},"eventHandler":{"__isSmartRef__":true,"id":18185},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18186},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18188},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18189},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18190},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18115":{"submorphs":[{"__isSmartRef__":true,"id":18116},{"__isSmartRef__":true,"id":18133}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18149},"derivationIds":[null],"id":"9257F328-2CEE-4BA0-B63D-F1F13526548F","renderContextTable":{"__isSmartRef__":true,"id":18154},"eventHandler":{"__isSmartRef__":true,"id":18155},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18156},"grabbingEnabled":false,"draggingEnabled":false,"data":"emerald","propertyList":["0","1","2","3","4","5","6"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"gem","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18116},"text":{"__isSmartRef__":true,"id":18133},"owner":{"__isSmartRef__":true,"id":18114},"_Position":{"__isSmartRef__":true,"id":18157},"priorExtent":{"__isSmartRef__":true,"id":18158},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18159},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18116":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18117},"derivationIds":[null],"id":"614EDE2B-116E-44BC-9382-DD201EBF08DC","renderContextTable":{"__isSmartRef__":true,"id":18123},"eventHandler":{"__isSmartRef__":true,"id":18124},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18125},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18115},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18126},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18117":{"_Position":{"__isSmartRef__":true,"id":18118},"renderContextTable":{"__isSmartRef__":true,"id":18119},"_Extent":{"__isSmartRef__":true,"id":18120},"_Padding":{"__isSmartRef__":true,"id":18121},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18122},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18118":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18119":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18120":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18121":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18122":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18123":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18124":{"morph":{"__isSmartRef__":true,"id":18116},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18125":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18126":{"toggle":{"__isSmartRef__":true,"id":18127},"toggleExpansion":{"__isSmartRef__":true,"id":18130}},"18127":{"varMapping":{"__isSmartRef__":true,"id":18128},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18129},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18128":{"this":{"__isSmartRef__":true,"id":18116}},"18129":{},"18130":{"varMapping":{"__isSmartRef__":true,"id":18131},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18132},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18131":{"this":{"__isSmartRef__":true,"id":18116}},"18132":{},"18133":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18134},"derivationIds":[null],"id":"6EAF88E3-FDAD-4DEB-B32D-D5DCE2ACCFCB","renderContextTable":{"__isSmartRef__":true,"id":18138},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18139},{"__isSmartRef__":true,"id":18141}],"eventHandler":{"__isSmartRef__":true,"id":18143},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18144},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18115},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18145},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18134":{"_Position":{"__isSmartRef__":true,"id":18135},"renderContextTable":{"__isSmartRef__":true,"id":18136},"_Extent":{"__isSmartRef__":true,"id":18137},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18135":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18136":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18137":{"x":87,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18138":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18139":{"style":{"__isSmartRef__":true,"id":18140},"chunkOwner":{"__isSmartRef__":true,"id":18133},"storedString":"gem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18140":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18141":{"style":{"__isSmartRef__":true,"id":18142},"chunkOwner":{"__isSmartRef__":true,"id":18133},"storedString":": emerald","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18142":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18143":{"morph":{"__isSmartRef__":true,"id":18133},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18144":{"x":90,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18145":{"layoutText":{"__isSmartRef__":true,"id":18146}},"18146":{"varMapping":{"__isSmartRef__":true,"id":18147},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18147":{"this":{"__isSmartRef__":true,"id":18133}},"18148":{},"18149":{"_Position":{"__isSmartRef__":true,"id":18150},"renderContextTable":{"__isSmartRef__":true,"id":18151},"_Extent":{"__isSmartRef__":true,"id":18152},"_Padding":{"__isSmartRef__":true,"id":18153},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18150":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18151":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18152":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18153":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18154":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18155":{"morph":{"__isSmartRef__":true,"id":18115},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18156":{"resizeWidth":true},"18157":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18158":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18159":{"updateExpanderColor":{"__isSmartRef__":true,"id":18160},"onMouseDown":{"__isSmartRef__":true,"id":18163},"isRoot":{"__isSmartRef__":true,"id":18170},"displayValue":{"__isSmartRef__":true,"id":18173},"update":{"__isSmartRef__":true,"id":18176}},"18160":{"varMapping":{"__isSmartRef__":true,"id":18161},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18162},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18161":{"this":{"__isSmartRef__":true,"id":18115}},"18162":{},"18163":{"varMapping":{"__isSmartRef__":true,"id":18164},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18169},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18164":{"this":{"__isSmartRef__":true,"id":18115},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18165}},"18165":{"$super":{"__isSmartRef__":true,"id":18166}},"18166":{"varMapping":{"__isSmartRef__":true,"id":18167},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18167":{"obj":{"__isSmartRef__":true,"id":18115},"name":"onMouseDown"},"18168":{},"18169":{},"18170":{"varMapping":{"__isSmartRef__":true,"id":18171},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18171":{"this":{"__isSmartRef__":true,"id":18115}},"18172":{},"18173":{"varMapping":{"__isSmartRef__":true,"id":18174},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18175},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18174":{"this":{"__isSmartRef__":true,"id":18115}},"18175":{},"18176":{"varMapping":{"__isSmartRef__":true,"id":18177},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18178},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18177":{"this":{"__isSmartRef__":true,"id":18115}},"18178":{},"18179":{"_Position":{"__isSmartRef__":true,"id":18180},"renderContextTable":{"__isSmartRef__":true,"id":18181},"_Extent":{"__isSmartRef__":true,"id":18182},"_Padding":{"__isSmartRef__":true,"id":18183},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18180":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18181":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18182":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18183":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18184":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18185":{"morph":{"__isSmartRef__":true,"id":18114},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18186":{"layouter":{"__isSmartRef__":true,"id":18187},"resizeWidth":true},"18187":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18114},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18188":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18189":{"x":0,"y":460,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18190":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18191}},"18191":{"varMapping":{"__isSmartRef__":true,"id":18192},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18197},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18192":{"this":{"__isSmartRef__":true,"id":18114},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18193}},"18193":{"$super":{"__isSmartRef__":true,"id":18194}},"18194":{"varMapping":{"__isSmartRef__":true,"id":18195},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18195":{"obj":{"__isSmartRef__":true,"id":18114},"name":"getLayoutableSubmorphs"},"18196":{},"18197":{},"18198":{"submorphs":[{"__isSmartRef__":true,"id":18199}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18263},"derivationIds":[null],"id":"E48BEF10-6772-435D-9A45-8DD27B875759","renderContextTable":{"__isSmartRef__":true,"id":18268},"eventHandler":{"__isSmartRef__":true,"id":18269},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18270},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18272},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18273},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18274},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18199":{"submorphs":[{"__isSmartRef__":true,"id":18200},{"__isSmartRef__":true,"id":18217}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18233},"derivationIds":[null],"id":"A30D08E1-2BD1-4022-98B5-F79A71BEE22D","renderContextTable":{"__isSmartRef__":true,"id":18238},"eventHandler":{"__isSmartRef__":true,"id":18239},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18240},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"grabbingEnabled","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18200},"text":{"__isSmartRef__":true,"id":18217},"owner":{"__isSmartRef__":true,"id":18198},"_Position":{"__isSmartRef__":true,"id":18241},"priorExtent":{"__isSmartRef__":true,"id":18242},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18243},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18200":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18201},"derivationIds":[null],"id":"29B3B74C-E2A8-4117-9910-FC5BA7B4D755","renderContextTable":{"__isSmartRef__":true,"id":18207},"eventHandler":{"__isSmartRef__":true,"id":18208},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18209},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18210},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18201":{"_Position":{"__isSmartRef__":true,"id":18202},"renderContextTable":{"__isSmartRef__":true,"id":18203},"_Extent":{"__isSmartRef__":true,"id":18204},"_Padding":{"__isSmartRef__":true,"id":18205},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18206},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18202":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18203":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18204":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18205":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18206":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18207":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18208":{"morph":{"__isSmartRef__":true,"id":18200},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18209":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18210":{"toggle":{"__isSmartRef__":true,"id":18211},"toggleExpansion":{"__isSmartRef__":true,"id":18214}},"18211":{"varMapping":{"__isSmartRef__":true,"id":18212},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18213},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18212":{"this":{"__isSmartRef__":true,"id":18200}},"18213":{},"18214":{"varMapping":{"__isSmartRef__":true,"id":18215},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18216},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18215":{"this":{"__isSmartRef__":true,"id":18200}},"18216":{},"18217":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18218},"derivationIds":[null],"id":"7A59010D-6C75-40AE-BC89-B886C440B000","renderContextTable":{"__isSmartRef__":true,"id":18222},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18223},{"__isSmartRef__":true,"id":18225}],"eventHandler":{"__isSmartRef__":true,"id":18227},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18228},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18229},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18218":{"_Position":{"__isSmartRef__":true,"id":18219},"renderContextTable":{"__isSmartRef__":true,"id":18220},"_Extent":{"__isSmartRef__":true,"id":18221},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18219":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18220":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18221":{"x":140,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18222":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18223":{"style":{"__isSmartRef__":true,"id":18224},"chunkOwner":{"__isSmartRef__":true,"id":18217},"storedString":"grabbingEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18224":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18225":{"style":{"__isSmartRef__":true,"id":18226},"chunkOwner":{"__isSmartRef__":true,"id":18217},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18226":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18227":{"morph":{"__isSmartRef__":true,"id":18217},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18228":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18229":{"layoutText":{"__isSmartRef__":true,"id":18230}},"18230":{"varMapping":{"__isSmartRef__":true,"id":18231},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18232},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18231":{"this":{"__isSmartRef__":true,"id":18217}},"18232":{},"18233":{"_Position":{"__isSmartRef__":true,"id":18234},"renderContextTable":{"__isSmartRef__":true,"id":18235},"_Extent":{"__isSmartRef__":true,"id":18236},"_Padding":{"__isSmartRef__":true,"id":18237},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18234":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18235":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18236":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18237":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18238":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18239":{"morph":{"__isSmartRef__":true,"id":18199},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18240":{"resizeWidth":true},"18241":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18242":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18243":{"updateExpanderColor":{"__isSmartRef__":true,"id":18244},"onMouseDown":{"__isSmartRef__":true,"id":18247},"isRoot":{"__isSmartRef__":true,"id":18254},"displayValue":{"__isSmartRef__":true,"id":18257},"update":{"__isSmartRef__":true,"id":18260}},"18244":{"varMapping":{"__isSmartRef__":true,"id":18245},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18246},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18245":{"this":{"__isSmartRef__":true,"id":18199}},"18246":{},"18247":{"varMapping":{"__isSmartRef__":true,"id":18248},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18248":{"this":{"__isSmartRef__":true,"id":18199},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18249}},"18249":{"$super":{"__isSmartRef__":true,"id":18250}},"18250":{"varMapping":{"__isSmartRef__":true,"id":18251},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18252},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18251":{"obj":{"__isSmartRef__":true,"id":18199},"name":"onMouseDown"},"18252":{},"18253":{},"18254":{"varMapping":{"__isSmartRef__":true,"id":18255},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18256},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18255":{"this":{"__isSmartRef__":true,"id":18199}},"18256":{},"18257":{"varMapping":{"__isSmartRef__":true,"id":18258},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18259},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18258":{"this":{"__isSmartRef__":true,"id":18199}},"18259":{},"18260":{"varMapping":{"__isSmartRef__":true,"id":18261},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18262},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18261":{"this":{"__isSmartRef__":true,"id":18199}},"18262":{},"18263":{"_Position":{"__isSmartRef__":true,"id":18264},"renderContextTable":{"__isSmartRef__":true,"id":18265},"_Extent":{"__isSmartRef__":true,"id":18266},"_Padding":{"__isSmartRef__":true,"id":18267},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18264":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18265":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18266":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18267":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18268":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18269":{"morph":{"__isSmartRef__":true,"id":18198},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18270":{"layouter":{"__isSmartRef__":true,"id":18271},"resizeWidth":true},"18271":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18198},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18272":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18273":{"x":0,"y":440,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18274":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18275}},"18275":{"varMapping":{"__isSmartRef__":true,"id":18276},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18276":{"this":{"__isSmartRef__":true,"id":18198},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18277}},"18277":{"$super":{"__isSmartRef__":true,"id":18278}},"18278":{"varMapping":{"__isSmartRef__":true,"id":18279},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18280},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18279":{"obj":{"__isSmartRef__":true,"id":18198},"name":"getLayoutableSubmorphs"},"18280":{},"18281":{},"18282":{"submorphs":[{"__isSmartRef__":true,"id":18283}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18347},"derivationIds":[null],"id":"BF967B9F-EC6A-49C7-835E-84692C527676","renderContextTable":{"__isSmartRef__":true,"id":18352},"eventHandler":{"__isSmartRef__":true,"id":18353},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18354},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18356},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18357},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18358},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18283":{"submorphs":[{"__isSmartRef__":true,"id":18284},{"__isSmartRef__":true,"id":18301}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18317},"derivationIds":[null],"id":"33E5F407-C986-4C60-98D7-3BDE7B1647DF","renderContextTable":{"__isSmartRef__":true,"id":18322},"eventHandler":{"__isSmartRef__":true,"id":18323},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18324},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"halos","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18284},"text":{"__isSmartRef__":true,"id":18301},"owner":{"__isSmartRef__":true,"id":18282},"_Position":{"__isSmartRef__":true,"id":18325},"priorExtent":{"__isSmartRef__":true,"id":18326},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18327},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18284":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18285},"derivationIds":[null],"id":"2A07829B-092C-445A-8E69-4B2BE141E71D","renderContextTable":{"__isSmartRef__":true,"id":18291},"eventHandler":{"__isSmartRef__":true,"id":18292},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18293},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18294},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18285":{"_Position":{"__isSmartRef__":true,"id":18286},"renderContextTable":{"__isSmartRef__":true,"id":18287},"_Extent":{"__isSmartRef__":true,"id":18288},"_Padding":{"__isSmartRef__":true,"id":18289},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18290},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18286":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18287":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18288":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18289":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18290":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18291":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18292":{"morph":{"__isSmartRef__":true,"id":18284},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18293":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18294":{"toggle":{"__isSmartRef__":true,"id":18295},"toggleExpansion":{"__isSmartRef__":true,"id":18298}},"18295":{"varMapping":{"__isSmartRef__":true,"id":18296},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18296":{"this":{"__isSmartRef__":true,"id":18284}},"18297":{},"18298":{"varMapping":{"__isSmartRef__":true,"id":18299},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18300},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18299":{"this":{"__isSmartRef__":true,"id":18284}},"18300":{},"18301":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18302},"derivationIds":[null],"id":"73A5F628-C0D7-446D-BBBF-64324B5B805F","renderContextTable":{"__isSmartRef__":true,"id":18306},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18307},{"__isSmartRef__":true,"id":18309}],"eventHandler":{"__isSmartRef__":true,"id":18311},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18312},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18313},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18302":{"_Position":{"__isSmartRef__":true,"id":18303},"renderContextTable":{"__isSmartRef__":true,"id":18304},"_Extent":{"__isSmartRef__":true,"id":18305},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18303":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18304":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18305":{"x":55,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18306":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18307":{"style":{"__isSmartRef__":true,"id":18308},"chunkOwner":{"__isSmartRef__":true,"id":18301},"storedString":"halos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18308":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18309":{"style":{"__isSmartRef__":true,"id":18310},"chunkOwner":{"__isSmartRef__":true,"id":18301},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18310":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18311":{"morph":{"__isSmartRef__":true,"id":18301},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18312":{"x":67.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18313":{"layoutText":{"__isSmartRef__":true,"id":18314}},"18314":{"varMapping":{"__isSmartRef__":true,"id":18315},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18316},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18315":{"this":{"__isSmartRef__":true,"id":18301}},"18316":{},"18317":{"_Position":{"__isSmartRef__":true,"id":18318},"renderContextTable":{"__isSmartRef__":true,"id":18319},"_Extent":{"__isSmartRef__":true,"id":18320},"_Padding":{"__isSmartRef__":true,"id":18321},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18318":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18319":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18320":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18321":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18322":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18323":{"morph":{"__isSmartRef__":true,"id":18283},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18324":{"resizeWidth":true},"18325":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18326":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18327":{"updateExpanderColor":{"__isSmartRef__":true,"id":18328},"onMouseDown":{"__isSmartRef__":true,"id":18331},"isRoot":{"__isSmartRef__":true,"id":18338},"displayValue":{"__isSmartRef__":true,"id":18341},"update":{"__isSmartRef__":true,"id":18344}},"18328":{"varMapping":{"__isSmartRef__":true,"id":18329},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18330},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18329":{"this":{"__isSmartRef__":true,"id":18283}},"18330":{},"18331":{"varMapping":{"__isSmartRef__":true,"id":18332},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18337},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18332":{"this":{"__isSmartRef__":true,"id":18283},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18333}},"18333":{"$super":{"__isSmartRef__":true,"id":18334}},"18334":{"varMapping":{"__isSmartRef__":true,"id":18335},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18336},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18335":{"obj":{"__isSmartRef__":true,"id":18283},"name":"onMouseDown"},"18336":{},"18337":{},"18338":{"varMapping":{"__isSmartRef__":true,"id":18339},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18340},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18339":{"this":{"__isSmartRef__":true,"id":18283}},"18340":{},"18341":{"varMapping":{"__isSmartRef__":true,"id":18342},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18343},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18342":{"this":{"__isSmartRef__":true,"id":18283}},"18343":{},"18344":{"varMapping":{"__isSmartRef__":true,"id":18345},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18346},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18345":{"this":{"__isSmartRef__":true,"id":18283}},"18346":{},"18347":{"_Position":{"__isSmartRef__":true,"id":18348},"renderContextTable":{"__isSmartRef__":true,"id":18349},"_Extent":{"__isSmartRef__":true,"id":18350},"_Padding":{"__isSmartRef__":true,"id":18351},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18348":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18349":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18350":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18351":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18352":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18353":{"morph":{"__isSmartRef__":true,"id":18282},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18354":{"layouter":{"__isSmartRef__":true,"id":18355},"resizeWidth":true},"18355":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18282},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18356":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18357":{"x":0,"y":420,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18358":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18359}},"18359":{"varMapping":{"__isSmartRef__":true,"id":18360},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18365},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18360":{"this":{"__isSmartRef__":true,"id":18282},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18361}},"18361":{"$super":{"__isSmartRef__":true,"id":18362}},"18362":{"varMapping":{"__isSmartRef__":true,"id":18363},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18364},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18363":{"obj":{"__isSmartRef__":true,"id":18282},"name":"getLayoutableSubmorphs"},"18364":{},"18365":{},"18366":{"submorphs":[{"__isSmartRef__":true,"id":18367}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18431},"derivationIds":[null],"id":"9A81A7BD-A99E-4B62-8416-01A58079C161","renderContextTable":{"__isSmartRef__":true,"id":18436},"eventHandler":{"__isSmartRef__":true,"id":18437},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18438},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18440},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18441},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18442},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18367":{"submorphs":[{"__isSmartRef__":true,"id":18368},{"__isSmartRef__":true,"id":18385}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18401},"derivationIds":[null],"id":"933E8700-BA29-45C1-9AD3-9EE2F89A2274","renderContextTable":{"__isSmartRef__":true,"id":18406},"eventHandler":{"__isSmartRef__":true,"id":18407},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18408},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"halosEnabled","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18368},"text":{"__isSmartRef__":true,"id":18385},"owner":{"__isSmartRef__":true,"id":18366},"_Position":{"__isSmartRef__":true,"id":18409},"priorExtent":{"__isSmartRef__":true,"id":18410},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18411},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18368":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18369},"derivationIds":[null],"id":"3E8A1F9B-4990-4D63-BF42-F46AA33CA2F2","renderContextTable":{"__isSmartRef__":true,"id":18375},"eventHandler":{"__isSmartRef__":true,"id":18376},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18377},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18378},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18369":{"_Position":{"__isSmartRef__":true,"id":18370},"renderContextTable":{"__isSmartRef__":true,"id":18371},"_Extent":{"__isSmartRef__":true,"id":18372},"_Padding":{"__isSmartRef__":true,"id":18373},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18374},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18370":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18371":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18372":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18373":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18374":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18375":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18376":{"morph":{"__isSmartRef__":true,"id":18368},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18377":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18378":{"toggle":{"__isSmartRef__":true,"id":18379},"toggleExpansion":{"__isSmartRef__":true,"id":18382}},"18379":{"varMapping":{"__isSmartRef__":true,"id":18380},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18380":{"this":{"__isSmartRef__":true,"id":18368}},"18381":{},"18382":{"varMapping":{"__isSmartRef__":true,"id":18383},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18384},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18383":{"this":{"__isSmartRef__":true,"id":18368}},"18384":{},"18385":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18386},"derivationIds":[null],"id":"95560C81-C121-45BE-A4AB-EC22892131D1","renderContextTable":{"__isSmartRef__":true,"id":18390},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18391},{"__isSmartRef__":true,"id":18393}],"eventHandler":{"__isSmartRef__":true,"id":18395},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18396},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18397},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18386":{"_Position":{"__isSmartRef__":true,"id":18387},"renderContextTable":{"__isSmartRef__":true,"id":18388},"_Extent":{"__isSmartRef__":true,"id":18389},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18387":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18388":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18389":{"x":116,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18390":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18391":{"style":{"__isSmartRef__":true,"id":18392},"chunkOwner":{"__isSmartRef__":true,"id":18385},"storedString":"halosEnabled","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18392":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18393":{"style":{"__isSmartRef__":true,"id":18394},"chunkOwner":{"__isSmartRef__":true,"id":18385},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18394":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18395":{"morph":{"__isSmartRef__":true,"id":18385},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18396":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18397":{"layoutText":{"__isSmartRef__":true,"id":18398}},"18398":{"varMapping":{"__isSmartRef__":true,"id":18399},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18400},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18399":{"this":{"__isSmartRef__":true,"id":18385}},"18400":{},"18401":{"_Position":{"__isSmartRef__":true,"id":18402},"renderContextTable":{"__isSmartRef__":true,"id":18403},"_Extent":{"__isSmartRef__":true,"id":18404},"_Padding":{"__isSmartRef__":true,"id":18405},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18402":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18403":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18404":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18405":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18406":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18407":{"morph":{"__isSmartRef__":true,"id":18367},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18408":{"resizeWidth":true},"18409":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18410":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18411":{"updateExpanderColor":{"__isSmartRef__":true,"id":18412},"onMouseDown":{"__isSmartRef__":true,"id":18415},"isRoot":{"__isSmartRef__":true,"id":18422},"displayValue":{"__isSmartRef__":true,"id":18425},"update":{"__isSmartRef__":true,"id":18428}},"18412":{"varMapping":{"__isSmartRef__":true,"id":18413},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18414},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18413":{"this":{"__isSmartRef__":true,"id":18367}},"18414":{},"18415":{"varMapping":{"__isSmartRef__":true,"id":18416},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18421},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18416":{"this":{"__isSmartRef__":true,"id":18367},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18417}},"18417":{"$super":{"__isSmartRef__":true,"id":18418}},"18418":{"varMapping":{"__isSmartRef__":true,"id":18419},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18420},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18419":{"obj":{"__isSmartRef__":true,"id":18367},"name":"onMouseDown"},"18420":{},"18421":{},"18422":{"varMapping":{"__isSmartRef__":true,"id":18423},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18424},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18423":{"this":{"__isSmartRef__":true,"id":18367}},"18424":{},"18425":{"varMapping":{"__isSmartRef__":true,"id":18426},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18427},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18426":{"this":{"__isSmartRef__":true,"id":18367}},"18427":{},"18428":{"varMapping":{"__isSmartRef__":true,"id":18429},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18430},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18429":{"this":{"__isSmartRef__":true,"id":18367}},"18430":{},"18431":{"_Position":{"__isSmartRef__":true,"id":18432},"renderContextTable":{"__isSmartRef__":true,"id":18433},"_Extent":{"__isSmartRef__":true,"id":18434},"_Padding":{"__isSmartRef__":true,"id":18435},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18432":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18433":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18434":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18435":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18436":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18437":{"morph":{"__isSmartRef__":true,"id":18366},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18438":{"layouter":{"__isSmartRef__":true,"id":18439},"resizeWidth":true},"18439":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18366},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18440":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18441":{"x":0,"y":400,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18442":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18443}},"18443":{"varMapping":{"__isSmartRef__":true,"id":18444},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18449},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18444":{"this":{"__isSmartRef__":true,"id":18366},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18445}},"18445":{"$super":{"__isSmartRef__":true,"id":18446}},"18446":{"varMapping":{"__isSmartRef__":true,"id":18447},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18448},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18447":{"obj":{"__isSmartRef__":true,"id":18366},"name":"getLayoutableSubmorphs"},"18448":{},"18449":{},"18450":{"submorphs":[{"__isSmartRef__":true,"id":18451}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18515},"derivationIds":[null],"id":"248E5797-C2B7-4E06-A4EB-A263860183AC","renderContextTable":{"__isSmartRef__":true,"id":18520},"eventHandler":{"__isSmartRef__":true,"id":18521},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18522},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18524},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18525},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18526},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18451":{"submorphs":[{"__isSmartRef__":true,"id":18452},{"__isSmartRef__":true,"id":18469}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18485},"derivationIds":[null],"id":"4D3C674F-E6C8-4B06-B387-862DA3C844D6","renderContextTable":{"__isSmartRef__":true,"id":18490},"eventHandler":{"__isSmartRef__":true,"id":18491},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18492},"grabbingEnabled":false,"draggingEnabled":false,"data":"9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB","propertyList":["0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"id","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18452},"text":{"__isSmartRef__":true,"id":18469},"owner":{"__isSmartRef__":true,"id":18450},"_Position":{"__isSmartRef__":true,"id":18493},"priorExtent":{"__isSmartRef__":true,"id":18494},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18495},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18452":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18453},"derivationIds":[null],"id":"689A06AE-D1F4-4BE5-AF48-5F82A55FF4DF","renderContextTable":{"__isSmartRef__":true,"id":18459},"eventHandler":{"__isSmartRef__":true,"id":18460},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18461},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18462},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18453":{"_Position":{"__isSmartRef__":true,"id":18454},"renderContextTable":{"__isSmartRef__":true,"id":18455},"_Extent":{"__isSmartRef__":true,"id":18456},"_Padding":{"__isSmartRef__":true,"id":18457},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18458},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18454":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18455":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18456":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18457":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18458":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18459":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18460":{"morph":{"__isSmartRef__":true,"id":18452},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18461":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18462":{"toggle":{"__isSmartRef__":true,"id":18463},"toggleExpansion":{"__isSmartRef__":true,"id":18466}},"18463":{"varMapping":{"__isSmartRef__":true,"id":18464},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18464":{"this":{"__isSmartRef__":true,"id":18452}},"18465":{},"18466":{"varMapping":{"__isSmartRef__":true,"id":18467},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18468},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18467":{"this":{"__isSmartRef__":true,"id":18452}},"18468":{},"18469":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18470},"derivationIds":[null],"id":"AF60DBD7-8C8D-4791-AF87-E141FF50B6B9","renderContextTable":{"__isSmartRef__":true,"id":18474},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18475},{"__isSmartRef__":true,"id":18477}],"eventHandler":{"__isSmartRef__":true,"id":18479},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18480},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18481},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18470":{"_Position":{"__isSmartRef__":true,"id":18471},"renderContextTable":{"__isSmartRef__":true,"id":18472},"_Extent":{"__isSmartRef__":true,"id":18473},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18471":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18472":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18473":{"x":295,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18474":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18475":{"style":{"__isSmartRef__":true,"id":18476},"chunkOwner":{"__isSmartRef__":true,"id":18469},"storedString":"id","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18476":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18477":{"style":{"__isSmartRef__":true,"id":18478},"chunkOwner":{"__isSmartRef__":true,"id":18469},"storedString":": 9174DAAB-0B5B-4F27-ADD4-55B80DF6D7FB","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18478":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18479":{"morph":{"__isSmartRef__":true,"id":18469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18480":{"x":300,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18481":{"layoutText":{"__isSmartRef__":true,"id":18482}},"18482":{"varMapping":{"__isSmartRef__":true,"id":18483},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18484},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18483":{"this":{"__isSmartRef__":true,"id":18469}},"18484":{},"18485":{"_Position":{"__isSmartRef__":true,"id":18486},"renderContextTable":{"__isSmartRef__":true,"id":18487},"_Extent":{"__isSmartRef__":true,"id":18488},"_Padding":{"__isSmartRef__":true,"id":18489},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18486":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18487":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18488":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18489":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18490":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18491":{"morph":{"__isSmartRef__":true,"id":18451},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18492":{"resizeWidth":true},"18493":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18494":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18495":{"updateExpanderColor":{"__isSmartRef__":true,"id":18496},"onMouseDown":{"__isSmartRef__":true,"id":18499},"isRoot":{"__isSmartRef__":true,"id":18506},"displayValue":{"__isSmartRef__":true,"id":18509},"update":{"__isSmartRef__":true,"id":18512}},"18496":{"varMapping":{"__isSmartRef__":true,"id":18497},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18498},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18497":{"this":{"__isSmartRef__":true,"id":18451}},"18498":{},"18499":{"varMapping":{"__isSmartRef__":true,"id":18500},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18505},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18500":{"this":{"__isSmartRef__":true,"id":18451},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18501}},"18501":{"$super":{"__isSmartRef__":true,"id":18502}},"18502":{"varMapping":{"__isSmartRef__":true,"id":18503},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18504},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18503":{"obj":{"__isSmartRef__":true,"id":18451},"name":"onMouseDown"},"18504":{},"18505":{},"18506":{"varMapping":{"__isSmartRef__":true,"id":18507},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18508},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18507":{"this":{"__isSmartRef__":true,"id":18451}},"18508":{},"18509":{"varMapping":{"__isSmartRef__":true,"id":18510},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18511},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18510":{"this":{"__isSmartRef__":true,"id":18451}},"18511":{},"18512":{"varMapping":{"__isSmartRef__":true,"id":18513},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18514},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18513":{"this":{"__isSmartRef__":true,"id":18451}},"18514":{},"18515":{"_Position":{"__isSmartRef__":true,"id":18516},"renderContextTable":{"__isSmartRef__":true,"id":18517},"_Extent":{"__isSmartRef__":true,"id":18518},"_Padding":{"__isSmartRef__":true,"id":18519},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18516":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18517":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18518":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18519":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18520":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18521":{"morph":{"__isSmartRef__":true,"id":18450},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18522":{"layouter":{"__isSmartRef__":true,"id":18523},"resizeWidth":true},"18523":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18450},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18524":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18525":{"x":0,"y":380,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18526":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18527}},"18527":{"varMapping":{"__isSmartRef__":true,"id":18528},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18533},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18528":{"this":{"__isSmartRef__":true,"id":18450},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18529}},"18529":{"$super":{"__isSmartRef__":true,"id":18530}},"18530":{"varMapping":{"__isSmartRef__":true,"id":18531},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18532},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18531":{"obj":{"__isSmartRef__":true,"id":18450},"name":"getLayoutableSubmorphs"},"18532":{},"18533":{},"18534":{"submorphs":[{"__isSmartRef__":true,"id":18535}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18599},"derivationIds":[null],"id":"B71521C8-4829-4A69-AF02-22753ACC55AE","renderContextTable":{"__isSmartRef__":true,"id":18604},"eventHandler":{"__isSmartRef__":true,"id":18605},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18606},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18608},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18609},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18610},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18535":{"submorphs":[{"__isSmartRef__":true,"id":18536},{"__isSmartRef__":true,"id":18553}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18569},"derivationIds":[null],"id":"1A25E1AC-7A05-44CD-BEC4-35788A8A0300","renderContextTable":{"__isSmartRef__":true,"id":18574},"eventHandler":{"__isSmartRef__":true,"id":18575},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18576},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"isBeingDragged","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18536},"text":{"__isSmartRef__":true,"id":18553},"owner":{"__isSmartRef__":true,"id":18534},"_Position":{"__isSmartRef__":true,"id":18577},"priorExtent":{"__isSmartRef__":true,"id":18578},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18579},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18536":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18537},"derivationIds":[null],"id":"E1E9D906-4AE1-4B53-A95B-8E17EFE7D57B","renderContextTable":{"__isSmartRef__":true,"id":18543},"eventHandler":{"__isSmartRef__":true,"id":18544},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18545},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18535},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18546},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18537":{"_Position":{"__isSmartRef__":true,"id":18538},"renderContextTable":{"__isSmartRef__":true,"id":18539},"_Extent":{"__isSmartRef__":true,"id":18540},"_Padding":{"__isSmartRef__":true,"id":18541},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18542},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18538":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18539":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18540":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18541":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18542":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18543":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18544":{"morph":{"__isSmartRef__":true,"id":18536},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18545":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18546":{"toggle":{"__isSmartRef__":true,"id":18547},"toggleExpansion":{"__isSmartRef__":true,"id":18550}},"18547":{"varMapping":{"__isSmartRef__":true,"id":18548},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18549},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18548":{"this":{"__isSmartRef__":true,"id":18536}},"18549":{},"18550":{"varMapping":{"__isSmartRef__":true,"id":18551},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18552},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18551":{"this":{"__isSmartRef__":true,"id":18536}},"18552":{},"18553":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18554},"derivationIds":[null],"id":"1603479E-9F43-4686-B982-10A5A9C0E6FB","renderContextTable":{"__isSmartRef__":true,"id":18558},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18559},{"__isSmartRef__":true,"id":18561}],"eventHandler":{"__isSmartRef__":true,"id":18563},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18564},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18535},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18565},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18554":{"_Position":{"__isSmartRef__":true,"id":18555},"renderContextTable":{"__isSmartRef__":true,"id":18556},"_Extent":{"__isSmartRef__":true,"id":18557},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18555":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18556":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18557":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18558":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18559":{"style":{"__isSmartRef__":true,"id":18560},"chunkOwner":{"__isSmartRef__":true,"id":18553},"storedString":"isBeingDragged","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18560":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18561":{"style":{"__isSmartRef__":true,"id":18562},"chunkOwner":{"__isSmartRef__":true,"id":18553},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18562":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18563":{"morph":{"__isSmartRef__":true,"id":18553},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18564":{"x":157.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18565":{"layoutText":{"__isSmartRef__":true,"id":18566}},"18566":{"varMapping":{"__isSmartRef__":true,"id":18567},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18568},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18567":{"this":{"__isSmartRef__":true,"id":18553}},"18568":{},"18569":{"_Position":{"__isSmartRef__":true,"id":18570},"renderContextTable":{"__isSmartRef__":true,"id":18571},"_Extent":{"__isSmartRef__":true,"id":18572},"_Padding":{"__isSmartRef__":true,"id":18573},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18570":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18571":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18572":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18573":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18574":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18575":{"morph":{"__isSmartRef__":true,"id":18535},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18576":{"resizeWidth":true},"18577":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18578":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18579":{"updateExpanderColor":{"__isSmartRef__":true,"id":18580},"onMouseDown":{"__isSmartRef__":true,"id":18583},"isRoot":{"__isSmartRef__":true,"id":18590},"displayValue":{"__isSmartRef__":true,"id":18593},"update":{"__isSmartRef__":true,"id":18596}},"18580":{"varMapping":{"__isSmartRef__":true,"id":18581},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18582},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18581":{"this":{"__isSmartRef__":true,"id":18535}},"18582":{},"18583":{"varMapping":{"__isSmartRef__":true,"id":18584},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18589},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18584":{"this":{"__isSmartRef__":true,"id":18535},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18585}},"18585":{"$super":{"__isSmartRef__":true,"id":18586}},"18586":{"varMapping":{"__isSmartRef__":true,"id":18587},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18588},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18587":{"obj":{"__isSmartRef__":true,"id":18535},"name":"onMouseDown"},"18588":{},"18589":{},"18590":{"varMapping":{"__isSmartRef__":true,"id":18591},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18592},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18591":{"this":{"__isSmartRef__":true,"id":18535}},"18592":{},"18593":{"varMapping":{"__isSmartRef__":true,"id":18594},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18594":{"this":{"__isSmartRef__":true,"id":18535}},"18595":{},"18596":{"varMapping":{"__isSmartRef__":true,"id":18597},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18598},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18597":{"this":{"__isSmartRef__":true,"id":18535}},"18598":{},"18599":{"_Position":{"__isSmartRef__":true,"id":18600},"renderContextTable":{"__isSmartRef__":true,"id":18601},"_Extent":{"__isSmartRef__":true,"id":18602},"_Padding":{"__isSmartRef__":true,"id":18603},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18600":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18601":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18602":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18603":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18604":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18605":{"morph":{"__isSmartRef__":true,"id":18534},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18606":{"layouter":{"__isSmartRef__":true,"id":18607},"resizeWidth":true},"18607":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18534},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18608":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18609":{"x":0,"y":360,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18610":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18611}},"18611":{"varMapping":{"__isSmartRef__":true,"id":18612},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18612":{"this":{"__isSmartRef__":true,"id":18534},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18613}},"18613":{"$super":{"__isSmartRef__":true,"id":18614}},"18614":{"varMapping":{"__isSmartRef__":true,"id":18615},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18615":{"obj":{"__isSmartRef__":true,"id":18534},"name":"getLayoutableSubmorphs"},"18616":{},"18617":{},"18618":{"submorphs":[{"__isSmartRef__":true,"id":18619}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18683},"derivationIds":[null],"id":"60CD6825-9823-4880-8A0D-DDE991D300F0","renderContextTable":{"__isSmartRef__":true,"id":18688},"eventHandler":{"__isSmartRef__":true,"id":18689},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18690},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18692},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18693},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18694},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18619":{"submorphs":[{"__isSmartRef__":true,"id":18620},{"__isSmartRef__":true,"id":18637}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18653},"derivationIds":[null],"id":"A9141CE7-5225-4DC0-9032-445ED83FE2D8","renderContextTable":{"__isSmartRef__":true,"id":18658},"eventHandler":{"__isSmartRef__":true,"id":18659},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18660},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"isDirty","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18620},"text":{"__isSmartRef__":true,"id":18637},"owner":{"__isSmartRef__":true,"id":18618},"_Position":{"__isSmartRef__":true,"id":18661},"priorExtent":{"__isSmartRef__":true,"id":18662},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18663},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18620":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18621},"derivationIds":[null],"id":"579616EE-2D8A-4890-952A-36EE23939EFA","renderContextTable":{"__isSmartRef__":true,"id":18627},"eventHandler":{"__isSmartRef__":true,"id":18628},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18629},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18630},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18621":{"_Position":{"__isSmartRef__":true,"id":18622},"renderContextTable":{"__isSmartRef__":true,"id":18623},"_Extent":{"__isSmartRef__":true,"id":18624},"_Padding":{"__isSmartRef__":true,"id":18625},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18626},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18622":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18623":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18624":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18625":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18626":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18627":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18628":{"morph":{"__isSmartRef__":true,"id":18620},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18629":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18630":{"toggle":{"__isSmartRef__":true,"id":18631},"toggleExpansion":{"__isSmartRef__":true,"id":18634}},"18631":{"varMapping":{"__isSmartRef__":true,"id":18632},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18632":{"this":{"__isSmartRef__":true,"id":18620}},"18633":{},"18634":{"varMapping":{"__isSmartRef__":true,"id":18635},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18636},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18635":{"this":{"__isSmartRef__":true,"id":18620}},"18636":{},"18637":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18638},"derivationIds":[null],"id":"3CF99868-6A23-4EE9-9BB9-06DE160C50C0","renderContextTable":{"__isSmartRef__":true,"id":18642},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18643},{"__isSmartRef__":true,"id":18645}],"eventHandler":{"__isSmartRef__":true,"id":18647},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18648},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18649},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18638":{"_Position":{"__isSmartRef__":true,"id":18639},"renderContextTable":{"__isSmartRef__":true,"id":18640},"_Extent":{"__isSmartRef__":true,"id":18641},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18639":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18640":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18641":{"x":81,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18642":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18643":{"style":{"__isSmartRef__":true,"id":18644},"chunkOwner":{"__isSmartRef__":true,"id":18637},"storedString":"isDirty","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18644":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18645":{"style":{"__isSmartRef__":true,"id":18646},"chunkOwner":{"__isSmartRef__":true,"id":18637},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18646":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18647":{"morph":{"__isSmartRef__":true,"id":18637},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18648":{"x":105,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18649":{"layoutText":{"__isSmartRef__":true,"id":18650}},"18650":{"varMapping":{"__isSmartRef__":true,"id":18651},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18652},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18651":{"this":{"__isSmartRef__":true,"id":18637}},"18652":{},"18653":{"_Position":{"__isSmartRef__":true,"id":18654},"renderContextTable":{"__isSmartRef__":true,"id":18655},"_Extent":{"__isSmartRef__":true,"id":18656},"_Padding":{"__isSmartRef__":true,"id":18657},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18654":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18655":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18656":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18657":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18658":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18659":{"morph":{"__isSmartRef__":true,"id":18619},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18660":{"resizeWidth":true},"18661":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18662":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18663":{"updateExpanderColor":{"__isSmartRef__":true,"id":18664},"onMouseDown":{"__isSmartRef__":true,"id":18667},"isRoot":{"__isSmartRef__":true,"id":18674},"displayValue":{"__isSmartRef__":true,"id":18677},"update":{"__isSmartRef__":true,"id":18680}},"18664":{"varMapping":{"__isSmartRef__":true,"id":18665},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18665":{"this":{"__isSmartRef__":true,"id":18619}},"18666":{},"18667":{"varMapping":{"__isSmartRef__":true,"id":18668},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18668":{"this":{"__isSmartRef__":true,"id":18619},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18669}},"18669":{"$super":{"__isSmartRef__":true,"id":18670}},"18670":{"varMapping":{"__isSmartRef__":true,"id":18671},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18672},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18671":{"obj":{"__isSmartRef__":true,"id":18619},"name":"onMouseDown"},"18672":{},"18673":{},"18674":{"varMapping":{"__isSmartRef__":true,"id":18675},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18676},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18675":{"this":{"__isSmartRef__":true,"id":18619}},"18676":{},"18677":{"varMapping":{"__isSmartRef__":true,"id":18678},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18679},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18678":{"this":{"__isSmartRef__":true,"id":18619}},"18679":{},"18680":{"varMapping":{"__isSmartRef__":true,"id":18681},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18681":{"this":{"__isSmartRef__":true,"id":18619}},"18682":{},"18683":{"_Position":{"__isSmartRef__":true,"id":18684},"renderContextTable":{"__isSmartRef__":true,"id":18685},"_Extent":{"__isSmartRef__":true,"id":18686},"_Padding":{"__isSmartRef__":true,"id":18687},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18684":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18685":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18686":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18687":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18688":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18689":{"morph":{"__isSmartRef__":true,"id":18618},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18690":{"layouter":{"__isSmartRef__":true,"id":18691},"resizeWidth":true},"18691":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18618},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18692":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18693":{"x":0,"y":340,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18694":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18695}},"18695":{"varMapping":{"__isSmartRef__":true,"id":18696},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18701},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18696":{"this":{"__isSmartRef__":true,"id":18618},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18697}},"18697":{"$super":{"__isSmartRef__":true,"id":18698}},"18698":{"varMapping":{"__isSmartRef__":true,"id":18699},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18700},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18699":{"obj":{"__isSmartRef__":true,"id":18618},"name":"getLayoutableSubmorphs"},"18700":{},"18701":{},"18702":{"submorphs":[{"__isSmartRef__":true,"id":18703}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18767},"derivationIds":[null],"id":"71C1C466-CB3D-4E71-AA25-24AF22A022E5","renderContextTable":{"__isSmartRef__":true,"id":18772},"eventHandler":{"__isSmartRef__":true,"id":18773},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18774},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18776},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18777},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18778},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18703":{"submorphs":[{"__isSmartRef__":true,"id":18704},{"__isSmartRef__":true,"id":18721}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18737},"derivationIds":[null],"id":"C4BC1163-CAB9-4373-B381-C4928F2861EB","renderContextTable":{"__isSmartRef__":true,"id":18742},"eventHandler":{"__isSmartRef__":true,"id":18743},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18744},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"isGem","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18704},"text":{"__isSmartRef__":true,"id":18721},"owner":{"__isSmartRef__":true,"id":18702},"_Position":{"__isSmartRef__":true,"id":18745},"priorExtent":{"__isSmartRef__":true,"id":18746},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18747},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18704":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18705},"derivationIds":[null],"id":"43F2A4C2-9661-4935-9889-38B7C735A671","renderContextTable":{"__isSmartRef__":true,"id":18711},"eventHandler":{"__isSmartRef__":true,"id":18712},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18713},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18714},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18705":{"_Position":{"__isSmartRef__":true,"id":18706},"renderContextTable":{"__isSmartRef__":true,"id":18707},"_Extent":{"__isSmartRef__":true,"id":18708},"_Padding":{"__isSmartRef__":true,"id":18709},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18710},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18706":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18707":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18708":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18709":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18710":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18711":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18712":{"morph":{"__isSmartRef__":true,"id":18704},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18713":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18714":{"toggle":{"__isSmartRef__":true,"id":18715},"toggleExpansion":{"__isSmartRef__":true,"id":18718}},"18715":{"varMapping":{"__isSmartRef__":true,"id":18716},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18717},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18716":{"this":{"__isSmartRef__":true,"id":18704}},"18717":{},"18718":{"varMapping":{"__isSmartRef__":true,"id":18719},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18720},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18719":{"this":{"__isSmartRef__":true,"id":18704}},"18720":{},"18721":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18722},"derivationIds":[null],"id":"51A260C0-DF6B-4FF7-AFF8-1A50010520C8","renderContextTable":{"__isSmartRef__":true,"id":18726},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18727},{"__isSmartRef__":true,"id":18729}],"eventHandler":{"__isSmartRef__":true,"id":18731},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18732},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18733},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18722":{"_Position":{"__isSmartRef__":true,"id":18723},"renderContextTable":{"__isSmartRef__":true,"id":18724},"_Extent":{"__isSmartRef__":true,"id":18725},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18723":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18724":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18725":{"x":76,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18726":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18727":{"style":{"__isSmartRef__":true,"id":18728},"chunkOwner":{"__isSmartRef__":true,"id":18721},"storedString":"isGem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18728":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18729":{"style":{"__isSmartRef__":true,"id":18730},"chunkOwner":{"__isSmartRef__":true,"id":18721},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18730":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18731":{"morph":{"__isSmartRef__":true,"id":18721},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18732":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18733":{"layoutText":{"__isSmartRef__":true,"id":18734}},"18734":{"varMapping":{"__isSmartRef__":true,"id":18735},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18735":{"this":{"__isSmartRef__":true,"id":18721}},"18736":{},"18737":{"_Position":{"__isSmartRef__":true,"id":18738},"renderContextTable":{"__isSmartRef__":true,"id":18739},"_Extent":{"__isSmartRef__":true,"id":18740},"_Padding":{"__isSmartRef__":true,"id":18741},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18738":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18739":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18740":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18741":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18742":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18743":{"morph":{"__isSmartRef__":true,"id":18703},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18744":{"resizeWidth":true},"18745":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18746":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18747":{"updateExpanderColor":{"__isSmartRef__":true,"id":18748},"onMouseDown":{"__isSmartRef__":true,"id":18751},"isRoot":{"__isSmartRef__":true,"id":18758},"displayValue":{"__isSmartRef__":true,"id":18761},"update":{"__isSmartRef__":true,"id":18764}},"18748":{"varMapping":{"__isSmartRef__":true,"id":18749},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18749":{"this":{"__isSmartRef__":true,"id":18703}},"18750":{},"18751":{"varMapping":{"__isSmartRef__":true,"id":18752},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18757},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18752":{"this":{"__isSmartRef__":true,"id":18703},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18753}},"18753":{"$super":{"__isSmartRef__":true,"id":18754}},"18754":{"varMapping":{"__isSmartRef__":true,"id":18755},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18756},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18755":{"obj":{"__isSmartRef__":true,"id":18703},"name":"onMouseDown"},"18756":{},"18757":{},"18758":{"varMapping":{"__isSmartRef__":true,"id":18759},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18760},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18759":{"this":{"__isSmartRef__":true,"id":18703}},"18760":{},"18761":{"varMapping":{"__isSmartRef__":true,"id":18762},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18762":{"this":{"__isSmartRef__":true,"id":18703}},"18763":{},"18764":{"varMapping":{"__isSmartRef__":true,"id":18765},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18766},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18765":{"this":{"__isSmartRef__":true,"id":18703}},"18766":{},"18767":{"_Position":{"__isSmartRef__":true,"id":18768},"renderContextTable":{"__isSmartRef__":true,"id":18769},"_Extent":{"__isSmartRef__":true,"id":18770},"_Padding":{"__isSmartRef__":true,"id":18771},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18768":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18769":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18770":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18771":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18772":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18773":{"morph":{"__isSmartRef__":true,"id":18702},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18774":{"layouter":{"__isSmartRef__":true,"id":18775},"resizeWidth":true},"18775":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18702},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18776":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18777":{"x":0,"y":320,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18778":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18779}},"18779":{"varMapping":{"__isSmartRef__":true,"id":18780},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18785},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18780":{"this":{"__isSmartRef__":true,"id":18702},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18781}},"18781":{"$super":{"__isSmartRef__":true,"id":18782}},"18782":{"varMapping":{"__isSmartRef__":true,"id":18783},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18784},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18783":{"obj":{"__isSmartRef__":true,"id":18702},"name":"getLayoutableSubmorphs"},"18784":{},"18785":{},"18786":{"submorphs":[{"__isSmartRef__":true,"id":18787}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18851},"derivationIds":[null],"id":"F151C4B6-55E1-4C0A-AFBD-92733D76D63C","renderContextTable":{"__isSmartRef__":true,"id":18856},"eventHandler":{"__isSmartRef__":true,"id":18857},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18858},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18860},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18861},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18862},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18787":{"submorphs":[{"__isSmartRef__":true,"id":18788},{"__isSmartRef__":true,"id":18805}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18821},"derivationIds":[null],"id":"B18984D2-CF69-416C-B6C3-2CE8A9A43109","renderContextTable":{"__isSmartRef__":true,"id":18826},"eventHandler":{"__isSmartRef__":true,"id":18827},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18828},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"moved","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18788},"text":{"__isSmartRef__":true,"id":18805},"owner":{"__isSmartRef__":true,"id":18786},"_Position":{"__isSmartRef__":true,"id":18829},"priorExtent":{"__isSmartRef__":true,"id":18830},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18831},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18788":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18789},"derivationIds":[null],"id":"C73740E9-A9C6-40AD-B03D-E61C01BF5904","renderContextTable":{"__isSmartRef__":true,"id":18795},"eventHandler":{"__isSmartRef__":true,"id":18796},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18797},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18798},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18789":{"_Position":{"__isSmartRef__":true,"id":18790},"renderContextTable":{"__isSmartRef__":true,"id":18791},"_Extent":{"__isSmartRef__":true,"id":18792},"_Padding":{"__isSmartRef__":true,"id":18793},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18794},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18790":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18791":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18792":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18793":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18794":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18795":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18796":{"morph":{"__isSmartRef__":true,"id":18788},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18797":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18798":{"toggle":{"__isSmartRef__":true,"id":18799},"toggleExpansion":{"__isSmartRef__":true,"id":18802}},"18799":{"varMapping":{"__isSmartRef__":true,"id":18800},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18801},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18800":{"this":{"__isSmartRef__":true,"id":18788}},"18801":{},"18802":{"varMapping":{"__isSmartRef__":true,"id":18803},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18804},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18803":{"this":{"__isSmartRef__":true,"id":18788}},"18804":{},"18805":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18806},"derivationIds":[null],"id":"FC48E4F2-8B38-43F0-AF72-631A7D91FAE9","renderContextTable":{"__isSmartRef__":true,"id":18810},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18811},{"__isSmartRef__":true,"id":18813}],"eventHandler":{"__isSmartRef__":true,"id":18815},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18816},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18817},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18806":{"_Position":{"__isSmartRef__":true,"id":18807},"renderContextTable":{"__isSmartRef__":true,"id":18808},"_Extent":{"__isSmartRef__":true,"id":18809},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18807":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18808":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18809":{"x":77,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18810":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18811":{"style":{"__isSmartRef__":true,"id":18812},"chunkOwner":{"__isSmartRef__":true,"id":18805},"storedString":"moved","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18812":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18813":{"style":{"__isSmartRef__":true,"id":18814},"chunkOwner":{"__isSmartRef__":true,"id":18805},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18814":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18815":{"morph":{"__isSmartRef__":true,"id":18805},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18816":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18817":{"layoutText":{"__isSmartRef__":true,"id":18818}},"18818":{"varMapping":{"__isSmartRef__":true,"id":18819},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18820},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18819":{"this":{"__isSmartRef__":true,"id":18805}},"18820":{},"18821":{"_Position":{"__isSmartRef__":true,"id":18822},"renderContextTable":{"__isSmartRef__":true,"id":18823},"_Extent":{"__isSmartRef__":true,"id":18824},"_Padding":{"__isSmartRef__":true,"id":18825},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18822":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18823":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18824":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18825":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18826":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18827":{"morph":{"__isSmartRef__":true,"id":18787},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18828":{"resizeWidth":true},"18829":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18830":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18831":{"updateExpanderColor":{"__isSmartRef__":true,"id":18832},"onMouseDown":{"__isSmartRef__":true,"id":18835},"isRoot":{"__isSmartRef__":true,"id":18842},"displayValue":{"__isSmartRef__":true,"id":18845},"update":{"__isSmartRef__":true,"id":18848}},"18832":{"varMapping":{"__isSmartRef__":true,"id":18833},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18834},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18833":{"this":{"__isSmartRef__":true,"id":18787}},"18834":{},"18835":{"varMapping":{"__isSmartRef__":true,"id":18836},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18841},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18836":{"this":{"__isSmartRef__":true,"id":18787},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18837}},"18837":{"$super":{"__isSmartRef__":true,"id":18838}},"18838":{"varMapping":{"__isSmartRef__":true,"id":18839},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18840},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18839":{"obj":{"__isSmartRef__":true,"id":18787},"name":"onMouseDown"},"18840":{},"18841":{},"18842":{"varMapping":{"__isSmartRef__":true,"id":18843},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18844},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18843":{"this":{"__isSmartRef__":true,"id":18787}},"18844":{},"18845":{"varMapping":{"__isSmartRef__":true,"id":18846},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18847},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18846":{"this":{"__isSmartRef__":true,"id":18787}},"18847":{},"18848":{"varMapping":{"__isSmartRef__":true,"id":18849},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18849":{"this":{"__isSmartRef__":true,"id":18787}},"18850":{},"18851":{"_Position":{"__isSmartRef__":true,"id":18852},"renderContextTable":{"__isSmartRef__":true,"id":18853},"_Extent":{"__isSmartRef__":true,"id":18854},"_Padding":{"__isSmartRef__":true,"id":18855},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18852":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18853":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18854":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18855":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18856":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18857":{"morph":{"__isSmartRef__":true,"id":18786},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18858":{"layouter":{"__isSmartRef__":true,"id":18859},"resizeWidth":true},"18859":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18786},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18860":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18861":{"x":0,"y":300,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18862":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18863}},"18863":{"varMapping":{"__isSmartRef__":true,"id":18864},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18869},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18864":{"this":{"__isSmartRef__":true,"id":18786},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18865}},"18865":{"$super":{"__isSmartRef__":true,"id":18866}},"18866":{"varMapping":{"__isSmartRef__":true,"id":18867},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18868},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18867":{"obj":{"__isSmartRef__":true,"id":18786},"name":"getLayoutableSubmorphs"},"18868":{},"18869":{},"18870":{"submorphs":[{"__isSmartRef__":true,"id":18871}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18935},"derivationIds":[null],"id":"96C609EC-A6F7-4078-A226-DF753150A122","renderContextTable":{"__isSmartRef__":true,"id":18940},"eventHandler":{"__isSmartRef__":true,"id":18941},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18942},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":18944},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":18945},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18946},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18871":{"submorphs":[{"__isSmartRef__":true,"id":18872},{"__isSmartRef__":true,"id":18889}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18905},"derivationIds":[null],"id":"D466831F-C966-4AE2-9AB4-E01AE0A70C87","renderContextTable":{"__isSmartRef__":true,"id":18910},"eventHandler":{"__isSmartRef__":true,"id":18911},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18912},"grabbingEnabled":false,"draggingEnabled":false,"data":"BasicGem","propertyList":["0","1","2","3","4","5","6","7"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"name","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18872},"text":{"__isSmartRef__":true,"id":18889},"owner":{"__isSmartRef__":true,"id":18870},"_Position":{"__isSmartRef__":true,"id":18913},"priorExtent":{"__isSmartRef__":true,"id":18914},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18915},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18872":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18873},"derivationIds":[null],"id":"D2BDC787-008C-4F9A-A4DE-54967DC7AD49","renderContextTable":{"__isSmartRef__":true,"id":18879},"eventHandler":{"__isSmartRef__":true,"id":18880},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18881},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18871},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18882},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18873":{"_Position":{"__isSmartRef__":true,"id":18874},"renderContextTable":{"__isSmartRef__":true,"id":18875},"_Extent":{"__isSmartRef__":true,"id":18876},"_Padding":{"__isSmartRef__":true,"id":18877},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18878},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18874":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18875":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18876":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18877":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18878":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18879":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18880":{"morph":{"__isSmartRef__":true,"id":18872},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18881":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18882":{"toggle":{"__isSmartRef__":true,"id":18883},"toggleExpansion":{"__isSmartRef__":true,"id":18886}},"18883":{"varMapping":{"__isSmartRef__":true,"id":18884},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18885},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18884":{"this":{"__isSmartRef__":true,"id":18872}},"18885":{},"18886":{"varMapping":{"__isSmartRef__":true,"id":18887},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18888},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18887":{"this":{"__isSmartRef__":true,"id":18872}},"18888":{},"18889":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18890},"derivationIds":[null],"id":"4D331448-791F-4DE0-A33D-94283D3451F4","renderContextTable":{"__isSmartRef__":true,"id":18894},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18895},{"__isSmartRef__":true,"id":18897}],"eventHandler":{"__isSmartRef__":true,"id":18899},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18900},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18871},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18901},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18890":{"_Position":{"__isSmartRef__":true,"id":18891},"renderContextTable":{"__isSmartRef__":true,"id":18892},"_Extent":{"__isSmartRef__":true,"id":18893},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18891":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18892":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18893":{"x":109,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18894":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18895":{"style":{"__isSmartRef__":true,"id":18896},"chunkOwner":{"__isSmartRef__":true,"id":18889},"storedString":"name","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18896":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18897":{"style":{"__isSmartRef__":true,"id":18898},"chunkOwner":{"__isSmartRef__":true,"id":18889},"storedString":": BasicGem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18898":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18899":{"morph":{"__isSmartRef__":true,"id":18889},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18900":{"x":105,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18901":{"layoutText":{"__isSmartRef__":true,"id":18902}},"18902":{"varMapping":{"__isSmartRef__":true,"id":18903},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18903":{"this":{"__isSmartRef__":true,"id":18889}},"18904":{},"18905":{"_Position":{"__isSmartRef__":true,"id":18906},"renderContextTable":{"__isSmartRef__":true,"id":18907},"_Extent":{"__isSmartRef__":true,"id":18908},"_Padding":{"__isSmartRef__":true,"id":18909},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18906":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18907":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18908":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18909":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18910":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18911":{"morph":{"__isSmartRef__":true,"id":18871},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18912":{"resizeWidth":true},"18913":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18914":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18915":{"updateExpanderColor":{"__isSmartRef__":true,"id":18916},"onMouseDown":{"__isSmartRef__":true,"id":18919},"isRoot":{"__isSmartRef__":true,"id":18926},"displayValue":{"__isSmartRef__":true,"id":18929},"update":{"__isSmartRef__":true,"id":18932}},"18916":{"varMapping":{"__isSmartRef__":true,"id":18917},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":18918},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18917":{"this":{"__isSmartRef__":true,"id":18871}},"18918":{},"18919":{"varMapping":{"__isSmartRef__":true,"id":18920},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":18925},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18920":{"this":{"__isSmartRef__":true,"id":18871},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18921}},"18921":{"$super":{"__isSmartRef__":true,"id":18922}},"18922":{"varMapping":{"__isSmartRef__":true,"id":18923},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18924},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18923":{"obj":{"__isSmartRef__":true,"id":18871},"name":"onMouseDown"},"18924":{},"18925":{},"18926":{"varMapping":{"__isSmartRef__":true,"id":18927},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":18928},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18927":{"this":{"__isSmartRef__":true,"id":18871}},"18928":{},"18929":{"varMapping":{"__isSmartRef__":true,"id":18930},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":18931},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18930":{"this":{"__isSmartRef__":true,"id":18871}},"18931":{},"18932":{"varMapping":{"__isSmartRef__":true,"id":18933},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18934},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18933":{"this":{"__isSmartRef__":true,"id":18871}},"18934":{},"18935":{"_Position":{"__isSmartRef__":true,"id":18936},"renderContextTable":{"__isSmartRef__":true,"id":18937},"_Extent":{"__isSmartRef__":true,"id":18938},"_Padding":{"__isSmartRef__":true,"id":18939},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18936":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18937":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18938":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18939":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18940":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18941":{"morph":{"__isSmartRef__":true,"id":18870},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18942":{"layouter":{"__isSmartRef__":true,"id":18943},"resizeWidth":true},"18943":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18870},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"18944":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18945":{"x":0,"y":280,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18946":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":18947}},"18947":{"varMapping":{"__isSmartRef__":true,"id":18948},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":18953},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18948":{"this":{"__isSmartRef__":true,"id":18870},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18949}},"18949":{"$super":{"__isSmartRef__":true,"id":18950}},"18950":{"varMapping":{"__isSmartRef__":true,"id":18951},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":18952},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18951":{"obj":{"__isSmartRef__":true,"id":18870},"name":"getLayoutableSubmorphs"},"18952":{},"18953":{},"18954":{"submorphs":[{"__isSmartRef__":true,"id":18955}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19019},"derivationIds":[null],"id":"B5B8FF8B-6CA3-4A91-8564-EB5F5EBAA428","renderContextTable":{"__isSmartRef__":true,"id":19024},"eventHandler":{"__isSmartRef__":true,"id":19025},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19026},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19028},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19029},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19030},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18955":{"submorphs":[{"__isSmartRef__":true,"id":18956},{"__isSmartRef__":true,"id":18973}],"scripts":[],"shape":{"__isSmartRef__":true,"id":18989},"derivationIds":[null],"id":"115F2C19-AFF7-45B9-8007-DBBF52F7195A","renderContextTable":{"__isSmartRef__":true,"id":18994},"eventHandler":{"__isSmartRef__":true,"id":18995},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":18996},"grabbingEnabled":false,"draggingEnabled":false,"data":[null,null,null,null],"propertyList":["0","1","2","3"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"neighbours","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":18956},"text":{"__isSmartRef__":true,"id":18973},"owner":{"__isSmartRef__":true,"id":18954},"_Position":{"__isSmartRef__":true,"id":18997},"priorExtent":{"__isSmartRef__":true,"id":18998},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18999},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"18956":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18957},"derivationIds":[null],"id":"1C40F393-F8AD-4A4A-BA05-7993FDE1A2EE","renderContextTable":{"__isSmartRef__":true,"id":18963},"eventHandler":{"__isSmartRef__":true,"id":18964},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":18965},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":18955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18966},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"18957":{"_Position":{"__isSmartRef__":true,"id":18958},"renderContextTable":{"__isSmartRef__":true,"id":18959},"_Extent":{"__isSmartRef__":true,"id":18960},"_Padding":{"__isSmartRef__":true,"id":18961},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":18962},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18958":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18959":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18960":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18961":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18962":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18963":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18964":{"morph":{"__isSmartRef__":true,"id":18956},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18965":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18966":{"toggle":{"__isSmartRef__":true,"id":18967},"toggleExpansion":{"__isSmartRef__":true,"id":18970}},"18967":{"varMapping":{"__isSmartRef__":true,"id":18968},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":18969},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18968":{"this":{"__isSmartRef__":true,"id":18956}},"18969":{},"18970":{"varMapping":{"__isSmartRef__":true,"id":18971},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":18972},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18971":{"this":{"__isSmartRef__":true,"id":18956}},"18972":{},"18973":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":18974},"derivationIds":[null],"id":"11875AF9-699A-49BA-BD0F-34B287680E7D","renderContextTable":{"__isSmartRef__":true,"id":18978},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":18979},{"__isSmartRef__":true,"id":18981}],"eventHandler":{"__isSmartRef__":true,"id":18983},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":18984},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":18955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18985},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18974":{"_Position":{"__isSmartRef__":true,"id":18975},"renderContextTable":{"__isSmartRef__":true,"id":18976},"_Extent":{"__isSmartRef__":true,"id":18977},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18975":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18976":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18977":{"x":99,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18978":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"18979":{"style":{"__isSmartRef__":true,"id":18980},"chunkOwner":{"__isSmartRef__":true,"id":18973},"storedString":"neighbours","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18980":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18981":{"style":{"__isSmartRef__":true,"id":18982},"chunkOwner":{"__isSmartRef__":true,"id":18973},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18982":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"18983":{"morph":{"__isSmartRef__":true,"id":18973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18984":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18985":{"layoutText":{"__isSmartRef__":true,"id":18986}},"18986":{"varMapping":{"__isSmartRef__":true,"id":18987},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":18988},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"18987":{"this":{"__isSmartRef__":true,"id":18973}},"18988":{},"18989":{"_Position":{"__isSmartRef__":true,"id":18990},"renderContextTable":{"__isSmartRef__":true,"id":18991},"_Extent":{"__isSmartRef__":true,"id":18992},"_Padding":{"__isSmartRef__":true,"id":18993},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"18990":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18991":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"18992":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18993":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18994":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"18995":{"morph":{"__isSmartRef__":true,"id":18955},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"18996":{"resizeWidth":true},"18997":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18998":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"18999":{"updateExpanderColor":{"__isSmartRef__":true,"id":19000},"onMouseDown":{"__isSmartRef__":true,"id":19003},"isRoot":{"__isSmartRef__":true,"id":19010},"displayValue":{"__isSmartRef__":true,"id":19013},"update":{"__isSmartRef__":true,"id":19016}},"19000":{"varMapping":{"__isSmartRef__":true,"id":19001},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19002},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19001":{"this":{"__isSmartRef__":true,"id":18955}},"19002":{},"19003":{"varMapping":{"__isSmartRef__":true,"id":19004},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19009},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19004":{"this":{"__isSmartRef__":true,"id":18955},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19005}},"19005":{"$super":{"__isSmartRef__":true,"id":19006}},"19006":{"varMapping":{"__isSmartRef__":true,"id":19007},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19008},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19007":{"obj":{"__isSmartRef__":true,"id":18955},"name":"onMouseDown"},"19008":{},"19009":{},"19010":{"varMapping":{"__isSmartRef__":true,"id":19011},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19012},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19011":{"this":{"__isSmartRef__":true,"id":18955}},"19012":{},"19013":{"varMapping":{"__isSmartRef__":true,"id":19014},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19015},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19014":{"this":{"__isSmartRef__":true,"id":18955}},"19015":{},"19016":{"varMapping":{"__isSmartRef__":true,"id":19017},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19018},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19017":{"this":{"__isSmartRef__":true,"id":18955}},"19018":{},"19019":{"_Position":{"__isSmartRef__":true,"id":19020},"renderContextTable":{"__isSmartRef__":true,"id":19021},"_Extent":{"__isSmartRef__":true,"id":19022},"_Padding":{"__isSmartRef__":true,"id":19023},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19020":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19021":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19022":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19023":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19024":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19025":{"morph":{"__isSmartRef__":true,"id":18954},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19026":{"layouter":{"__isSmartRef__":true,"id":19027},"resizeWidth":true},"19027":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":18954},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19028":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19029":{"x":0,"y":260,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19030":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19031}},"19031":{"varMapping":{"__isSmartRef__":true,"id":19032},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19037},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19032":{"this":{"__isSmartRef__":true,"id":18954},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19033}},"19033":{"$super":{"__isSmartRef__":true,"id":19034}},"19034":{"varMapping":{"__isSmartRef__":true,"id":19035},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19036},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19035":{"obj":{"__isSmartRef__":true,"id":18954},"name":"getLayoutableSubmorphs"},"19036":{},"19037":{},"19038":{"submorphs":[{"__isSmartRef__":true,"id":19039}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19103},"derivationIds":[null],"id":"796C3F96-4E9F-4043-8CBD-48030A9B4B07","renderContextTable":{"__isSmartRef__":true,"id":19108},"eventHandler":{"__isSmartRef__":true,"id":19109},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19110},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19112},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19113},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19114},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19039":{"submorphs":[{"__isSmartRef__":true,"id":19040},{"__isSmartRef__":true,"id":19057}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19073},"derivationIds":[null],"id":"1A71DC83-BC7F-49C4-91B6-4E056E455C5E","renderContextTable":{"__isSmartRef__":true,"id":19078},"eventHandler":{"__isSmartRef__":true,"id":19079},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19080},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":15903},"propertyList":["submorphs","scripts","id","shape","droppingEnabled","halosEnabled","registeredForMouseEvents","_Position","showsHalos","name","partsBinMetaInfo","__SourceModuleName__","renderContextTable","eventHandler","attributeConnections","doNotSerialize","doNotCopyProperties","derivationIds","partTests","_ClipMode","owner","moved","isBeingDragged","markedGem","isPrototypeBox","_renderContext","_isRendered","_Rotation","_Scale"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"owner","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19040},"text":{"__isSmartRef__":true,"id":19057},"owner":{"__isSmartRef__":true,"id":19038},"_Position":{"__isSmartRef__":true,"id":19081},"priorExtent":{"__isSmartRef__":true,"id":19082},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19083},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19040":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19041},"derivationIds":[null],"id":"2FFEC9DD-0F7F-40AD-A9C9-54CE472688F2","renderContextTable":{"__isSmartRef__":true,"id":19047},"eventHandler":{"__isSmartRef__":true,"id":19048},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19049},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19050},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19041":{"_Position":{"__isSmartRef__":true,"id":19042},"renderContextTable":{"__isSmartRef__":true,"id":19043},"_Extent":{"__isSmartRef__":true,"id":19044},"_Padding":{"__isSmartRef__":true,"id":19045},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19046},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19042":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19043":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19044":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19045":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19046":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19047":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19048":{"morph":{"__isSmartRef__":true,"id":19040},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19049":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19050":{"toggle":{"__isSmartRef__":true,"id":19051},"toggleExpansion":{"__isSmartRef__":true,"id":19054}},"19051":{"varMapping":{"__isSmartRef__":true,"id":19052},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19053},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19052":{"this":{"__isSmartRef__":true,"id":19040}},"19053":{},"19054":{"varMapping":{"__isSmartRef__":true,"id":19055},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19056},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19055":{"this":{"__isSmartRef__":true,"id":19040}},"19056":{},"19057":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19058},"derivationIds":[null],"id":"2D7F2682-B80D-4C63-A47C-06D2A3699364","renderContextTable":{"__isSmartRef__":true,"id":19062},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19063},{"__isSmartRef__":true,"id":19065}],"eventHandler":{"__isSmartRef__":true,"id":19067},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19068},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19069},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19058":{"_Position":{"__isSmartRef__":true,"id":19059},"renderContextTable":{"__isSmartRef__":true,"id":19060},"_Extent":{"__isSmartRef__":true,"id":19061},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19059":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19060":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19061":{"x":129,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19062":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19063":{"style":{"__isSmartRef__":true,"id":19064},"chunkOwner":{"__isSmartRef__":true,"id":19057},"storedString":"owner","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19064":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19065":{"style":{"__isSmartRef__":true,"id":19066},"chunkOwner":{"__isSmartRef__":true,"id":19057},"storedString":": PrototypeBox","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19066":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19067":{"morph":{"__isSmartRef__":true,"id":19057},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19068":{"x":142.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19069":{"layoutText":{"__isSmartRef__":true,"id":19070}},"19070":{"varMapping":{"__isSmartRef__":true,"id":19071},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19072},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19071":{"this":{"__isSmartRef__":true,"id":19057}},"19072":{},"19073":{"_Position":{"__isSmartRef__":true,"id":19074},"renderContextTable":{"__isSmartRef__":true,"id":19075},"_Extent":{"__isSmartRef__":true,"id":19076},"_Padding":{"__isSmartRef__":true,"id":19077},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19074":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19075":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19076":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19077":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19078":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19079":{"morph":{"__isSmartRef__":true,"id":19039},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19080":{"resizeWidth":true},"19081":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19082":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19083":{"updateExpanderColor":{"__isSmartRef__":true,"id":19084},"onMouseDown":{"__isSmartRef__":true,"id":19087},"isRoot":{"__isSmartRef__":true,"id":19094},"displayValue":{"__isSmartRef__":true,"id":19097},"update":{"__isSmartRef__":true,"id":19100}},"19084":{"varMapping":{"__isSmartRef__":true,"id":19085},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19086},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19085":{"this":{"__isSmartRef__":true,"id":19039}},"19086":{},"19087":{"varMapping":{"__isSmartRef__":true,"id":19088},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19093},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19088":{"this":{"__isSmartRef__":true,"id":19039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19089}},"19089":{"$super":{"__isSmartRef__":true,"id":19090}},"19090":{"varMapping":{"__isSmartRef__":true,"id":19091},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19091":{"obj":{"__isSmartRef__":true,"id":19039},"name":"onMouseDown"},"19092":{},"19093":{},"19094":{"varMapping":{"__isSmartRef__":true,"id":19095},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19096},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19095":{"this":{"__isSmartRef__":true,"id":19039}},"19096":{},"19097":{"varMapping":{"__isSmartRef__":true,"id":19098},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19098":{"this":{"__isSmartRef__":true,"id":19039}},"19099":{},"19100":{"varMapping":{"__isSmartRef__":true,"id":19101},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19102},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19101":{"this":{"__isSmartRef__":true,"id":19039}},"19102":{},"19103":{"_Position":{"__isSmartRef__":true,"id":19104},"renderContextTable":{"__isSmartRef__":true,"id":19105},"_Extent":{"__isSmartRef__":true,"id":19106},"_Padding":{"__isSmartRef__":true,"id":19107},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19104":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19105":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19106":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19107":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19108":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19109":{"morph":{"__isSmartRef__":true,"id":19038},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19110":{"layouter":{"__isSmartRef__":true,"id":19111},"resizeWidth":true},"19111":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19038},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19112":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19113":{"x":0,"y":240,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19114":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19115}},"19115":{"varMapping":{"__isSmartRef__":true,"id":19116},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19121},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19116":{"this":{"__isSmartRef__":true,"id":19038},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19117}},"19117":{"$super":{"__isSmartRef__":true,"id":19118}},"19118":{"varMapping":{"__isSmartRef__":true,"id":19119},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19119":{"obj":{"__isSmartRef__":true,"id":19038},"name":"getLayoutableSubmorphs"},"19120":{},"19121":{},"19122":{"submorphs":[{"__isSmartRef__":true,"id":19123}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19187},"derivationIds":[null],"id":"9D181CB9-664C-4E6E-B4DA-502A7BBC50A5","renderContextTable":{"__isSmartRef__":true,"id":19192},"eventHandler":{"__isSmartRef__":true,"id":19193},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19194},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19196},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19197},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19198},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19123":{"submorphs":[{"__isSmartRef__":true,"id":19124},{"__isSmartRef__":true,"id":19141}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19157},"derivationIds":[null],"id":"ADE93F6E-F773-4A07-A65B-E38F1F099F25","renderContextTable":{"__isSmartRef__":true,"id":19162},"eventHandler":{"__isSmartRef__":true,"id":19163},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19164},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":16004},"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"partTests","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19124},"text":{"__isSmartRef__":true,"id":19141},"owner":{"__isSmartRef__":true,"id":19122},"_Position":{"__isSmartRef__":true,"id":19165},"priorExtent":{"__isSmartRef__":true,"id":19166},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19167},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19124":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19125},"derivationIds":[null],"id":"E1F7944D-C569-4F50-BEB9-7BF1604136DC","renderContextTable":{"__isSmartRef__":true,"id":19131},"eventHandler":{"__isSmartRef__":true,"id":19132},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19133},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19134},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19125":{"_Position":{"__isSmartRef__":true,"id":19126},"renderContextTable":{"__isSmartRef__":true,"id":19127},"_Extent":{"__isSmartRef__":true,"id":19128},"_Padding":{"__isSmartRef__":true,"id":19129},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19130},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19126":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19127":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19128":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19129":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19130":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19131":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19132":{"morph":{"__isSmartRef__":true,"id":19124},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19133":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19134":{"toggle":{"__isSmartRef__":true,"id":19135},"toggleExpansion":{"__isSmartRef__":true,"id":19138}},"19135":{"varMapping":{"__isSmartRef__":true,"id":19136},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19136":{"this":{"__isSmartRef__":true,"id":19124}},"19137":{},"19138":{"varMapping":{"__isSmartRef__":true,"id":19139},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19140},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19139":{"this":{"__isSmartRef__":true,"id":19124}},"19140":{},"19141":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19142},"derivationIds":[null],"id":"962D9534-548D-4C87-ADF0-B8FDA888C454","renderContextTable":{"__isSmartRef__":true,"id":19146},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19147},{"__isSmartRef__":true,"id":19149}],"eventHandler":{"__isSmartRef__":true,"id":19151},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19152},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19153},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19142":{"_Position":{"__isSmartRef__":true,"id":19143},"renderContextTable":{"__isSmartRef__":true,"id":19144},"_Extent":{"__isSmartRef__":true,"id":19145},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19143":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19144":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19145":{"x":79,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19146":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19147":{"style":{"__isSmartRef__":true,"id":19148},"chunkOwner":{"__isSmartRef__":true,"id":19141},"storedString":"partTests","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19148":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19149":{"style":{"__isSmartRef__":true,"id":19150},"chunkOwner":{"__isSmartRef__":true,"id":19141},"storedString":": {}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19150":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19151":{"morph":{"__isSmartRef__":true,"id":19141},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19152":{"x":97.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19153":{"layoutText":{"__isSmartRef__":true,"id":19154}},"19154":{"varMapping":{"__isSmartRef__":true,"id":19155},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19155":{"this":{"__isSmartRef__":true,"id":19141}},"19156":{},"19157":{"_Position":{"__isSmartRef__":true,"id":19158},"renderContextTable":{"__isSmartRef__":true,"id":19159},"_Extent":{"__isSmartRef__":true,"id":19160},"_Padding":{"__isSmartRef__":true,"id":19161},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19158":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19159":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19160":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19161":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19162":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19163":{"morph":{"__isSmartRef__":true,"id":19123},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19164":{"resizeWidth":true},"19165":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19166":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19167":{"updateExpanderColor":{"__isSmartRef__":true,"id":19168},"onMouseDown":{"__isSmartRef__":true,"id":19171},"isRoot":{"__isSmartRef__":true,"id":19178},"displayValue":{"__isSmartRef__":true,"id":19181},"update":{"__isSmartRef__":true,"id":19184}},"19168":{"varMapping":{"__isSmartRef__":true,"id":19169},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19170},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19169":{"this":{"__isSmartRef__":true,"id":19123}},"19170":{},"19171":{"varMapping":{"__isSmartRef__":true,"id":19172},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19177},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19172":{"this":{"__isSmartRef__":true,"id":19123},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19173}},"19173":{"$super":{"__isSmartRef__":true,"id":19174}},"19174":{"varMapping":{"__isSmartRef__":true,"id":19175},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19175":{"obj":{"__isSmartRef__":true,"id":19123},"name":"onMouseDown"},"19176":{},"19177":{},"19178":{"varMapping":{"__isSmartRef__":true,"id":19179},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19179":{"this":{"__isSmartRef__":true,"id":19123}},"19180":{},"19181":{"varMapping":{"__isSmartRef__":true,"id":19182},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19183},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19182":{"this":{"__isSmartRef__":true,"id":19123}},"19183":{},"19184":{"varMapping":{"__isSmartRef__":true,"id":19185},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19186},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19185":{"this":{"__isSmartRef__":true,"id":19123}},"19186":{},"19187":{"_Position":{"__isSmartRef__":true,"id":19188},"renderContextTable":{"__isSmartRef__":true,"id":19189},"_Extent":{"__isSmartRef__":true,"id":19190},"_Padding":{"__isSmartRef__":true,"id":19191},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19188":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19189":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19190":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19191":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19192":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19193":{"morph":{"__isSmartRef__":true,"id":19122},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19194":{"layouter":{"__isSmartRef__":true,"id":19195},"resizeWidth":true},"19195":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19122},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19196":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19197":{"x":0,"y":220,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19198":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19199}},"19199":{"varMapping":{"__isSmartRef__":true,"id":19200},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19205},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19200":{"this":{"__isSmartRef__":true,"id":19122},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19201}},"19201":{"$super":{"__isSmartRef__":true,"id":19202}},"19202":{"varMapping":{"__isSmartRef__":true,"id":19203},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19203":{"obj":{"__isSmartRef__":true,"id":19122},"name":"getLayoutableSubmorphs"},"19204":{},"19205":{},"19206":{"submorphs":[{"__isSmartRef__":true,"id":19207}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19271},"derivationIds":[null],"id":"D037BD7C-611A-4DC8-A592-474DE06A03BA","renderContextTable":{"__isSmartRef__":true,"id":19276},"eventHandler":{"__isSmartRef__":true,"id":19277},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19278},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19280},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19281},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19282},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19207":{"submorphs":[{"__isSmartRef__":true,"id":19208},{"__isSmartRef__":true,"id":19225}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19241},"derivationIds":[null],"id":"44EAF834-2A18-4457-A77E-6BD0FFD3F717","renderContextTable":{"__isSmartRef__":true,"id":19246},"eventHandler":{"__isSmartRef__":true,"id":19247},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19248},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":15963},"propertyList":["partsSpaceName","__SourceModuleName__","comment","migrationLevel","partName","changes","revisionOnLoad"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"partsBinMetaInfo","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19208},"text":{"__isSmartRef__":true,"id":19225},"owner":{"__isSmartRef__":true,"id":19206},"_Position":{"__isSmartRef__":true,"id":19249},"priorExtent":{"__isSmartRef__":true,"id":19250},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19251},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19208":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19209},"derivationIds":[null],"id":"535C4A92-A152-4C7C-82FB-E3CB5972D907","renderContextTable":{"__isSmartRef__":true,"id":19215},"eventHandler":{"__isSmartRef__":true,"id":19216},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19217},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19218},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19209":{"_Position":{"__isSmartRef__":true,"id":19210},"renderContextTable":{"__isSmartRef__":true,"id":19211},"_Extent":{"__isSmartRef__":true,"id":19212},"_Padding":{"__isSmartRef__":true,"id":19213},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19214},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19210":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19211":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19212":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19213":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19214":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19215":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19216":{"morph":{"__isSmartRef__":true,"id":19208},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19217":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19218":{"toggle":{"__isSmartRef__":true,"id":19219},"toggleExpansion":{"__isSmartRef__":true,"id":19222}},"19219":{"varMapping":{"__isSmartRef__":true,"id":19220},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19221},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19220":{"this":{"__isSmartRef__":true,"id":19208}},"19221":{},"19222":{"varMapping":{"__isSmartRef__":true,"id":19223},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19224},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19223":{"this":{"__isSmartRef__":true,"id":19208}},"19224":{},"19225":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19226},"derivationIds":[null],"id":"BDE9D7D1-4DE1-4FAF-BF57-2510666EE836","renderContextTable":{"__isSmartRef__":true,"id":19230},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19231},{"__isSmartRef__":true,"id":19233}],"eventHandler":{"__isSmartRef__":true,"id":19235},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19236},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19237},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19226":{"_Position":{"__isSmartRef__":true,"id":19227},"renderContextTable":{"__isSmartRef__":true,"id":19228},"_Extent":{"__isSmartRef__":true,"id":19229},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19227":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19228":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19229":{"x":216,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19230":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19231":{"style":{"__isSmartRef__":true,"id":19232},"chunkOwner":{"__isSmartRef__":true,"id":19225},"storedString":"partsBinMetaInfo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19232":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19233":{"style":{"__isSmartRef__":true,"id":19234},"chunkOwner":{"__isSmartRef__":true,"id":19225},"storedString":": PartsBinMetaInfo","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19234":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19235":{"morph":{"__isSmartRef__":true,"id":19225},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19236":{"x":255,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19237":{"layoutText":{"__isSmartRef__":true,"id":19238}},"19238":{"varMapping":{"__isSmartRef__":true,"id":19239},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19240},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19239":{"this":{"__isSmartRef__":true,"id":19225}},"19240":{},"19241":{"_Position":{"__isSmartRef__":true,"id":19242},"renderContextTable":{"__isSmartRef__":true,"id":19243},"_Extent":{"__isSmartRef__":true,"id":19244},"_Padding":{"__isSmartRef__":true,"id":19245},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19242":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19243":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19244":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19245":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19246":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19247":{"morph":{"__isSmartRef__":true,"id":19207},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19248":{"resizeWidth":true},"19249":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19250":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19251":{"updateExpanderColor":{"__isSmartRef__":true,"id":19252},"onMouseDown":{"__isSmartRef__":true,"id":19255},"isRoot":{"__isSmartRef__":true,"id":19262},"displayValue":{"__isSmartRef__":true,"id":19265},"update":{"__isSmartRef__":true,"id":19268}},"19252":{"varMapping":{"__isSmartRef__":true,"id":19253},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19254},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19253":{"this":{"__isSmartRef__":true,"id":19207}},"19254":{},"19255":{"varMapping":{"__isSmartRef__":true,"id":19256},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19256":{"this":{"__isSmartRef__":true,"id":19207},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19257}},"19257":{"$super":{"__isSmartRef__":true,"id":19258}},"19258":{"varMapping":{"__isSmartRef__":true,"id":19259},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19259":{"obj":{"__isSmartRef__":true,"id":19207},"name":"onMouseDown"},"19260":{},"19261":{},"19262":{"varMapping":{"__isSmartRef__":true,"id":19263},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19264},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19263":{"this":{"__isSmartRef__":true,"id":19207}},"19264":{},"19265":{"varMapping":{"__isSmartRef__":true,"id":19266},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19267},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19266":{"this":{"__isSmartRef__":true,"id":19207}},"19267":{},"19268":{"varMapping":{"__isSmartRef__":true,"id":19269},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19270},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19269":{"this":{"__isSmartRef__":true,"id":19207}},"19270":{},"19271":{"_Position":{"__isSmartRef__":true,"id":19272},"renderContextTable":{"__isSmartRef__":true,"id":19273},"_Extent":{"__isSmartRef__":true,"id":19274},"_Padding":{"__isSmartRef__":true,"id":19275},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19272":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19273":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19274":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19275":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19276":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19277":{"morph":{"__isSmartRef__":true,"id":19206},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19278":{"layouter":{"__isSmartRef__":true,"id":19279},"resizeWidth":true},"19279":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19206},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19280":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19281":{"x":0,"y":200,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19282":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19283}},"19283":{"varMapping":{"__isSmartRef__":true,"id":19284},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19284":{"this":{"__isSmartRef__":true,"id":19206},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19285}},"19285":{"$super":{"__isSmartRef__":true,"id":19286}},"19286":{"varMapping":{"__isSmartRef__":true,"id":19287},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19288},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19287":{"obj":{"__isSmartRef__":true,"id":19206},"name":"getLayoutableSubmorphs"},"19288":{},"19289":{},"19290":{"submorphs":[{"__isSmartRef__":true,"id":19291}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19355},"derivationIds":[null],"id":"E3642647-2C6D-495E-9879-5EEF35DC3617","renderContextTable":{"__isSmartRef__":true,"id":19360},"eventHandler":{"__isSmartRef__":true,"id":19361},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19362},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19364},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19365},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19366},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19291":{"submorphs":[{"__isSmartRef__":true,"id":19292},{"__isSmartRef__":true,"id":19309}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19325},"derivationIds":[null],"id":"ACCB3889-AC27-4FDE-83D1-20E64699B143","renderContextTable":{"__isSmartRef__":true,"id":19330},"eventHandler":{"__isSmartRef__":true,"id":19331},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19332},"grabbingEnabled":false,"draggingEnabled":false,"data":[0,0],"propertyList":["0","1"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"prevScroll","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19292},"text":{"__isSmartRef__":true,"id":19309},"owner":{"__isSmartRef__":true,"id":19290},"_Position":{"__isSmartRef__":true,"id":19333},"priorExtent":{"__isSmartRef__":true,"id":19334},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19335},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19292":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19293},"derivationIds":[null],"id":"7F2CC73F-465B-4FC9-A626-B90AB503BB28","renderContextTable":{"__isSmartRef__":true,"id":19299},"eventHandler":{"__isSmartRef__":true,"id":19300},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19301},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19302},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19293":{"_Position":{"__isSmartRef__":true,"id":19294},"renderContextTable":{"__isSmartRef__":true,"id":19295},"_Extent":{"__isSmartRef__":true,"id":19296},"_Padding":{"__isSmartRef__":true,"id":19297},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19298},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19294":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19295":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19296":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19297":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19298":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19299":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19300":{"morph":{"__isSmartRef__":true,"id":19292},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19301":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19302":{"toggle":{"__isSmartRef__":true,"id":19303},"toggleExpansion":{"__isSmartRef__":true,"id":19306}},"19303":{"varMapping":{"__isSmartRef__":true,"id":19304},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19305},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19304":{"this":{"__isSmartRef__":true,"id":19292}},"19305":{},"19306":{"varMapping":{"__isSmartRef__":true,"id":19307},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19307":{"this":{"__isSmartRef__":true,"id":19292}},"19308":{},"19309":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19310},"derivationIds":[null],"id":"1D56B0D0-4D0E-4BEE-849A-21B6D1814205","renderContextTable":{"__isSmartRef__":true,"id":19314},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19315},{"__isSmartRef__":true,"id":19317}],"eventHandler":{"__isSmartRef__":true,"id":19319},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19320},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19321},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19310":{"_Position":{"__isSmartRef__":true,"id":19311},"renderContextTable":{"__isSmartRef__":true,"id":19312},"_Extent":{"__isSmartRef__":true,"id":19313},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19311":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19312":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19313":{"x":94,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19314":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19315":{"style":{"__isSmartRef__":true,"id":19316},"chunkOwner":{"__isSmartRef__":true,"id":19309},"storedString":"prevScroll","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19316":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19317":{"style":{"__isSmartRef__":true,"id":19318},"chunkOwner":{"__isSmartRef__":true,"id":19309},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19318":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19319":{"morph":{"__isSmartRef__":true,"id":19309},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19320":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19321":{"layoutText":{"__isSmartRef__":true,"id":19322}},"19322":{"varMapping":{"__isSmartRef__":true,"id":19323},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19324},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19323":{"this":{"__isSmartRef__":true,"id":19309}},"19324":{},"19325":{"_Position":{"__isSmartRef__":true,"id":19326},"renderContextTable":{"__isSmartRef__":true,"id":19327},"_Extent":{"__isSmartRef__":true,"id":19328},"_Padding":{"__isSmartRef__":true,"id":19329},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19326":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19327":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19328":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19329":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19330":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19331":{"morph":{"__isSmartRef__":true,"id":19291},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19332":{"resizeWidth":true},"19333":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19334":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19335":{"updateExpanderColor":{"__isSmartRef__":true,"id":19336},"onMouseDown":{"__isSmartRef__":true,"id":19339},"isRoot":{"__isSmartRef__":true,"id":19346},"displayValue":{"__isSmartRef__":true,"id":19349},"update":{"__isSmartRef__":true,"id":19352}},"19336":{"varMapping":{"__isSmartRef__":true,"id":19337},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19338},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19337":{"this":{"__isSmartRef__":true,"id":19291}},"19338":{},"19339":{"varMapping":{"__isSmartRef__":true,"id":19340},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19345},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19340":{"this":{"__isSmartRef__":true,"id":19291},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19341}},"19341":{"$super":{"__isSmartRef__":true,"id":19342}},"19342":{"varMapping":{"__isSmartRef__":true,"id":19343},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19344},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19343":{"obj":{"__isSmartRef__":true,"id":19291},"name":"onMouseDown"},"19344":{},"19345":{},"19346":{"varMapping":{"__isSmartRef__":true,"id":19347},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19348},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19347":{"this":{"__isSmartRef__":true,"id":19291}},"19348":{},"19349":{"varMapping":{"__isSmartRef__":true,"id":19350},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19351},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19350":{"this":{"__isSmartRef__":true,"id":19291}},"19351":{},"19352":{"varMapping":{"__isSmartRef__":true,"id":19353},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19354},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19353":{"this":{"__isSmartRef__":true,"id":19291}},"19354":{},"19355":{"_Position":{"__isSmartRef__":true,"id":19356},"renderContextTable":{"__isSmartRef__":true,"id":19357},"_Extent":{"__isSmartRef__":true,"id":19358},"_Padding":{"__isSmartRef__":true,"id":19359},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19356":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19357":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19358":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19359":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19360":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19361":{"morph":{"__isSmartRef__":true,"id":19290},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19362":{"layouter":{"__isSmartRef__":true,"id":19363},"resizeWidth":true},"19363":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19290},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19364":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19365":{"x":0,"y":180,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19366":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19367}},"19367":{"varMapping":{"__isSmartRef__":true,"id":19368},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19373},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19368":{"this":{"__isSmartRef__":true,"id":19290},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19369}},"19369":{"$super":{"__isSmartRef__":true,"id":19370}},"19370":{"varMapping":{"__isSmartRef__":true,"id":19371},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19372},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19371":{"obj":{"__isSmartRef__":true,"id":19290},"name":"getLayoutableSubmorphs"},"19372":{},"19373":{},"19374":{"submorphs":[{"__isSmartRef__":true,"id":19375}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19439},"derivationIds":[null],"id":"CCD06753-F484-46A0-B563-CD28D0FDA0A2","renderContextTable":{"__isSmartRef__":true,"id":19444},"eventHandler":{"__isSmartRef__":true,"id":19445},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19446},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19448},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19449},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19450},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19375":{"submorphs":[{"__isSmartRef__":true,"id":19376},{"__isSmartRef__":true,"id":19393}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19409},"derivationIds":[null],"id":"A2A6A0F1-FF6C-4021-8319-6A3AF8570A58","renderContextTable":{"__isSmartRef__":true,"id":19414},"eventHandler":{"__isSmartRef__":true,"id":19415},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19416},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":16009},"propertyList":["x","y","__SourceModuleName__"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"priorExtent","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19376},"text":{"__isSmartRef__":true,"id":19393},"owner":{"__isSmartRef__":true,"id":19374},"_Position":{"__isSmartRef__":true,"id":19417},"priorExtent":{"__isSmartRef__":true,"id":19418},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19419},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19376":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19377},"derivationIds":[null],"id":"2E754362-D418-445D-AFAA-91AE6BF44ED8","renderContextTable":{"__isSmartRef__":true,"id":19383},"eventHandler":{"__isSmartRef__":true,"id":19384},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19385},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19375},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19386},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19377":{"_Position":{"__isSmartRef__":true,"id":19378},"renderContextTable":{"__isSmartRef__":true,"id":19379},"_Extent":{"__isSmartRef__":true,"id":19380},"_Padding":{"__isSmartRef__":true,"id":19381},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19382},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19378":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19379":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19380":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19381":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19382":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19383":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19384":{"morph":{"__isSmartRef__":true,"id":19376},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19385":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19386":{"toggle":{"__isSmartRef__":true,"id":19387},"toggleExpansion":{"__isSmartRef__":true,"id":19390}},"19387":{"varMapping":{"__isSmartRef__":true,"id":19388},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19389},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19388":{"this":{"__isSmartRef__":true,"id":19376}},"19389":{},"19390":{"varMapping":{"__isSmartRef__":true,"id":19391},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19392},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19391":{"this":{"__isSmartRef__":true,"id":19376}},"19392":{},"19393":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19394},"derivationIds":[null],"id":"A7F9D8D0-79E6-4171-B461-EB7A4A625485","renderContextTable":{"__isSmartRef__":true,"id":19398},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19399},{"__isSmartRef__":true,"id":19401}],"eventHandler":{"__isSmartRef__":true,"id":19403},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19404},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19375},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19405},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19394":{"_Position":{"__isSmartRef__":true,"id":19395},"renderContextTable":{"__isSmartRef__":true,"id":19396},"_Extent":{"__isSmartRef__":true,"id":19397},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19395":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19396":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19397":{"x":109,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19398":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19399":{"style":{"__isSmartRef__":true,"id":19400},"chunkOwner":{"__isSmartRef__":true,"id":19393},"storedString":"priorExtent","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19400":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19401":{"style":{"__isSmartRef__":true,"id":19402},"chunkOwner":{"__isSmartRef__":true,"id":19393},"storedString":": Point","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19402":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19403":{"morph":{"__isSmartRef__":true,"id":19393},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19404":{"x":135,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19405":{"layoutText":{"__isSmartRef__":true,"id":19406}},"19406":{"varMapping":{"__isSmartRef__":true,"id":19407},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19408},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19407":{"this":{"__isSmartRef__":true,"id":19393}},"19408":{},"19409":{"_Position":{"__isSmartRef__":true,"id":19410},"renderContextTable":{"__isSmartRef__":true,"id":19411},"_Extent":{"__isSmartRef__":true,"id":19412},"_Padding":{"__isSmartRef__":true,"id":19413},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19410":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19411":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19412":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19413":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19414":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19415":{"morph":{"__isSmartRef__":true,"id":19375},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19416":{"resizeWidth":true},"19417":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19418":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19419":{"updateExpanderColor":{"__isSmartRef__":true,"id":19420},"onMouseDown":{"__isSmartRef__":true,"id":19423},"isRoot":{"__isSmartRef__":true,"id":19430},"displayValue":{"__isSmartRef__":true,"id":19433},"update":{"__isSmartRef__":true,"id":19436}},"19420":{"varMapping":{"__isSmartRef__":true,"id":19421},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19421":{"this":{"__isSmartRef__":true,"id":19375}},"19422":{},"19423":{"varMapping":{"__isSmartRef__":true,"id":19424},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19429},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19424":{"this":{"__isSmartRef__":true,"id":19375},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19425}},"19425":{"$super":{"__isSmartRef__":true,"id":19426}},"19426":{"varMapping":{"__isSmartRef__":true,"id":19427},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19428},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19427":{"obj":{"__isSmartRef__":true,"id":19375},"name":"onMouseDown"},"19428":{},"19429":{},"19430":{"varMapping":{"__isSmartRef__":true,"id":19431},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19432},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19431":{"this":{"__isSmartRef__":true,"id":19375}},"19432":{},"19433":{"varMapping":{"__isSmartRef__":true,"id":19434},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19435},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19434":{"this":{"__isSmartRef__":true,"id":19375}},"19435":{},"19436":{"varMapping":{"__isSmartRef__":true,"id":19437},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19438},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19437":{"this":{"__isSmartRef__":true,"id":19375}},"19438":{},"19439":{"_Position":{"__isSmartRef__":true,"id":19440},"renderContextTable":{"__isSmartRef__":true,"id":19441},"_Extent":{"__isSmartRef__":true,"id":19442},"_Padding":{"__isSmartRef__":true,"id":19443},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19440":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19441":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19442":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19443":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19444":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19445":{"morph":{"__isSmartRef__":true,"id":19374},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19446":{"layouter":{"__isSmartRef__":true,"id":19447},"resizeWidth":true},"19447":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19374},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19448":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19449":{"x":0,"y":160,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19450":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19451}},"19451":{"varMapping":{"__isSmartRef__":true,"id":19452},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19457},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19452":{"this":{"__isSmartRef__":true,"id":19374},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19453}},"19453":{"$super":{"__isSmartRef__":true,"id":19454}},"19454":{"varMapping":{"__isSmartRef__":true,"id":19455},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19456},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19455":{"obj":{"__isSmartRef__":true,"id":19374},"name":"getLayoutableSubmorphs"},"19456":{},"19457":{},"19458":{"submorphs":[{"__isSmartRef__":true,"id":19459}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19523},"derivationIds":[null],"id":"1F08BE87-C9ED-4FA4-9DB2-CD5AC7FEDC9D","renderContextTable":{"__isSmartRef__":true,"id":19528},"eventHandler":{"__isSmartRef__":true,"id":19529},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19530},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19532},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19533},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19534},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19459":{"submorphs":[{"__isSmartRef__":true,"id":19460},{"__isSmartRef__":true,"id":19477}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19493},"derivationIds":[null],"id":"7C06475F-5EB9-4A42-982C-C3F2E3221225","renderContextTable":{"__isSmartRef__":true,"id":19498},"eventHandler":{"__isSmartRef__":true,"id":19499},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19500},"grabbingEnabled":false,"draggingEnabled":false,"data":true,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"registeredForMouseEvents","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19460},"text":{"__isSmartRef__":true,"id":19477},"owner":{"__isSmartRef__":true,"id":19458},"_Position":{"__isSmartRef__":true,"id":19501},"priorExtent":{"__isSmartRef__":true,"id":19502},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19503},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19460":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19461},"derivationIds":[null],"id":"97E88365-D7F5-4792-ACF1-BD0EE0B4BA00","renderContextTable":{"__isSmartRef__":true,"id":19467},"eventHandler":{"__isSmartRef__":true,"id":19468},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19469},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19459},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19470},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19461":{"_Position":{"__isSmartRef__":true,"id":19462},"renderContextTable":{"__isSmartRef__":true,"id":19463},"_Extent":{"__isSmartRef__":true,"id":19464},"_Padding":{"__isSmartRef__":true,"id":19465},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19466},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19462":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19463":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19464":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19465":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19466":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19467":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19468":{"morph":{"__isSmartRef__":true,"id":19460},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19469":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19470":{"toggle":{"__isSmartRef__":true,"id":19471},"toggleExpansion":{"__isSmartRef__":true,"id":19474}},"19471":{"varMapping":{"__isSmartRef__":true,"id":19472},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19473},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19472":{"this":{"__isSmartRef__":true,"id":19460}},"19473":{},"19474":{"varMapping":{"__isSmartRef__":true,"id":19475},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19476},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19475":{"this":{"__isSmartRef__":true,"id":19460}},"19476":{},"19477":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19478},"derivationIds":[null],"id":"3D5A3474-8389-4AA9-B168-E39F71FE30F7","renderContextTable":{"__isSmartRef__":true,"id":19482},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19483},{"__isSmartRef__":true,"id":19485}],"eventHandler":{"__isSmartRef__":true,"id":19487},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19488},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19459},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19489},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19478":{"_Position":{"__isSmartRef__":true,"id":19479},"renderContextTable":{"__isSmartRef__":true,"id":19480},"_Extent":{"__isSmartRef__":true,"id":19481},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19479":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19480":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19481":{"x":194,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19482":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19483":{"style":{"__isSmartRef__":true,"id":19484},"chunkOwner":{"__isSmartRef__":true,"id":19477},"storedString":"registeredForMouseEvents","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19484":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19485":{"style":{"__isSmartRef__":true,"id":19486},"chunkOwner":{"__isSmartRef__":true,"id":19477},"storedString":": true","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19486":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19487":{"morph":{"__isSmartRef__":true,"id":19477},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19488":{"x":225,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19489":{"layoutText":{"__isSmartRef__":true,"id":19490}},"19490":{"varMapping":{"__isSmartRef__":true,"id":19491},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19492},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19491":{"this":{"__isSmartRef__":true,"id":19477}},"19492":{},"19493":{"_Position":{"__isSmartRef__":true,"id":19494},"renderContextTable":{"__isSmartRef__":true,"id":19495},"_Extent":{"__isSmartRef__":true,"id":19496},"_Padding":{"__isSmartRef__":true,"id":19497},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19494":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19495":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19496":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19497":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19498":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19499":{"morph":{"__isSmartRef__":true,"id":19459},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19500":{"resizeWidth":true},"19501":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19502":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19503":{"updateExpanderColor":{"__isSmartRef__":true,"id":19504},"onMouseDown":{"__isSmartRef__":true,"id":19507},"isRoot":{"__isSmartRef__":true,"id":19514},"displayValue":{"__isSmartRef__":true,"id":19517},"update":{"__isSmartRef__":true,"id":19520}},"19504":{"varMapping":{"__isSmartRef__":true,"id":19505},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19506},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19505":{"this":{"__isSmartRef__":true,"id":19459}},"19506":{},"19507":{"varMapping":{"__isSmartRef__":true,"id":19508},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19513},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19508":{"this":{"__isSmartRef__":true,"id":19459},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19509}},"19509":{"$super":{"__isSmartRef__":true,"id":19510}},"19510":{"varMapping":{"__isSmartRef__":true,"id":19511},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19512},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19511":{"obj":{"__isSmartRef__":true,"id":19459},"name":"onMouseDown"},"19512":{},"19513":{},"19514":{"varMapping":{"__isSmartRef__":true,"id":19515},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19516},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19515":{"this":{"__isSmartRef__":true,"id":19459}},"19516":{},"19517":{"varMapping":{"__isSmartRef__":true,"id":19518},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19519},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19518":{"this":{"__isSmartRef__":true,"id":19459}},"19519":{},"19520":{"varMapping":{"__isSmartRef__":true,"id":19521},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19522},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19521":{"this":{"__isSmartRef__":true,"id":19459}},"19522":{},"19523":{"_Position":{"__isSmartRef__":true,"id":19524},"renderContextTable":{"__isSmartRef__":true,"id":19525},"_Extent":{"__isSmartRef__":true,"id":19526},"_Padding":{"__isSmartRef__":true,"id":19527},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19524":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19525":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19526":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19527":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19528":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19529":{"morph":{"__isSmartRef__":true,"id":19458},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19530":{"layouter":{"__isSmartRef__":true,"id":19531},"resizeWidth":true},"19531":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19458},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19532":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19533":{"x":0,"y":140,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19534":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19535}},"19535":{"varMapping":{"__isSmartRef__":true,"id":19536},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19541},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19536":{"this":{"__isSmartRef__":true,"id":19458},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19537}},"19537":{"$super":{"__isSmartRef__":true,"id":19538}},"19538":{"varMapping":{"__isSmartRef__":true,"id":19539},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19540},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19539":{"obj":{"__isSmartRef__":true,"id":19458},"name":"getLayoutableSubmorphs"},"19540":{},"19541":{},"19542":{"submorphs":[{"__isSmartRef__":true,"id":19543}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19607},"derivationIds":[null],"id":"8ECC3D95-8817-4F21-81C9-48E95CF4AEE0","renderContextTable":{"__isSmartRef__":true,"id":19612},"eventHandler":{"__isSmartRef__":true,"id":19613},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19614},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19616},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19617},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19618},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19543":{"submorphs":[{"__isSmartRef__":true,"id":19544},{"__isSmartRef__":true,"id":19561}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19577},"derivationIds":[null],"id":"6924BD33-DC7B-48BF-82CB-F1641211A2A5","renderContextTable":{"__isSmartRef__":true,"id":19582},"eventHandler":{"__isSmartRef__":true,"id":19583},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19584},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":16002},"propertyList":["replaceRenderContext","init","append","remove","onRenderFinished","triggerEvent","setTransform","setPosition","setRotation","setExtent","setScale","setVisible","adjustOrigin","setPivotPoint","setClipMode","showsVerticalScrollBar","showsHorizontalScrollBar","getScrollBarExtent","setHandStyle","setPointerEvents","setToolTip","focus","blur","setFocusable"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"renderContextTable","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19544},"text":{"__isSmartRef__":true,"id":19561},"owner":{"__isSmartRef__":true,"id":19542},"_Position":{"__isSmartRef__":true,"id":19585},"priorExtent":{"__isSmartRef__":true,"id":19586},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19587},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19544":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19545},"derivationIds":[null],"id":"4AB07FF8-4E12-4CBB-8AA7-C67041C08DFD","renderContextTable":{"__isSmartRef__":true,"id":19551},"eventHandler":{"__isSmartRef__":true,"id":19552},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19553},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19554},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19545":{"_Position":{"__isSmartRef__":true,"id":19546},"renderContextTable":{"__isSmartRef__":true,"id":19547},"_Extent":{"__isSmartRef__":true,"id":19548},"_Padding":{"__isSmartRef__":true,"id":19549},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19550},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19546":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19547":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19548":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19549":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19550":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19551":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19552":{"morph":{"__isSmartRef__":true,"id":19544},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19553":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19554":{"toggle":{"__isSmartRef__":true,"id":19555},"toggleExpansion":{"__isSmartRef__":true,"id":19558}},"19555":{"varMapping":{"__isSmartRef__":true,"id":19556},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19557},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19556":{"this":{"__isSmartRef__":true,"id":19544}},"19557":{},"19558":{"varMapping":{"__isSmartRef__":true,"id":19559},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19560},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19559":{"this":{"__isSmartRef__":true,"id":19544}},"19560":{},"19561":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19562},"derivationIds":[null],"id":"3A2EFC34-33C0-4349-A488-440A1C5402FC","renderContextTable":{"__isSmartRef__":true,"id":19566},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19567},{"__isSmartRef__":true,"id":19569}],"eventHandler":{"__isSmartRef__":true,"id":19571},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19572},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19573},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19562":{"_Position":{"__isSmartRef__":true,"id":19563},"renderContextTable":{"__isSmartRef__":true,"id":19564},"_Extent":{"__isSmartRef__":true,"id":19565},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19563":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19564":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19565":{"x":149,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19566":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19567":{"style":{"__isSmartRef__":true,"id":19568},"chunkOwner":{"__isSmartRef__":true,"id":19561},"storedString":"renderContextTable","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19568":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19569":{"style":{"__isSmartRef__":true,"id":19570},"chunkOwner":{"__isSmartRef__":true,"id":19561},"storedString":": {...}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19570":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19571":{"morph":{"__isSmartRef__":true,"id":19561},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19572":{"x":187.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19573":{"layoutText":{"__isSmartRef__":true,"id":19574}},"19574":{"varMapping":{"__isSmartRef__":true,"id":19575},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19575":{"this":{"__isSmartRef__":true,"id":19561}},"19576":{},"19577":{"_Position":{"__isSmartRef__":true,"id":19578},"renderContextTable":{"__isSmartRef__":true,"id":19579},"_Extent":{"__isSmartRef__":true,"id":19580},"_Padding":{"__isSmartRef__":true,"id":19581},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19578":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19579":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19580":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19581":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19582":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19583":{"morph":{"__isSmartRef__":true,"id":19543},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19584":{"resizeWidth":true},"19585":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19586":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19587":{"updateExpanderColor":{"__isSmartRef__":true,"id":19588},"onMouseDown":{"__isSmartRef__":true,"id":19591},"isRoot":{"__isSmartRef__":true,"id":19598},"displayValue":{"__isSmartRef__":true,"id":19601},"update":{"__isSmartRef__":true,"id":19604}},"19588":{"varMapping":{"__isSmartRef__":true,"id":19589},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19590},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19589":{"this":{"__isSmartRef__":true,"id":19543}},"19590":{},"19591":{"varMapping":{"__isSmartRef__":true,"id":19592},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19597},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19592":{"this":{"__isSmartRef__":true,"id":19543},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19593}},"19593":{"$super":{"__isSmartRef__":true,"id":19594}},"19594":{"varMapping":{"__isSmartRef__":true,"id":19595},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19596},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19595":{"obj":{"__isSmartRef__":true,"id":19543},"name":"onMouseDown"},"19596":{},"19597":{},"19598":{"varMapping":{"__isSmartRef__":true,"id":19599},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19600},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19599":{"this":{"__isSmartRef__":true,"id":19543}},"19600":{},"19601":{"varMapping":{"__isSmartRef__":true,"id":19602},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19603},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19602":{"this":{"__isSmartRef__":true,"id":19543}},"19603":{},"19604":{"varMapping":{"__isSmartRef__":true,"id":19605},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19606},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19605":{"this":{"__isSmartRef__":true,"id":19543}},"19606":{},"19607":{"_Position":{"__isSmartRef__":true,"id":19608},"renderContextTable":{"__isSmartRef__":true,"id":19609},"_Extent":{"__isSmartRef__":true,"id":19610},"_Padding":{"__isSmartRef__":true,"id":19611},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19608":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19609":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19610":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19611":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19612":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19613":{"morph":{"__isSmartRef__":true,"id":19542},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19614":{"layouter":{"__isSmartRef__":true,"id":19615},"resizeWidth":true},"19615":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19542},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19616":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19617":{"x":0,"y":120,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19618":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19619}},"19619":{"varMapping":{"__isSmartRef__":true,"id":19620},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19620":{"this":{"__isSmartRef__":true,"id":19542},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19621}},"19621":{"$super":{"__isSmartRef__":true,"id":19622}},"19622":{"varMapping":{"__isSmartRef__":true,"id":19623},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19623":{"obj":{"__isSmartRef__":true,"id":19542},"name":"getLayoutableSubmorphs"},"19624":{},"19625":{},"19626":{"submorphs":[{"__isSmartRef__":true,"id":19627}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19691},"derivationIds":[null],"id":"52D48474-6184-45E9-828B-3074AC3EE284","renderContextTable":{"__isSmartRef__":true,"id":19696},"eventHandler":{"__isSmartRef__":true,"id":19697},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19698},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19700},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19701},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19702},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19627":{"submorphs":[{"__isSmartRef__":true,"id":19628},{"__isSmartRef__":true,"id":19645}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19661},"derivationIds":[null],"id":"B674F65F-BB32-4B93-ADAD-7BC37CF3BD6E","renderContextTable":{"__isSmartRef__":true,"id":19666},"eventHandler":{"__isSmartRef__":true,"id":19667},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19668},"grabbingEnabled":false,"draggingEnabled":false,"data":[],"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"scripts","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19628},"text":{"__isSmartRef__":true,"id":19645},"owner":{"__isSmartRef__":true,"id":19626},"_Position":{"__isSmartRef__":true,"id":19669},"priorExtent":{"__isSmartRef__":true,"id":19670},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19671},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19628":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19629},"derivationIds":[null],"id":"C6B69DC8-29FD-4F7F-ABAA-86E32C5A9C69","renderContextTable":{"__isSmartRef__":true,"id":19635},"eventHandler":{"__isSmartRef__":true,"id":19636},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19637},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19638},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19629":{"_Position":{"__isSmartRef__":true,"id":19630},"renderContextTable":{"__isSmartRef__":true,"id":19631},"_Extent":{"__isSmartRef__":true,"id":19632},"_Padding":{"__isSmartRef__":true,"id":19633},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19634},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19630":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19631":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19632":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19633":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19634":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19635":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19636":{"morph":{"__isSmartRef__":true,"id":19628},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19637":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19638":{"toggle":{"__isSmartRef__":true,"id":19639},"toggleExpansion":{"__isSmartRef__":true,"id":19642}},"19639":{"varMapping":{"__isSmartRef__":true,"id":19640},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19640":{"this":{"__isSmartRef__":true,"id":19628}},"19641":{},"19642":{"varMapping":{"__isSmartRef__":true,"id":19643},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19644},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19643":{"this":{"__isSmartRef__":true,"id":19628}},"19644":{},"19645":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19646},"derivationIds":[null],"id":"376DFDAE-EF96-4477-B063-37B6D8F38FA6","renderContextTable":{"__isSmartRef__":true,"id":19650},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19651},{"__isSmartRef__":true,"id":19653}],"eventHandler":{"__isSmartRef__":true,"id":19655},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19656},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19657},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19646":{"_Position":{"__isSmartRef__":true,"id":19647},"renderContextTable":{"__isSmartRef__":true,"id":19648},"_Extent":{"__isSmartRef__":true,"id":19649},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19647":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19648":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19649":{"x":63,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19650":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19651":{"style":{"__isSmartRef__":true,"id":19652},"chunkOwner":{"__isSmartRef__":true,"id":19645},"storedString":"scripts","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19652":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19653":{"style":{"__isSmartRef__":true,"id":19654},"chunkOwner":{"__isSmartRef__":true,"id":19645},"storedString":": []","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19654":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19655":{"morph":{"__isSmartRef__":true,"id":19645},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19656":{"x":82.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19657":{"layoutText":{"__isSmartRef__":true,"id":19658}},"19658":{"varMapping":{"__isSmartRef__":true,"id":19659},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19660},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19659":{"this":{"__isSmartRef__":true,"id":19645}},"19660":{},"19661":{"_Position":{"__isSmartRef__":true,"id":19662},"renderContextTable":{"__isSmartRef__":true,"id":19663},"_Extent":{"__isSmartRef__":true,"id":19664},"_Padding":{"__isSmartRef__":true,"id":19665},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19662":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19663":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19664":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19665":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19666":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19667":{"morph":{"__isSmartRef__":true,"id":19627},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19668":{"resizeWidth":true},"19669":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19670":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19671":{"updateExpanderColor":{"__isSmartRef__":true,"id":19672},"onMouseDown":{"__isSmartRef__":true,"id":19675},"isRoot":{"__isSmartRef__":true,"id":19682},"displayValue":{"__isSmartRef__":true,"id":19685},"update":{"__isSmartRef__":true,"id":19688}},"19672":{"varMapping":{"__isSmartRef__":true,"id":19673},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19673":{"this":{"__isSmartRef__":true,"id":19627}},"19674":{},"19675":{"varMapping":{"__isSmartRef__":true,"id":19676},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19681},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19676":{"this":{"__isSmartRef__":true,"id":19627},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19677}},"19677":{"$super":{"__isSmartRef__":true,"id":19678}},"19678":{"varMapping":{"__isSmartRef__":true,"id":19679},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19680},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19679":{"obj":{"__isSmartRef__":true,"id":19627},"name":"onMouseDown"},"19680":{},"19681":{},"19682":{"varMapping":{"__isSmartRef__":true,"id":19683},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19684},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19683":{"this":{"__isSmartRef__":true,"id":19627}},"19684":{},"19685":{"varMapping":{"__isSmartRef__":true,"id":19686},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19687},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19686":{"this":{"__isSmartRef__":true,"id":19627}},"19687":{},"19688":{"varMapping":{"__isSmartRef__":true,"id":19689},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19689":{"this":{"__isSmartRef__":true,"id":19627}},"19690":{},"19691":{"_Position":{"__isSmartRef__":true,"id":19692},"renderContextTable":{"__isSmartRef__":true,"id":19693},"_Extent":{"__isSmartRef__":true,"id":19694},"_Padding":{"__isSmartRef__":true,"id":19695},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19692":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19693":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19694":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19695":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19696":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19697":{"morph":{"__isSmartRef__":true,"id":19626},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19698":{"layouter":{"__isSmartRef__":true,"id":19699},"resizeWidth":true},"19699":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19626},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19700":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19701":{"x":0,"y":100,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19702":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19703}},"19703":{"varMapping":{"__isSmartRef__":true,"id":19704},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19709},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19704":{"this":{"__isSmartRef__":true,"id":19626},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19705}},"19705":{"$super":{"__isSmartRef__":true,"id":19706}},"19706":{"varMapping":{"__isSmartRef__":true,"id":19707},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19708},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19707":{"obj":{"__isSmartRef__":true,"id":19626},"name":"getLayoutableSubmorphs"},"19708":{},"19709":{},"19710":{"submorphs":[{"__isSmartRef__":true,"id":19711}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19775},"derivationIds":[null],"id":"F49121B3-0BFB-4AA9-8613-7AB0B3B59088","renderContextTable":{"__isSmartRef__":true,"id":19780},"eventHandler":{"__isSmartRef__":true,"id":19781},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19782},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19784},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19785},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19786},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19711":{"submorphs":[{"__isSmartRef__":true,"id":19712},{"__isSmartRef__":true,"id":19729}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19745},"derivationIds":[null],"id":"A5CFAB4D-6477-47CA-861A-B25EC4781846","renderContextTable":{"__isSmartRef__":true,"id":19750},"eventHandler":{"__isSmartRef__":true,"id":19751},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19752},"grabbingEnabled":false,"draggingEnabled":false,"data":{"__isSmartRef__":true,"id":15956},"propertyList":["position","_Extent","_BorderWidth","_BorderColor","_Fill","__SourceModuleName__","renderContextTable","_ClipMode","_Padding","_BorderRadius","_Opacity","_BorderStyle","_renderContext"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"shape","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19712},"text":{"__isSmartRef__":true,"id":19729},"owner":{"__isSmartRef__":true,"id":19710},"_Position":{"__isSmartRef__":true,"id":19753},"priorExtent":{"__isSmartRef__":true,"id":19754},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19755},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19712":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19713},"derivationIds":[null],"id":"C7E2B6E1-5C0F-41E9-A901-5FC9CC5A2C8D","renderContextTable":{"__isSmartRef__":true,"id":19719},"eventHandler":{"__isSmartRef__":true,"id":19720},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19721},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19722},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19713":{"_Position":{"__isSmartRef__":true,"id":19714},"renderContextTable":{"__isSmartRef__":true,"id":19715},"_Extent":{"__isSmartRef__":true,"id":19716},"_Padding":{"__isSmartRef__":true,"id":19717},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19718},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19714":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19715":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19716":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19717":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19718":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19719":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19720":{"morph":{"__isSmartRef__":true,"id":19712},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19721":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19722":{"toggle":{"__isSmartRef__":true,"id":19723},"toggleExpansion":{"__isSmartRef__":true,"id":19726}},"19723":{"varMapping":{"__isSmartRef__":true,"id":19724},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19725},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19724":{"this":{"__isSmartRef__":true,"id":19712}},"19725":{},"19726":{"varMapping":{"__isSmartRef__":true,"id":19727},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19728},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19727":{"this":{"__isSmartRef__":true,"id":19712}},"19728":{},"19729":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19730},"derivationIds":[null],"id":"29137144-62F0-4A9F-81CA-C3EE05C53837","renderContextTable":{"__isSmartRef__":true,"id":19734},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19735},{"__isSmartRef__":true,"id":19737}],"eventHandler":{"__isSmartRef__":true,"id":19739},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19740},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19741},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19730":{"_Position":{"__isSmartRef__":true,"id":19731},"renderContextTable":{"__isSmartRef__":true,"id":19732},"_Extent":{"__isSmartRef__":true,"id":19733},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19731":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19732":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19733":{"x":109,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19734":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19735":{"style":{"__isSmartRef__":true,"id":19736},"chunkOwner":{"__isSmartRef__":true,"id":19729},"storedString":"shape","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19736":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19737":{"style":{"__isSmartRef__":true,"id":19738},"chunkOwner":{"__isSmartRef__":true,"id":19729},"storedString":": Rectangle","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19738":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19739":{"morph":{"__isSmartRef__":true,"id":19729},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19740":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19741":{"layoutText":{"__isSmartRef__":true,"id":19742}},"19742":{"varMapping":{"__isSmartRef__":true,"id":19743},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19744},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19743":{"this":{"__isSmartRef__":true,"id":19729}},"19744":{},"19745":{"_Position":{"__isSmartRef__":true,"id":19746},"renderContextTable":{"__isSmartRef__":true,"id":19747},"_Extent":{"__isSmartRef__":true,"id":19748},"_Padding":{"__isSmartRef__":true,"id":19749},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19746":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19747":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19748":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19749":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19750":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19751":{"morph":{"__isSmartRef__":true,"id":19711},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19752":{"resizeWidth":true},"19753":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19754":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19755":{"updateExpanderColor":{"__isSmartRef__":true,"id":19756},"onMouseDown":{"__isSmartRef__":true,"id":19759},"isRoot":{"__isSmartRef__":true,"id":19766},"displayValue":{"__isSmartRef__":true,"id":19769},"update":{"__isSmartRef__":true,"id":19772}},"19756":{"varMapping":{"__isSmartRef__":true,"id":19757},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19758},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19757":{"this":{"__isSmartRef__":true,"id":19711}},"19758":{},"19759":{"varMapping":{"__isSmartRef__":true,"id":19760},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19765},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19760":{"this":{"__isSmartRef__":true,"id":19711},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19761}},"19761":{"$super":{"__isSmartRef__":true,"id":19762}},"19762":{"varMapping":{"__isSmartRef__":true,"id":19763},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19764},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19763":{"obj":{"__isSmartRef__":true,"id":19711},"name":"onMouseDown"},"19764":{},"19765":{},"19766":{"varMapping":{"__isSmartRef__":true,"id":19767},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19768},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19767":{"this":{"__isSmartRef__":true,"id":19711}},"19768":{},"19769":{"varMapping":{"__isSmartRef__":true,"id":19770},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19770":{"this":{"__isSmartRef__":true,"id":19711}},"19771":{},"19772":{"varMapping":{"__isSmartRef__":true,"id":19773},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19773":{"this":{"__isSmartRef__":true,"id":19711}},"19774":{},"19775":{"_Position":{"__isSmartRef__":true,"id":19776},"renderContextTable":{"__isSmartRef__":true,"id":19777},"_Extent":{"__isSmartRef__":true,"id":19778},"_Padding":{"__isSmartRef__":true,"id":19779},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19776":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19777":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19778":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19779":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19780":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19781":{"morph":{"__isSmartRef__":true,"id":19710},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19782":{"layouter":{"__isSmartRef__":true,"id":19783},"resizeWidth":true},"19783":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19710},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19784":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19785":{"x":0,"y":80,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19786":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19787}},"19787":{"varMapping":{"__isSmartRef__":true,"id":19788},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19793},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19788":{"this":{"__isSmartRef__":true,"id":19710},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19789}},"19789":{"$super":{"__isSmartRef__":true,"id":19790}},"19790":{"varMapping":{"__isSmartRef__":true,"id":19791},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19792},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19791":{"obj":{"__isSmartRef__":true,"id":19710},"name":"getLayoutableSubmorphs"},"19792":{},"19793":{},"19794":{"submorphs":[{"__isSmartRef__":true,"id":19795}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19859},"derivationIds":[null],"id":"0D3B842C-784D-4C52-B3EC-024B203DE908","renderContextTable":{"__isSmartRef__":true,"id":19864},"eventHandler":{"__isSmartRef__":true,"id":19865},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19866},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19868},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19869},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19870},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19795":{"submorphs":[{"__isSmartRef__":true,"id":19796},{"__isSmartRef__":true,"id":19813}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19829},"derivationIds":[null],"id":"98FA6FD6-06BF-4B19-8645-03A355BDDA1D","renderContextTable":{"__isSmartRef__":true,"id":19834},"eventHandler":{"__isSmartRef__":true,"id":19835},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19836},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"shouldBeDeleted","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19796},"text":{"__isSmartRef__":true,"id":19813},"owner":{"__isSmartRef__":true,"id":19794},"_Position":{"__isSmartRef__":true,"id":19837},"priorExtent":{"__isSmartRef__":true,"id":19838},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19839},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19796":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19797},"derivationIds":[null],"id":"1E73B37A-E397-4283-81F8-8BA31EFB3AFF","renderContextTable":{"__isSmartRef__":true,"id":19803},"eventHandler":{"__isSmartRef__":true,"id":19804},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19805},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19806},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19797":{"_Position":{"__isSmartRef__":true,"id":19798},"renderContextTable":{"__isSmartRef__":true,"id":19799},"_Extent":{"__isSmartRef__":true,"id":19800},"_Padding":{"__isSmartRef__":true,"id":19801},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19802},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19798":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19799":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19800":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19801":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19802":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19803":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19804":{"morph":{"__isSmartRef__":true,"id":19796},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19805":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19806":{"toggle":{"__isSmartRef__":true,"id":19807},"toggleExpansion":{"__isSmartRef__":true,"id":19810}},"19807":{"varMapping":{"__isSmartRef__":true,"id":19808},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19809},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19808":{"this":{"__isSmartRef__":true,"id":19796}},"19809":{},"19810":{"varMapping":{"__isSmartRef__":true,"id":19811},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19812},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19811":{"this":{"__isSmartRef__":true,"id":19796}},"19812":{},"19813":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19814},"derivationIds":[null],"id":"F5C422F8-94D9-405A-A34A-7E510A4AB91F","renderContextTable":{"__isSmartRef__":true,"id":19818},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19819},{"__isSmartRef__":true,"id":19821}],"eventHandler":{"__isSmartRef__":true,"id":19823},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19824},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19825},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19814":{"_Position":{"__isSmartRef__":true,"id":19815},"renderContextTable":{"__isSmartRef__":true,"id":19816},"_Extent":{"__isSmartRef__":true,"id":19817},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19815":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19816":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19817":{"x":142,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19818":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19819":{"style":{"__isSmartRef__":true,"id":19820},"chunkOwner":{"__isSmartRef__":true,"id":19813},"storedString":"shouldBeDeleted","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19820":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19821":{"style":{"__isSmartRef__":true,"id":19822},"chunkOwner":{"__isSmartRef__":true,"id":19813},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19822":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19823":{"morph":{"__isSmartRef__":true,"id":19813},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19824":{"x":165,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19825":{"layoutText":{"__isSmartRef__":true,"id":19826}},"19826":{"varMapping":{"__isSmartRef__":true,"id":19827},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19828},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19827":{"this":{"__isSmartRef__":true,"id":19813}},"19828":{},"19829":{"_Position":{"__isSmartRef__":true,"id":19830},"renderContextTable":{"__isSmartRef__":true,"id":19831},"_Extent":{"__isSmartRef__":true,"id":19832},"_Padding":{"__isSmartRef__":true,"id":19833},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19830":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19831":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19832":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19833":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19834":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19835":{"morph":{"__isSmartRef__":true,"id":19795},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19836":{"resizeWidth":true},"19837":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19838":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19839":{"updateExpanderColor":{"__isSmartRef__":true,"id":19840},"onMouseDown":{"__isSmartRef__":true,"id":19843},"isRoot":{"__isSmartRef__":true,"id":19850},"displayValue":{"__isSmartRef__":true,"id":19853},"update":{"__isSmartRef__":true,"id":19856}},"19840":{"varMapping":{"__isSmartRef__":true,"id":19841},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19842},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19841":{"this":{"__isSmartRef__":true,"id":19795}},"19842":{},"19843":{"varMapping":{"__isSmartRef__":true,"id":19844},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19849},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19844":{"this":{"__isSmartRef__":true,"id":19795},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19845}},"19845":{"$super":{"__isSmartRef__":true,"id":19846}},"19846":{"varMapping":{"__isSmartRef__":true,"id":19847},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19848},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19847":{"obj":{"__isSmartRef__":true,"id":19795},"name":"onMouseDown"},"19848":{},"19849":{},"19850":{"varMapping":{"__isSmartRef__":true,"id":19851},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19852},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19851":{"this":{"__isSmartRef__":true,"id":19795}},"19852":{},"19853":{"varMapping":{"__isSmartRef__":true,"id":19854},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19855},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19854":{"this":{"__isSmartRef__":true,"id":19795}},"19855":{},"19856":{"varMapping":{"__isSmartRef__":true,"id":19857},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19857":{"this":{"__isSmartRef__":true,"id":19795}},"19858":{},"19859":{"_Position":{"__isSmartRef__":true,"id":19860},"renderContextTable":{"__isSmartRef__":true,"id":19861},"_Extent":{"__isSmartRef__":true,"id":19862},"_Padding":{"__isSmartRef__":true,"id":19863},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19860":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19861":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19862":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19863":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19864":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19865":{"morph":{"__isSmartRef__":true,"id":19794},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19866":{"layouter":{"__isSmartRef__":true,"id":19867},"resizeWidth":true},"19867":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19794},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19868":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19869":{"x":0,"y":60,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19870":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19871}},"19871":{"varMapping":{"__isSmartRef__":true,"id":19872},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19877},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19872":{"this":{"__isSmartRef__":true,"id":19794},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19873}},"19873":{"$super":{"__isSmartRef__":true,"id":19874}},"19874":{"varMapping":{"__isSmartRef__":true,"id":19875},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19876},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19875":{"obj":{"__isSmartRef__":true,"id":19794},"name":"getLayoutableSubmorphs"},"19876":{},"19877":{},"19878":{"submorphs":[{"__isSmartRef__":true,"id":19879}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19943},"derivationIds":[null],"id":"11634C47-410E-4D06-AE73-EC08BC982793","renderContextTable":{"__isSmartRef__":true,"id":19948},"eventHandler":{"__isSmartRef__":true,"id":19949},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19950},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":19952},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":19953},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19954},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19879":{"submorphs":[{"__isSmartRef__":true,"id":19880},{"__isSmartRef__":true,"id":19897}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19913},"derivationIds":[null],"id":"81C222F4-6E67-4776-9C65-340F68550EF9","renderContextTable":{"__isSmartRef__":true,"id":19918},"eventHandler":{"__isSmartRef__":true,"id":19919},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":19920},"grabbingEnabled":false,"draggingEnabled":false,"data":false,"propertyList":[],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"showsHalos","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19880},"text":{"__isSmartRef__":true,"id":19897},"owner":{"__isSmartRef__":true,"id":19878},"_Position":{"__isSmartRef__":true,"id":19921},"priorExtent":{"__isSmartRef__":true,"id":19922},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19923},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19880":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19881},"derivationIds":[null],"id":"FAE7530F-5622-4468-A75D-5100A5AA60F2","renderContextTable":{"__isSmartRef__":true,"id":19887},"eventHandler":{"__isSmartRef__":true,"id":19888},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19889},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19879},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19890},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19881":{"_Position":{"__isSmartRef__":true,"id":19882},"renderContextTable":{"__isSmartRef__":true,"id":19883},"_Extent":{"__isSmartRef__":true,"id":19884},"_Padding":{"__isSmartRef__":true,"id":19885},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19886},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19882":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19883":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19884":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19885":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19886":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19887":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19888":{"morph":{"__isSmartRef__":true,"id":19880},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19889":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19890":{"toggle":{"__isSmartRef__":true,"id":19891},"toggleExpansion":{"__isSmartRef__":true,"id":19894}},"19891":{"varMapping":{"__isSmartRef__":true,"id":19892},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19893},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19892":{"this":{"__isSmartRef__":true,"id":19880}},"19893":{},"19894":{"varMapping":{"__isSmartRef__":true,"id":19895},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19896},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19895":{"this":{"__isSmartRef__":true,"id":19880}},"19896":{},"19897":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19898},"derivationIds":[null],"id":"C9EA0D61-C8D2-4D87-AB68-91FFA27BA9B2","renderContextTable":{"__isSmartRef__":true,"id":19902},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19903},{"__isSmartRef__":true,"id":19905}],"eventHandler":{"__isSmartRef__":true,"id":19907},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19908},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19879},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19909},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19898":{"_Position":{"__isSmartRef__":true,"id":19899},"renderContextTable":{"__isSmartRef__":true,"id":19900},"_Extent":{"__isSmartRef__":true,"id":19901},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19899":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19900":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19901":{"x":114,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19902":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19903":{"style":{"__isSmartRef__":true,"id":19904},"chunkOwner":{"__isSmartRef__":true,"id":19897},"storedString":"showsHalos","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19904":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19905":{"style":{"__isSmartRef__":true,"id":19906},"chunkOwner":{"__isSmartRef__":true,"id":19897},"storedString":": false","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19906":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19907":{"morph":{"__isSmartRef__":true,"id":19897},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19908":{"x":127.5,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19909":{"layoutText":{"__isSmartRef__":true,"id":19910}},"19910":{"varMapping":{"__isSmartRef__":true,"id":19911},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19912},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19911":{"this":{"__isSmartRef__":true,"id":19897}},"19912":{},"19913":{"_Position":{"__isSmartRef__":true,"id":19914},"renderContextTable":{"__isSmartRef__":true,"id":19915},"_Extent":{"__isSmartRef__":true,"id":19916},"_Padding":{"__isSmartRef__":true,"id":19917},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19914":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19915":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19916":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19917":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19918":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19919":{"morph":{"__isSmartRef__":true,"id":19879},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19920":{"resizeWidth":true},"19921":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19922":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19923":{"updateExpanderColor":{"__isSmartRef__":true,"id":19924},"onMouseDown":{"__isSmartRef__":true,"id":19927},"isRoot":{"__isSmartRef__":true,"id":19934},"displayValue":{"__isSmartRef__":true,"id":19937},"update":{"__isSmartRef__":true,"id":19940}},"19924":{"varMapping":{"__isSmartRef__":true,"id":19925},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":19926},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19925":{"this":{"__isSmartRef__":true,"id":19879}},"19926":{},"19927":{"varMapping":{"__isSmartRef__":true,"id":19928},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":19933},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19928":{"this":{"__isSmartRef__":true,"id":19879},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19929}},"19929":{"$super":{"__isSmartRef__":true,"id":19930}},"19930":{"varMapping":{"__isSmartRef__":true,"id":19931},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19932},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19931":{"obj":{"__isSmartRef__":true,"id":19879},"name":"onMouseDown"},"19932":{},"19933":{},"19934":{"varMapping":{"__isSmartRef__":true,"id":19935},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":19936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19935":{"this":{"__isSmartRef__":true,"id":19879}},"19936":{},"19937":{"varMapping":{"__isSmartRef__":true,"id":19938},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":19939},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19938":{"this":{"__isSmartRef__":true,"id":19879}},"19939":{},"19940":{"varMapping":{"__isSmartRef__":true,"id":19941},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19942},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19941":{"this":{"__isSmartRef__":true,"id":19879}},"19942":{},"19943":{"_Position":{"__isSmartRef__":true,"id":19944},"renderContextTable":{"__isSmartRef__":true,"id":19945},"_Extent":{"__isSmartRef__":true,"id":19946},"_Padding":{"__isSmartRef__":true,"id":19947},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19944":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19945":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19946":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19947":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19948":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19949":{"morph":{"__isSmartRef__":true,"id":19878},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19950":{"layouter":{"__isSmartRef__":true,"id":19951},"resizeWidth":true},"19951":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19878},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"19952":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19953":{"x":0,"y":40,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19954":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":19955}},"19955":{"varMapping":{"__isSmartRef__":true,"id":19956},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":19961},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19956":{"this":{"__isSmartRef__":true,"id":19878},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19957}},"19957":{"$super":{"__isSmartRef__":true,"id":19958}},"19958":{"varMapping":{"__isSmartRef__":true,"id":19959},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":19960},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19959":{"obj":{"__isSmartRef__":true,"id":19878},"name":"getLayoutableSubmorphs"},"19960":{},"19961":{},"19962":{"submorphs":[{"__isSmartRef__":true,"id":19963}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20027},"derivationIds":[null],"id":"5A9667C9-B5CC-4782-B4B7-DBFF89F5FA13","renderContextTable":{"__isSmartRef__":true,"id":20032},"eventHandler":{"__isSmartRef__":true,"id":20033},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20034},"isInLayoutCycle":false,"priorExtent":{"__isSmartRef__":true,"id":20036},"owner":{"__isSmartRef__":true,"id":16852},"_Position":{"__isSmartRef__":true,"id":20037},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20038},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19963":{"submorphs":[{"__isSmartRef__":true,"id":19964},{"__isSmartRef__":true,"id":19981}],"scripts":[],"shape":{"__isSmartRef__":true,"id":19997},"derivationIds":[null],"id":"C2C167F4-75DF-44CD-9E3F-7E6BB846409B","renderContextTable":{"__isSmartRef__":true,"id":20002},"eventHandler":{"__isSmartRef__":true,"id":20003},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20004},"grabbingEnabled":false,"draggingEnabled":false,"data":[{"__isSmartRef__":true,"id":15905}],"propertyList":["0"],"level":1,"treeView":{"__isSmartRef__":true,"id":16750},"label":"submorphs","children":[],"parent":{"__isSmartRef__":true,"id":16753},"expander":{"__isSmartRef__":true,"id":19964},"text":{"__isSmartRef__":true,"id":19981},"owner":{"__isSmartRef__":true,"id":19962},"_Position":{"__isSmartRef__":true,"id":20005},"priorExtent":{"__isSmartRef__":true,"id":20006},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20007},"__LivelyClassName__":"lively.morphic.Morph","__SourceModuleName__":"Global.lively.morphic.Core"},"19964":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19965},"derivationIds":[null],"id":"0AE14DB6-7111-40B0-A6DF-B0E9BC2E4A64","renderContextTable":{"__isSmartRef__":true,"id":19971},"eventHandler":{"__isSmartRef__":true,"id":19972},"_ClipMode":"visible","droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":19973},"grabbingEnabled":false,"draggingEnabled":false,"isExpanded":false,"owner":{"__isSmartRef__":true,"id":19963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19974},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core"},"19965":{"_Position":{"__isSmartRef__":true,"id":19966},"renderContextTable":{"__isSmartRef__":true,"id":19967},"_Extent":{"__isSmartRef__":true,"id":19968},"_Padding":{"__isSmartRef__":true,"id":19969},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":16760},"_Fill":{"__isSmartRef__":true,"id":19970},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19966":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19967":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19968":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19969":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19970":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19971":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"19972":{"morph":{"__isSmartRef__":true,"id":19964},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19973":{"x":18,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19974":{"toggle":{"__isSmartRef__":true,"id":19975},"toggleExpansion":{"__isSmartRef__":true,"id":19978}},"19975":{"varMapping":{"__isSmartRef__":true,"id":19976},"source":"function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n }","funcProperties":{"__isSmartRef__":true,"id":19977},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19976":{"this":{"__isSmartRef__":true,"id":19964}},"19977":{},"19978":{"varMapping":{"__isSmartRef__":true,"id":19979},"source":"function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n }","funcProperties":{"__isSmartRef__":true,"id":19980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19979":{"this":{"__isSmartRef__":true,"id":19964}},"19980":{},"19981":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":19982},"derivationIds":[null],"id":"5FC22ACD-383B-4A93-B567-93F4DACE6592","renderContextTable":{"__isSmartRef__":true,"id":19986},"_WhiteSpaceHandling":"pre","textChunks":[{"__isSmartRef__":true,"id":19987},{"__isSmartRef__":true,"id":19989}],"eventHandler":{"__isSmartRef__":true,"id":19991},"_ClipMode":"hidden","grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"_InputAllowed":false,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"_MaxTextWidth":null,"isLabel":true,"_HandStyle":"default","eventsAreIgnored":true,"priorExtent":{"__isSmartRef__":true,"id":19992},"_MinTextWidth":null,"_MaxTextHeight":null,"_MinTextHeight":null,"owner":{"__isSmartRef__":true,"id":19963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":19993},"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19982":{"_Position":{"__isSmartRef__":true,"id":19983},"renderContextTable":{"__isSmartRef__":true,"id":19984},"_Extent":{"__isSmartRef__":true,"id":19985},"_Padding":{"__isSmartRef__":true,"id":16776},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":16777},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19983":{"x":28,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19984":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"19985":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19986":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"19987":{"style":{"__isSmartRef__":true,"id":19988},"chunkOwner":{"__isSmartRef__":true,"id":19981},"storedString":"submorphs","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19988":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19989":{"style":{"__isSmartRef__":true,"id":19990},"chunkOwner":{"__isSmartRef__":true,"id":19981},"storedString":": [...]","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19990":{"color":{"__isSmartRef__":true,"id":16784},"italics":"italic","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"19991":{"morph":{"__isSmartRef__":true,"id":19981},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"19992":{"x":120,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19993":{"layoutText":{"__isSmartRef__":true,"id":19994}},"19994":{"varMapping":{"__isSmartRef__":true,"id":19995},"source":"function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n }","funcProperties":{"__isSmartRef__":true,"id":19996},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"19995":{"this":{"__isSmartRef__":true,"id":19981}},"19996":{},"19997":{"_Position":{"__isSmartRef__":true,"id":19998},"renderContextTable":{"__isSmartRef__":true,"id":19999},"_Extent":{"__isSmartRef__":true,"id":20000},"_Padding":{"__isSmartRef__":true,"id":20001},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"19998":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"19999":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20000":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20001":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20002":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20003":{"morph":{"__isSmartRef__":true,"id":19963},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20004":{"resizeWidth":true},"20005":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20006":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20007":{"updateExpanderColor":{"__isSmartRef__":true,"id":20008},"onMouseDown":{"__isSmartRef__":true,"id":20011},"isRoot":{"__isSmartRef__":true,"id":20018},"displayValue":{"__isSmartRef__":true,"id":20021},"update":{"__isSmartRef__":true,"id":20024}},"20008":{"varMapping":{"__isSmartRef__":true,"id":20009},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":20010},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20009":{"this":{"__isSmartRef__":true,"id":19963}},"20010":{},"20011":{"varMapping":{"__isSmartRef__":true,"id":20012},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":20017},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20012":{"this":{"__isSmartRef__":true,"id":19963},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20013}},"20013":{"$super":{"__isSmartRef__":true,"id":20014}},"20014":{"varMapping":{"__isSmartRef__":true,"id":20015},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20016},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20015":{"obj":{"__isSmartRef__":true,"id":19963},"name":"onMouseDown"},"20016":{},"20017":{},"20018":{"varMapping":{"__isSmartRef__":true,"id":20019},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":20020},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20019":{"this":{"__isSmartRef__":true,"id":19963}},"20020":{},"20021":{"varMapping":{"__isSmartRef__":true,"id":20022},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":20023},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20022":{"this":{"__isSmartRef__":true,"id":19963}},"20023":{},"20024":{"varMapping":{"__isSmartRef__":true,"id":20025},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20026},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20025":{"this":{"__isSmartRef__":true,"id":19963}},"20026":{},"20027":{"_Position":{"__isSmartRef__":true,"id":20028},"renderContextTable":{"__isSmartRef__":true,"id":20029},"_Extent":{"__isSmartRef__":true,"id":20030},"_Padding":{"__isSmartRef__":true,"id":20031},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"20028":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20029":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20030":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20031":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20032":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20033":{"morph":{"__isSmartRef__":true,"id":19962},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20034":{"layouter":{"__isSmartRef__":true,"id":20035},"resizeWidth":true},"20035":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":19962},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"20036":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20037":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20038":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":20039}},"20039":{"varMapping":{"__isSmartRef__":true,"id":20040},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":20045},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20040":{"this":{"__isSmartRef__":true,"id":19962},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20041}},"20041":{"$super":{"__isSmartRef__":true,"id":20042}},"20042":{"varMapping":{"__isSmartRef__":true,"id":20043},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20044},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20043":{"obj":{"__isSmartRef__":true,"id":19962},"name":"getLayoutableSubmorphs"},"20044":{},"20045":{},"20046":{"_Position":{"__isSmartRef__":true,"id":20047},"renderContextTable":{"__isSmartRef__":true,"id":20048},"_Extent":{"__isSmartRef__":true,"id":20049},"_Padding":{"__isSmartRef__":true,"id":20050},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"20047":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20048":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20049":{"x":100,"y":780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20050":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20051":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20052":{"morph":{"__isSmartRef__":true,"id":16852},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20053":{"layouter":{"__isSmartRef__":true,"id":20054},"resizeWidth":true},"20054":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":16852},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"20055":{"x":100,"y":780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20056":{"x":0,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20057":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":20058},"addTreeNodesForProperties":{"__isSmartRef__":true,"id":20065}},"20058":{"varMapping":{"__isSmartRef__":true,"id":20059},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":20064},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20059":{"this":{"__isSmartRef__":true,"id":16852},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20060}},"20060":{"$super":{"__isSmartRef__":true,"id":20061}},"20061":{"varMapping":{"__isSmartRef__":true,"id":20062},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20063},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20062":{"obj":{"__isSmartRef__":true,"id":16852},"name":"getLayoutableSubmorphs"},"20063":{},"20064":{},"20065":{"varMapping":{"__isSmartRef__":true,"id":20066},"source":"function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n }","funcProperties":{"__isSmartRef__":true,"id":20067},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20066":{"this":{"__isSmartRef__":true,"id":16852}},"20067":{},"20068":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20069":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":20070}},"20070":{"varMapping":{"__isSmartRef__":true,"id":20071},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":20076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20071":{"this":{"__isSmartRef__":true,"id":16841},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20072}},"20072":{"$super":{"__isSmartRef__":true,"id":20073}},"20073":{"varMapping":{"__isSmartRef__":true,"id":20074},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20075},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20074":{"obj":{"__isSmartRef__":true,"id":16841},"name":"getLayoutableSubmorphs"},"20075":{},"20076":{},"20077":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20078":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20079":{"updateExpanderColor":{"__isSmartRef__":true,"id":20080},"onMouseDown":{"__isSmartRef__":true,"id":20083},"isRoot":{"__isSmartRef__":true,"id":20090},"displayValue":{"__isSmartRef__":true,"id":20093},"update":{"__isSmartRef__":true,"id":20096}},"20080":{"varMapping":{"__isSmartRef__":true,"id":20081},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":20082},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20081":{"this":{"__isSmartRef__":true,"id":16799}},"20082":{},"20083":{"varMapping":{"__isSmartRef__":true,"id":20084},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":20089},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20084":{"this":{"__isSmartRef__":true,"id":16799},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20085}},"20085":{"$super":{"__isSmartRef__":true,"id":20086}},"20086":{"varMapping":{"__isSmartRef__":true,"id":20087},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20087":{"obj":{"__isSmartRef__":true,"id":16799},"name":"onMouseDown"},"20088":{},"20089":{},"20090":{"varMapping":{"__isSmartRef__":true,"id":20091},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":20092},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20091":{"this":{"__isSmartRef__":true,"id":16799}},"20092":{},"20093":{"varMapping":{"__isSmartRef__":true,"id":20094},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":20095},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20094":{"this":{"__isSmartRef__":true,"id":16799}},"20095":{},"20096":{"varMapping":{"__isSmartRef__":true,"id":20097},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20097":{"this":{"__isSmartRef__":true,"id":16799}},"20098":{},"20099":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20100":{"x":100,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20101":{"updateExpanderColor":{"__isSmartRef__":true,"id":20102},"onMouseDown":{"__isSmartRef__":true,"id":20105},"isRoot":{"__isSmartRef__":true,"id":20112},"displayValue":{"__isSmartRef__":true,"id":20115},"update":{"__isSmartRef__":true,"id":20118}},"20102":{"varMapping":{"__isSmartRef__":true,"id":20103},"source":"function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n }","funcProperties":{"__isSmartRef__":true,"id":20104},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20103":{"this":{"__isSmartRef__":true,"id":16753}},"20104":{},"20105":{"varMapping":{"__isSmartRef__":true,"id":20106},"source":"function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n }","funcProperties":{"__isSmartRef__":true,"id":20111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20106":{"this":{"__isSmartRef__":true,"id":16753},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20107}},"20107":{"$super":{"__isSmartRef__":true,"id":20108}},"20108":{"varMapping":{"__isSmartRef__":true,"id":20109},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20110},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20109":{"obj":{"__isSmartRef__":true,"id":16753},"name":"onMouseDown"},"20110":{},"20111":{},"20112":{"varMapping":{"__isSmartRef__":true,"id":20113},"source":"function isRoot() {\n return (this.parent === null || this.parent === undefined);\n }","funcProperties":{"__isSmartRef__":true,"id":20114},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20113":{"this":{"__isSmartRef__":true,"id":16753}},"20114":{},"20115":{"varMapping":{"__isSmartRef__":true,"id":20116},"source":"function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n }","funcProperties":{"__isSmartRef__":true,"id":20117},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20116":{"this":{"__isSmartRef__":true,"id":16753}},"20117":{},"20118":{"varMapping":{"__isSmartRef__":true,"id":20119},"source":"function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20120},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20119":{"this":{"__isSmartRef__":true,"id":16753}},"20120":{},"20121":{"_Position":{"__isSmartRef__":true,"id":20122},"renderContextTable":{"__isSmartRef__":true,"id":20123},"_Extent":{"__isSmartRef__":true,"id":20124},"_Padding":{"__isSmartRef__":true,"id":20125},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"20122":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20123":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20124":{"x":100,"y":800,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20125":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20126":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20127":{"morph":{"__isSmartRef__":true,"id":16752},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20128":{"layouter":{"__isSmartRef__":true,"id":20129},"resizeWidth":true},"20129":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":0,"spacing":0,"container":{"__isSmartRef__":true,"id":16752},"__LivelyClassName__":"lively.morphic.Layout.JournalLayout","__SourceModuleName__":"Global.lively.morphic.Layout"},"20130":{"x":100,"y":780,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20131":{"getLayoutableSubmorphs":{"__isSmartRef__":true,"id":20132}},"20132":{"varMapping":{"__isSmartRef__":true,"id":20133},"source":"function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n }","funcProperties":{"__isSmartRef__":true,"id":20138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20133":{"this":{"__isSmartRef__":true,"id":16752},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20134}},"20134":{"$super":{"__isSmartRef__":true,"id":20135}},"20135":{"varMapping":{"__isSmartRef__":true,"id":20136},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20137},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20136":{"obj":{"__isSmartRef__":true,"id":16752},"name":"getLayoutableSubmorphs"},"20137":{},"20138":{},"20139":{"_Position":{"__isSmartRef__":true,"id":20140},"renderContextTable":{"__isSmartRef__":true,"id":20141},"_Extent":{"__isSmartRef__":true,"id":20142},"_Padding":{"__isSmartRef__":true,"id":20143},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes"},"20140":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20141":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20142":{"x":270.8398611920343,"y":263.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20143":{"x":0,"y":0,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20144":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20145":{"morph":{"__isSmartRef__":true,"id":16751},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"20146":{"x":10,"y":10,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20147":{"resizeWidth":true,"resizeHeight":true},"20148":{"x":290.8398611920343,"y":283.4698859496224,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20149":{"setClipModeHTML":{"__isSmartRef__":true,"id":20150}},"20150":{"varMapping":{"__isSmartRef__":true,"id":20151},"source":"function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n }","funcProperties":{"__isSmartRef__":true,"id":20156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20151":{"this":{"__isSmartRef__":true,"id":16751},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20152}},"20152":{"$super":{"__isSmartRef__":true,"id":20153}},"20153":{"varMapping":{"__isSmartRef__":true,"id":20154},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch (e) {\n if ($world) \n $world.logError(e, 'Error in $super call')\n else\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":20155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"20154":{"obj":{"__isSmartRef__":true,"id":16751},"name":"setClipModeHTML"},"20155":{},"20156":{},"20157":{"target":{"__isSmartRef__":true,"id":16750},"selector":"update","args":[],"stopped":true,"tickTime":500,"currentTimeout":6660,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"20158":{"position":{"__isSmartRef__":true,"id":20159},"_Extent":{"__isSmartRef__":true,"id":20160},"_BorderWidth":1.9240000000000002,"_BorderColor":{"__isSmartRef__":true,"id":20161},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20162},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20163},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20159":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20160":{"x":290.8398611920343,"y":283.4698859496224,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20161":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20162":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20163":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20164":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20165":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A tree view morph. You can visualize a graph of object data with it (for example).","migrationLevel":4,"partName":"TreeView","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"20166":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20167":{"morph":{"__isSmartRef__":true,"id":16750},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20168":{"x":286.8398611920343,"y":281.4698859496224,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20169":{"layouter":{"__isSmartRef__":true,"id":20170},"resizeWidth":true,"resizeHeight":true,"moveVertical":false,"moveHorizontal":false,"adjustForNewBounds":true},"20170":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":16750},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"20171":{"x":164.35052570087606,"y":-15.96995493992489,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20172":{"border":{"__isSmartRef__":true,"id":16760},"contractedExpander":{"__isSmartRef__":true,"id":20173},"expandedExpander":{"__isSmartRef__":true,"id":156},"focusedText":{"__isSmartRef__":true,"id":16778},"emphasizedText":{"__isSmartRef__":true,"id":16784}},"20173":{"r":0.5686274509803921,"g":0.5686274509803921,"b":0.5686274509803921,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20174":{"size":10},"20175":{"wrapperExtent":{"__isSmartRef__":true,"id":20176},"expanderExtent":{"__isSmartRef__":true,"id":20177},"expanderOffset":{"__isSmartRef__":true,"id":20178},"textOffset":{"__isSmartRef__":true,"id":20179},"levelIndent":10,"maxTextWidth":500},"20176":{"x":0,"y":0,"width":100,"height":18,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20177":{"x":8,"y":8,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20178":{"x":8,"y":5,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20179":{"x":18,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20180":{"renderTree":{"__isSmartRef__":true,"id":20181},"createTreeNode":{"__isSmartRef__":true,"id":20185},"createTreeWrapper":{"__isSmartRef__":true,"id":20189},"reset":{"__isSmartRef__":true,"id":20193},"createTreeNodeMorph":{"__isSmartRef__":true,"id":20197},"createExpanderButton":{"__isSmartRef__":true,"id":20201},"createPropertyText":{"__isSmartRef__":true,"id":20205},"createScrollClip":{"__isSmartRef__":true,"id":20209},"resetDefaults":{"__isSmartRef__":true,"id":20213},"addScriptsToTreeNode":{"__isSmartRef__":true,"id":20217},"addScriptsToExpander":{"__isSmartRef__":true,"id":20220},"getDisplayStringFor":{"__isSmartRef__":true,"id":20223},"update":{"__isSmartRef__":true,"id":20227},"addScriptsToText":{"__isSmartRef__":true,"id":20231},"toggleAll":{"__isSmartRef__":true,"id":20235}},"20181":{"varMapping":{"__isSmartRef__":true,"id":20182},"source":"function renderTree(data) {\n this.rootNode = this.createTreeNode('Properties', data);\n this.addMorph(this.rootNode);\n \n var wrapper = this.createTreeWrapper(this.rootNode);\n var scroll = this.createScrollClip(wrapper);\n\n this.addMorph(scroll);\n\n this.startStepping(500/*ms*/, 'update'); \n}","funcProperties":{"__isSmartRef__":true,"id":20183},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20182":{"this":{"__isSmartRef__":true,"id":16750}},"20183":{"timestamp":{"__isSmartRef__":true,"id":20184},"user":"lauritz","tags":[]},"20184":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:23:33 GMT+0100 (CET)"},"20185":{"varMapping":{"__isSmartRef__":true,"id":20186},"source":"function createTreeNode(label, data, level, parent) {\n level = level || 0;\n\n // create morph / layout\n var treeNode = this.createTreeNodeMorph(data, level);\n\n // add scripts\n this.addScriptsToTreeNode(treeNode);\n\n // initialization\n treeNode.data = data;\n treeNode.propertyList = [].pushAll(Properties.own(treeNode.data));\n treeNode.level = level;\n treeNode.treeView = this;\n treeNode.label = label;\n treeNode.children = [];\n treeNode.parent = (parent ? parent : null);\n\n var expander = this.createExpanderButton(treeNode);\n treeNode.addMorph(expander);\n\n var text = this.createPropertyText(treeNode);\n treeNode.addMorph(text);\n\n\n return treeNode;\n}","funcProperties":{"__isSmartRef__":true,"id":20187},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20186":{"this":{"__isSmartRef__":true,"id":16750}},"20187":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20188}},"20188":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:43:34 GMT+0200 (CEST)"},"20189":{"varMapping":{"__isSmartRef__":true,"id":20190},"source":"function createTreeWrapper(node) {\n\n var rectangleMorph = new lively.morphic.Shapes.Rectangle(this.sizes.wrapperExtent);\n var wrapper = new lively.morphic.Morph(rectangleMorph);\n\n wrapper.addScript(function getLayoutableSubmorphs() {\n return this.submorphs.reject(function(ea) {\n return (ea.isEpiMorph || ea.isBeingDragged || !ea.isVisible());\n });\n });\n\n var layouter = new lively.morphic.Layout.JournalLayout(wrapper);\n var superBasicLayout = layouter.basicLayout;\n layouter.basicLayout = function(container, submorphs) {\n submorphs.sortBy = function() { return this };\n superBasicLayout.bind(layouter)(container, submorphs);\n delete submorphs.sortBy;\n };\n layouter.borderSize = 0;\n layouter.spacing = 0;\n wrapper.setLayouter(layouter);\n wrapper.layout.resizeWidth = true;\n\n if (node)\n wrapper.addMorph(node);\n\n return wrapper;\n}","funcProperties":{"__isSmartRef__":true,"id":20191},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20190":{"this":{"__isSmartRef__":true,"id":16750}},"20191":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20192}},"20192":{"isSerializedDate":true,"string":"Tue Sep 20 2011 17:05:52 GMT+0200 (CEST)"},"20193":{"varMapping":{"__isSmartRef__":true,"id":20194},"source":"function reset() {\n this.removeAllMorphs();\n this.resetDefaults();\n this.rootNode = null; \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":20195},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20194":{"this":{"__isSmartRef__":true,"id":16750}},"20195":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20196}},"20196":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:41:57 GMT+0200 (CEST)"},"20197":{"varMapping":{"__isSmartRef__":true,"id":20198},"source":"function createTreeNodeMorph(data, level) {\n var treeNodeExtent = new lively.morphic.Shapes.Rectangle(pt(100, 20).extentAsRectangle());\n var treeNode = new lively.morphic.Morph(treeNodeExtent);\n\n treeNode.layout = {\n layouter: undefined,\n resizeWidth: true\n }\n treeNode.disableGrabbing();\n treeNode.disableDragging();\n\n return treeNode; \n}","funcProperties":{"__isSmartRef__":true,"id":20199},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20198":{"this":{"__isSmartRef__":true,"id":16750}},"20199":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20200}},"20200":{"isSerializedDate":true,"string":"Tue Oct 25 2011 19:24:35 GMT+0200 (CEST)"},"20201":{"varMapping":{"__isSmartRef__":true,"id":20202},"source":"function createExpanderButton(treeNode) {\n\n var expanderPositionX = this.sizes.expanderOffset.x + this.sizes.levelIndent * treeNode.level;\n var expanderPosition = pt(expanderPositionX, this.sizes.expanderOffset.y);\n var expander = new lively.morphic.Box(expanderPosition.extent(this.sizes.expanderExtent));\n\n // layout\n expander.setBorderWidth(1);\n expander.setBorderColor(this.colors.border);\n expander.disableGrabbing();\n expander.disableDragging();\n treeNode.expander = expander;\n\n // add scripts\n this.addScriptsToExpander(expander);\n\n // initialization\n expander.isExpanded = false;\n treeNode.updateExpanderColor();\n\n return expander;\n}","funcProperties":{"__isSmartRef__":true,"id":20203},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20202":{"this":{"__isSmartRef__":true,"id":16750}},"20203":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20204}},"20204":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:32:58 GMT+0200 (CEST)"},"20205":{"varMapping":{"__isSmartRef__":true,"id":20206},"source":"function createPropertyText(treeNode) {\n \n var textPosition = pt(this.sizes.textOffset.x + this.sizes.levelIndent * treeNode.level, this.sizes.textOffset.y);\n\n var textMorph = new lively.morphic.Text(textPosition.extent(pt(0, 0)), \"\"); \n this.addScriptsToText(textMorph);\n textMorph.layoutText(this.fonts);\n\n treeNode.text = textMorph;\n treeNode.displayValue();\n\n return textMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":20207},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20206":{"this":{"__isSmartRef__":true,"id":16750}},"20207":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20208}},"20208":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:18:07 GMT+0200 (CEST)"},"20209":{"varMapping":{"__isSmartRef__":true,"id":20210},"source":"function createScrollClip(wrapper) {\n var scroll = new lively.morphic.Clip(this.getExtent().extentAsRectangle());\n\n // layout\n scroll.layout = {\n resizeWidth: true,\n resizeHeight: true\n };\n scroll.disableGrabbing();\n scroll.disableDragging();\n scroll.setName('TreeViewScrollPane');\n\n scroll.addScript(function setClipModeHTML(ctx, modeString) {\n $super(ctx, modeString);\n ctx.morphNode.style['overflow-x'] = 'hidden';\n });\n\n scroll.addMorph(wrapper);\n return scroll;\n}","funcProperties":{"__isSmartRef__":true,"id":20211},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20210":{"this":{"__isSmartRef__":true,"id":16750}},"20211":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20212}},"20212":{"isSerializedDate":true,"string":"Mon Sep 19 2011 19:54:00 GMT+0200 (CEST)"},"20213":{"varMapping":{"__isSmartRef__":true,"id":20214},"source":"function resetDefaults() {\n this.colors = {\n border : Color.rgb(145,145,145),\n contractedExpander : Color.rgb(145,145,145),\n expandedExpander : Color.white,\n focusedText : Color.rgb(243,243,243),\n emphasizedText : Color.rgb(145,145,145)\n };\n this.fonts = {\n size : 10\n };\n this.sizes = {\n wrapperExtent : pt(100, 18).extentAsRectangle(),\n expanderExtent : pt(8, 8),\n expanderOffset : pt(8, 5),\n textOffset : pt(18, 0),\n levelIndent : 10,\n maxTextWidth : 500\n }\n}","funcProperties":{"__isSmartRef__":true,"id":20215},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20214":{"this":{"__isSmartRef__":true,"id":16750}},"20215":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20216}},"20216":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:38:04 GMT+0200 (CEST)"},"20217":{"varMapping":{"__isSmartRef__":true,"id":20218},"source":"function addScriptsToTreeNode(treeNode) {\n\n treeNode.addScript(function updateExpanderColor() {\n var colors = this.treeView.colors;\n var fillColor;\n if (this.expander.isExpanded || !(Objects.isMutableType(this.data) && Properties.own(this.data).length > 0)) { \n fillColor = colors.expandedExpander;\n } else {\n fillColor = colors.contractedExpander;\n }\n this.expander.setFill(fillColor);\n });\n\n treeNode.addScript(function onMouseDown() {\n this.treeView.owner.moveFocusTo(this);\n });\n\n treeNode.addScript(function isRoot() {\n return (this.parent === null || this.parent === undefined);\n });\n\n treeNode.addScript(function displayValue() {\n // set label\n var labelString = this.treeView.getDisplayStringFor(this);\n if (labelString.length > 100) labelString = labelString.substring(0, 100) + '...';\n this.text.setTextString(labelString);\n \n // reset the bounds\n var fontSize = this.treeView.fonts.size;\n var textExtent = pt(labelString.length * fontSize * (3 / 4), fontSize * 2);\n this.text.setExtent(textExtent);\n\n // emphasize the properties current value\n this.text.emphasize({\n color: this.treeView.colors.emphasizedText,\n italics: 'italic'\n }, this.label.length, this.text.textString.length);\n });\n \n treeNode.addScript(function update() {\n \n // if actual value of the represented property changed (reference changed)\n if (this.parent && this.data !== this.parent.data[this.label]) {\n this.data = this.parent.data[this.label];\n this.displayValue();\n }\n\n if (Objects.typeStringOf(this.data) === 'String') return;\n\n // when properties have changed (same object, but other properties)\n var allProperties = Properties.own(this.data);\n var that = this;\n var allPropertiesKnown = allProperties.every(function (each) {\n return that.propertyList.indexOf(each) !== -1;\n })\n if (!allPropertiesKnown || allProperties.length !== this.propertyList.length) {\n this.updateExpanderColor();\n this.displayValue();\n\n // if expanded, redraw children\n if (this.expander.isExpanded) {\n this.expander.isExpanded = false;\n this.expander.toggle();\n }\n \n this.propertyList = allProperties;\n }\n\n if (Objects.isMutableType(this.data) && Properties.own(this.data).length > 0) {\n this.children.forEach(function (each) {\n each.update()\n });\n }\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":20219},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20218":{"this":{"__isSmartRef__":true,"id":16750}},"20219":{},"20220":{"varMapping":{"__isSmartRef__":true,"id":20221},"source":"function addScriptsToExpander(expander) {\n\n expander.addScript(function toggle() {\n // asynchronous toggling\n (function () { this.toggleExpansion(); }).bind(this).delay(0);\n });\n\n expander.addScript(function toggleExpansion() {\n var treeNode = this.owner;\n var treeView = treeNode.treeView;\n\n if (!this.isExpanded && Objects.isMutableType(treeNode.data) && Properties.own(treeNode.data).length > 0) {\n this.isExpanded = true;\n\n if (treeNode.childrenWrapper) {\n treeNode.childrenWrapper.setVisible(true);\n } if (treeNode.childrenWrapper && treeNode.children.length !== Properties.own(treeNode.data)) {\n treeNode.children = [];\n treeNode.childrenWrapper.removeAllMorphs();\n treeNode.childrenWrapper.addTreeNodesForProperties(treeNode);\n } else {\n if (Objects.isMutableType(treeNode.data)) {\n var wrapper = treeView.createTreeWrapper();\n\n wrapper.addScript(function addTreeNodesForProperties(treeNode) {\n var that = this;\n var props = Properties.own(treeNode.data);\n if (Objects.typeStringOf(treeNode.data) !== 'Array') props = props.sort();\n props.forEach(function(prop) {\n (function() {\n var childNode = treeNode.treeView.createTreeNode(prop, treeNode.data[prop], treeNode.level + 1, treeNode);\n treeNode.children.push(childNode);\n var nodeWrapper = treeNode.treeView.createTreeWrapper(childNode);\n that.addMorph(nodeWrapper);\n }).bind(this).delay(0); // asynchronous\n });\n });\n wrapper.addTreeNodesForProperties(treeNode);\n \n treeNode.childrenWrapper = wrapper;\n treeNode.owner.addMorph(wrapper);\n } \n }\n } else {\n this.isExpanded = false;\n treeNode.childrenWrapper && treeNode.childrenWrapper.setVisible(false);\n }\n treeNode.updateExpanderColor();\n treeNode.owner.applyLayout();\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":20222},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20221":{"this":{"__isSmartRef__":true,"id":16750}},"20222":{},"20223":{"varMapping":{"__isSmartRef__":true,"id":20224},"source":"function getDisplayStringFor(treeNode) {\n var typeInfo = '';\n if (treeNode.data && treeNode.data.name) {\n typeInfo = treeNode.data.name;\n } else {\n typeInfo = (Objects.isMutableType(treeNode.data) ? \n Objects.shortPrintStringOf(treeNode.data) : treeNode.data);\n }\n return treeNode.label + \": \" + typeInfo;\n}","funcProperties":{"__isSmartRef__":true,"id":20225},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20224":{"this":{"__isSmartRef__":true,"id":16750}},"20225":{"timestamp":{"__isSmartRef__":true,"id":20226},"user":"lauritz","tags":[]},"20226":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:35:06 GMT+0100 (CET)"},"20227":{"varMapping":{"__isSmartRef__":true,"id":20228},"source":"function update() {\n this.rootNode.update();\n}","funcProperties":{"__isSmartRef__":true,"id":20229},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20228":{"this":{"__isSmartRef__":true,"id":16750}},"20229":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20230}},"20230":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:42:27 GMT+0200 (CEST)"},"20231":{"varMapping":{"__isSmartRef__":true,"id":20232},"source":"function addScriptsToText(textMorph) {\n\n textMorph.addScript(function layoutText(fontOptions){\n this.setFontSize(fontOptions.size);\n this.setFillOpacity(0);\n this.setBorderWidth(0);\n this.setMaxTextWidth(fontOptions.maxTextWidth);\n this.beLabel();\n this.fit();\n });\n\n}","funcProperties":{"__isSmartRef__":true,"id":20233},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20232":{"this":{"__isSmartRef__":true,"id":16750}},"20233":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20234}},"20234":{"isSerializedDate":true,"string":"Mon Sep 26 2011 23:16:48 GMT+0200 (CEST)"},"20235":{"varMapping":{"__isSmartRef__":true,"id":20236},"source":"function toggleAll() {\n\n if (!this.rootNode) return;\n\n try {\n JSON.stringify(this.rootNode.data);\n } catch (e) {\n // probably a circular structure\n return;\n }\n\n var toggleChildren = function (node) {\n\n if (!node.children) return;\n\n (function() {\n node.children.forEach(function (each) {\n each.expander.toggleExpansion();\n toggleChildren(each);\n });\n }).bind(this).delay(0); // asynchronous\n }\n\n toggleChildren(this.rootNode);\n \n}","funcProperties":{"__isSmartRef__":true,"id":20237},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20236":{"this":{"__isSmartRef__":true,"id":16750}},"20237":{"timestamp":{"__isSmartRef__":true,"id":20238},"user":"lauritz","tags":[]},"20238":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:58:11 GMT+0100 (CET)"},"20239":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20240},"id":"8AFA713B-FE42-4FEE-8ACA-F0E611A95B4A","renderContextTable":{"__isSmartRef__":true,"id":20247},"textChunks":[{"__isSmartRef__":true,"id":20248}],"eventHandler":{"__isSmartRef__":true,"id":20250},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":10,"_Position":{"__isSmartRef__":true,"id":20251},"priorExtent":{"__isSmartRef__":true,"id":20252},"_MaxTextWidth":285.8398611920343,"_MinTextWidth":285.8398611920343,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"layout":{"__isSmartRef__":true,"id":20253},"doitContext":{"__isSmartRef__":true,"id":15904},"charsReplaced":"typeof(this)","lastFindLoc":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","prevScroll":[0,0],"isBeingDragged":false,"showsHalos":false,"name":"Workspace","owner":{"__isSmartRef__":true,"id":16749},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"distanceToDragEvent":{"__isSmartRef__":true,"id":20254},"isCopyMorphRef":true,"morphRefId":1,"scriptAnnotations":{"__isSmartRef__":true,"id":20255},"lastDragTime":1317079672221,"derivationIds":[372,"3BBD270B-A828-436A-915C-D23688CF2067","D0890AA7-6E65-4B35-9600-1AD66DF96797","243534E4-AE49-45EC-9DB9-384D7DE4B994","251CC01A-7FDF-4357-9313-99DE732BDF7B","49FB5C89-127F-411D-9E7D-74274AFC6322","4BCE87D8-39F3-4B7F-A78F-10398B72A854"],"_Rotation":0,"_Scale":1,"priorSelectionRange":[13,13],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20258},"__LivelyClassName__":"lively.morphic.Text"},"20240":{"_Position":{"__isSmartRef__":true,"id":20241},"renderContextTable":{"__isSmartRef__":true,"id":20242},"_Extent":{"__isSmartRef__":true,"id":20243},"_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":20244},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":20245},"_Fill":{"__isSmartRef__":true,"id":20246},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":4,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20241":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20242":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20243":{"x":290.8398611920343,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20244":{"x":3,"y":3,"width":-3,"height":-3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20245":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20246":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20247":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20248":{"style":{"__isSmartRef__":true,"id":20249},"chunkOwner":{"__isSmartRef__":true,"id":20239},"storedString":"this.unmark()","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20249":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20250":{"morph":{"__isSmartRef__":true,"id":20239},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20251":{"x":10,"y":308.4698859496224,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20252":{"x":290.8398611920343,"y":81.00200300400502,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20253":{"resizeWidth":true,"resizeHeight":false,"moveVertical":true,"adjustForNewBounds":true},"20254":{"x":164.35052570087606,"y":-17.252879506132672,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20255":{"reset":{"__isSmartRef__":true,"id":20256}},"20256":{"time":{"__isSmartRef__":true,"id":20257},"user":"lauritz"},"20257":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:03:51 GMT+0100 (CET)"},"20258":{"reset":{"__isSmartRef__":true,"id":20259}},"20259":{"varMapping":{"__isSmartRef__":true,"id":20260},"source":"function reset() {\n this.doitContext = null;\n this.setTextString(\"\");\n}","funcProperties":{"__isSmartRef__":true,"id":20261},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20260":{"this":{"__isSmartRef__":true,"id":20239}},"20261":{},"20262":{"position":{"__isSmartRef__":true,"id":20263},"_Extent":{"__isSmartRef__":true,"id":20264},"_BorderWidth":1.4500000000000002,"_BorderColor":{"__isSmartRef__":true,"id":20265},"_Fill":{"__isSmartRef__":true,"id":20266},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20267},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20268},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20263":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20264":{"x":310.8398611920343,"y":399.4718889536274,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20265":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20266":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20267":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20268":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20269":{"x":0,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20270":{"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":4,"partName":"ExplorerPane","changes":[{"__isSmartRef__":true,"id":20271}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"20271":{"date":{"__isSmartRef__":true,"id":20272},"author":"lauritz","message":"Disabled grabbing and dragging on other submorphs as well..."},"20272":{"isSerializedDate":true,"string":"Tue Oct 25 2011 20:21:08 GMT+0200 (CEST)"},"20273":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20274":{"morph":{"__isSmartRef__":true,"id":16749},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20275":{"x":306.8398611920343,"y":397.4718889536274,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20276":{"x":212.32023310549857,"y":-12.472093186624761,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20277":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true,"layouter":{"__isSmartRef__":true,"id":20278}},"20278":{"defaultBorderSize":10,"defaultSpacing":15,"borderSize":10,"spacing":15,"container":{"__isSmartRef__":true,"id":16749},"__SourceModuleName__":"Global.lively.morphic.Layout","__LivelyClassName__":"lively.morphic.Layout.VerticalLayout"},"20279":{"reset":{"__isSmartRef__":true,"id":20280},"moveFocusTo":{"__isSmartRef__":true,"id":20284},"explore":{"__isSmartRef__":true,"id":20288},"toggleAll":{"__isSmartRef__":true,"id":20292}},"20280":{"varMapping":{"__isSmartRef__":true,"id":20281},"source":"function reset() {\n this.workspace.reset();\n this.treeView.reset();\n this.focusedNode = null;\n}","funcProperties":{"__isSmartRef__":true,"id":20282},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20281":{"this":{"__isSmartRef__":true,"id":16749}},"20282":{"timestamp":{"__isSmartRef__":true,"id":20283},"user":"lauritz","tags":[]},"20283":{"isSerializedDate":true,"string":"Wed Sep 21 2011 01:48:08 GMT+0200 (CEST)"},"20284":{"varMapping":{"__isSmartRef__":true,"id":20285},"source":"function moveFocusTo(focusedNode) {\n\n // set workspace context\n var previouslyFocusedNode = this.focusedNode;\n this.focusedNode = focusedNode;\n this.workspace.doitContext = this.focusedNode.data;\n\n // display focus\n if (previouslyFocusedNode && previouslyFocusedNode.setFill) \n previouslyFocusedNode.text.setFill(null);\n this.focusedNode.text.setFill(this.focusedNode.treeView.colors.focusedText);\n this.focusedNode.expander.toggle();\n}","funcProperties":{"__isSmartRef__":true,"id":20286},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20285":{"this":{"__isSmartRef__":true,"id":16749}},"20286":{"timestamp":{"__isSmartRef__":true,"id":20287},"user":"lauritz","tags":[]},"20287":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:21:02 GMT+0100 (CET)"},"20288":{"varMapping":{"__isSmartRef__":true,"id":20289},"source":"function explore(object) {\n this.reset();\n this.treeView.renderTree(object);\n\n this.moveFocusTo(this.treeView.rootNode);\n this.workspace.setTextString(\"this\");\n}","funcProperties":{"__isSmartRef__":true,"id":20290},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20289":{"this":{"__isSmartRef__":true,"id":16749}},"20290":{"timestamp":{"__isSmartRef__":true,"id":20291},"user":"lauritz","tags":[]},"20291":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:21:07 GMT+0100 (CET)"},"20292":{"varMapping":{"__isSmartRef__":true,"id":20293},"source":"function toggleAll() {\n this.treeView.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":20294},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20293":{"this":{"__isSmartRef__":true,"id":16749}},"20294":{"timestamp":{"__isSmartRef__":true,"id":20295},"user":"lauritz","tags":[]},"20295":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:40:54 GMT+0100 (CET)"},"20296":{"x":0,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20297":{"a":1.0141055623885957,"b":0,"c":0,"d":1.0141055623885957,"e":450.3877838765295,"f":130.57769545390755,"__LivelyClassName__":"lively.morphic.Similitude","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20298":{"x":310.49672894514134,"y":419.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20299":{"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Displays object properties and provides a workspace. The workspace's context is set to the last clicked element.","migrationLevel":4,"partName":"Explorer","changes":[{"__isSmartRef__":true,"id":20300},{"__isSmartRef__":true,"id":20302},{"__isSmartRef__":true,"id":20304},{"__isSmartRef__":true,"id":20306},{"__isSmartRef__":true,"id":20308},{"__isSmartRef__":true,"id":20310},{"__isSmartRef__":true,"id":20312},{"__isSmartRef__":true,"id":20314},{"__isSmartRef__":true,"id":20316},{"__isSmartRef__":true,"id":20318},{"__isSmartRef__":true,"id":20320},{"__isSmartRef__":true,"id":20322},{"__isSmartRef__":true,"id":20324},{"__isSmartRef__":true,"id":20326},{"__isSmartRef__":true,"id":20328},{"__isSmartRef__":true,"id":20330},{"__isSmartRef__":true,"id":20332},{"__isSmartRef__":true,"id":20334},{"__isSmartRef__":true,"id":20336},{"__isSmartRef__":true,"id":20338},{"__isSmartRef__":true,"id":20340},{"__isSmartRef__":true,"id":20342}],"revisionOnLoad":148785,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"20300":{"date":{"__isSmartRef__":true,"id":20301},"author":"lauritz","message":"","id":"41FC1B0F-23FC-4454-A424-F141A1C09663"},"20301":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:46:05 GMT+0100 (CET)"},"20302":{"date":{"__isSmartRef__":true,"id":20303},"author":"lauritz","message":"added >>expandAllNodes() which can expand complete trees, but not graphs.","id":"60178F3F-BA87-45A8-BD26-CF776AC017A7"},"20303":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:33:39 GMT+0100 (CET)"},"20304":{"date":{"__isSmartRef__":true,"id":20305},"author":"lauritz","message":"decreased width a bit","id":"837B2170-C0B8-4FA1-99D3-D6A1EB465519"},"20305":{"isSerializedDate":true,"string":"Sat Dec 03 2011 00:36:19 GMT+0100 (CET)"},"20306":{"date":{"__isSmartRef__":true,"id":20307},"author":"lauritz","message":"made expanding loop asynchronous","id":"5DFF88BC-08E6-43BD-B5B1-A9E8C93C7B19"},"20307":{"isSerializedDate":true,"string":"Wed Nov 30 2011 23:23:19 GMT+0100 (CET)"},"20308":{"date":{"__isSmartRef__":true,"id":20309},"author":"lauritz","message":"corrected toggling","id":"BFC57057-2596-42D0-89A1-811C34FCF5E1"},"20309":{"isSerializedDate":true,"string":"Tue Nov 22 2011 22:44:25 GMT+0100 (CET)"},"20310":{"date":{"__isSmartRef__":true,"id":20311},"author":"lauritz","message":"set a minimal extent","id":"D1DCDCB8-84EE-48D9-8AAE-3926E9D97D30"},"20311":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:39:16 GMT+0100 (CET)"},"20312":{"date":{"__isSmartRef__":true,"id":20313},"author":"lauritz","message":"convenience preset by default: tree is expanded, workspace says \"this\"","id":"D364A417-6014-4266-8DF3-CEA313F15793"},"20313":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:18:29 GMT+0100 (CET)"},"20314":{"date":{"__isSmartRef__":true,"id":20315},"author":"lauritz","message":"Disabled grabbing and dragging on other morphs as well."},"20315":{"isSerializedDate":true,"string":"Tue Oct 25 2011 20:23:10 GMT+0200 (CEST)"},"20316":{"date":{"__isSmartRef__":true,"id":20317},"author":"lauritz","message":"Disabled dragging and grabbing on tree nodes. Those should only be clickable."},"20317":{"isSerializedDate":true,"string":"Tue Oct 25 2011 19:25:14 GMT+0200 (CEST)"},"20318":{"date":{"__isSmartRef__":true,"id":20319},"author":"lauritz","message":"Fixed a bug by adding a condition to getClassNameOf. In case an object has no constructor."},"20319":{"isSerializedDate":true,"string":"Tue Oct 25 2011 22:37:11 GMT+0200 (CEST)"},"20320":{"date":{"__isSmartRef__":true,"id":20321},"author":"jenslincke","message":"reset scales","id":"5E64592A-C360-44DD-BDAE-AD956FBA7675"},"20321":{"isSerializedDate":true,"string":"Fri Oct 28 2011 16:11:21 GMT+0200 (CEST)"},"20322":{"date":{"__isSmartRef__":true,"id":20323},"author":"jenslincke","message":"bring resize corner to front","id":"765AA8A1-AA38-433A-B800-FFF743B3B9EF"},"20323":{"isSerializedDate":true,"string":"Thu Nov 03 2011 16:10:26 GMT+0100 (CET)"},"20324":{"date":{"__isSmartRef__":true,"id":20325},"author":"lauritz","message":"layout changes","id":"F09F5196-5203-405A-8EC3-1648A100FFF5"},"20325":{"isSerializedDate":true,"string":"Fri Nov 18 2011 23:54:38 GMT+0100 (CET)"},"20326":{"date":{"__isSmartRef__":true,"id":20327},"author":"lauritz","message":"corrected the order of array elements","id":"B41E19A0-DDED-40DC-BD23-6AB94F76D76D"},"20327":{"isSerializedDate":true,"string":"Tue Nov 22 2011 23:44:29 GMT+0100 (CET)"},"20328":{"date":{"__isSmartRef__":true,"id":20329},"author":"fbo","message":"fix Date bug","id":"64EDCB63-EB39-477E-A73D-E066101A8B21"},"20329":{"isSerializedDate":true,"string":"Sat Dec 03 2011 00:07:10 GMT+0100 (CET)"},"20330":{"date":{"__isSmartRef__":true,"id":20331},"author":"lauritz","message":"significantly reduced a performance problem regarding \"long\" string properties, doesnt freeze anymore.","id":"EA85DB22-3FD3-4D13-B769-763C4483C445"},"20331":{"isSerializedDate":true,"string":"Tue Dec 06 2011 00:55:19 GMT+0100 (CET)"},"20332":{"date":{"__isSmartRef__":true,"id":20333},"author":"lauritz","message":"clicking a node no longer resets the workspace content","id":"C8AE0678-08F5-4FFB-9662-77D7120DA285"},"20333":{"isSerializedDate":true,"string":"Tue Dec 13 2011 23:22:10 GMT+0100 (CET)"},"20334":{"date":{"__isSmartRef__":true,"id":20335},"author":"lauritz","message":"renamed >>#expandAllNodes to >>#toggleAll","id":"D9931ABA-396B-4C81-9C7E-7C2712405803"},"20335":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:41:44 GMT+0100 (CET)"},"20336":{"date":{"__isSmartRef__":true,"id":20337},"author":"lauritz","message":"asynchronous >>#toggleAll, because toggling is actually asynchronous and rendering as well...","id":"3B15F99C-CFD6-41FA-9778-D2BFBBD53B8D"},"20337":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:58:54 GMT+0100 (CET)"},"20338":{"date":{"__isSmartRef__":true,"id":20339},"author":"lauritz","message":"cleaned up how all typeof stuff","id":"98CD54B3-3527-4C4C-8577-A0B7476D8718"},"20339":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:31:53 GMT+0100 (CET)"},"20340":{"date":{"__isSmartRef__":true,"id":20341},"author":"lauritz","message":"","id":"183BD443-7A32-4E3B-8F6B-96473B0C4CB7"},"20341":{"isSerializedDate":true,"string":"Fri Jan 27 2012 02:35:42 GMT+0100 (CET)"},"20342":{"date":{"__isSmartRef__":true,"id":20343},"author":"jenslincke","message":"style tweak","id":"C366B53C-40DC-445D-B882-F5F147CD349F"},"20343":{"isSerializedDate":true,"string":"Mon Jan 30 2012 14:04:58 GMT+0100 (CET)"},"20344":{"x":706,"y":245,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20345":{"x":178,"y":269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20346":{"submorphs":[],"scripts":[],"id":"6EE09D9C-C7AA-4212-A068-99AC6FE519FE","shape":{"__isSmartRef__":true,"id":20347},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":20354},"showsHalos":false,"name":"ResizeCorner3","partsBinMetaInfo":{"__isSmartRef__":true,"id":20355},"__SourceModuleName__":"Global.lively.morphic.Core","__layered_draggingEnabled__":true,"dragStartPoint":null,"originalExtent":{"__isSmartRef__":true,"id":20356},"originalTargetExtent":null,"renderContextTable":{"__isSmartRef__":true,"id":20357},"eventHandler":{"__isSmartRef__":true,"id":20358},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":null,"priorExtent":{"__isSmartRef__":true,"id":20359},"distanceToDragEvent":{"__isSmartRef__":true,"id":20360},"derivationIds":[373,"EE44AF79-9BA3-4128-9A82-23CA02A35CBA","2DF62558-574F-4341-A678-C082E7B62474","0B40BDFA-37E3-4097-9157-BE8CCF94B0A1","3600D2AA-3070-493B-839E-BF41427E5A08","B8F4C02B-011E-483E-A3AB-BE57DC9B1FBE","4C05283E-F381-40A9-9AEF-6D6D233F85FF"],"_Rotation":0,"_Scale":1,"_ClipMode":"visible","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20361},"__LivelyClassName__":"lively.morphic.Box"},"20347":{"position":{"__isSmartRef__":true,"id":20348},"_Extent":{"__isSmartRef__":true,"id":20349},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20350},"_Fill":{"__isSmartRef__":true,"id":20351},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20352},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20353},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20348":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20349":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20350":{"r":0.568,"g":0.568,"b":0.568,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20351":{"r":0.258,"g":0.258,"b":0.258,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20352":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20353":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20354":{"x":300.49672894514134,"y":409.92138184230294,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20355":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"20356":{"x":239,"y":138,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20357":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20358":{"morph":{"__isSmartRef__":true,"id":20346},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20359":{"x":10,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20360":{"x":33.337083585580785,"y":-5.721794364406264,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20361":{"onDrag":{"__isSmartRef__":true,"id":20362},"onDragEnd":{"__isSmartRef__":true,"id":20369},"onDragStart":{"__isSmartRef__":true,"id":20376}},"20362":{"varMapping":{"__isSmartRef__":true,"id":20363},"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":20368},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20363":{"this":{"__isSmartRef__":true,"id":20346},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20364}},"20364":{"$super":{"__isSmartRef__":true,"id":20365}},"20365":{"varMapping":{"__isSmartRef__":true,"id":20366},"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":20367},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20366":{"obj":{"__isSmartRef__":true,"id":20346},"name":"onDrag"},"20367":{},"20368":{},"20369":{"varMapping":{"__isSmartRef__":true,"id":20370},"source":"function onDragEnd(evt) {\n\tthis.dragStartPoint = null;\n\tthis.originalTargetExtent = null;\n}","funcProperties":{"__isSmartRef__":true,"id":20375},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20370":{"this":{"__isSmartRef__":true,"id":20346},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20371}},"20371":{"$super":{"__isSmartRef__":true,"id":20372}},"20372":{"varMapping":{"__isSmartRef__":true,"id":20373},"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":20374},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20373":{"obj":{"__isSmartRef__":true,"id":20346},"name":"onDragEnd"},"20374":{},"20375":{},"20376":{"varMapping":{"__isSmartRef__":true,"id":20377},"source":"function onDragStart(evt) {\n\tthis.dragStartPoint = evt.mousePoint;\n\tthis.originalTargetExtent = this.owner.getExtent();\n}","funcProperties":{"__isSmartRef__":true,"id":20382},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20377":{"this":{"__isSmartRef__":true,"id":20346},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20378}},"20378":{"$super":{"__isSmartRef__":true,"id":20379}},"20379":{"varMapping":{"__isSmartRef__":true,"id":20380},"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":20381},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20380":{"obj":{"__isSmartRef__":true,"id":20346},"name":"onDragStart"},"20381":{},"20382":{},"20383":{"explore":{"__isSmartRef__":true,"id":20384},"reset":{"__isSmartRef__":true,"id":20388},"inspect":{"__isSmartRef__":true,"id":20392},"toggleAll":{"__isSmartRef__":true,"id":20396}},"20384":{"varMapping":{"__isSmartRef__":true,"id":20385},"source":"function explore(object) {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":20386},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20385":{"this":{"__isSmartRef__":true,"id":16589}},"20386":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20387}},"20387":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:25:04 GMT+0200 (CEST)"},"20388":{"varMapping":{"__isSmartRef__":true,"id":20389},"source":"function reset() {\n // please see this window's pane, \"ExplorerPane\"\n this.explorer.reset();\n}","funcProperties":{"__isSmartRef__":true,"id":20390},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20389":{"this":{"__isSmartRef__":true,"id":16589}},"20390":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20391}},"20391":{"isSerializedDate":true,"string":"Wed Sep 21 2011 19:25:04 GMT+0200 (CEST)"},"20392":{"varMapping":{"__isSmartRef__":true,"id":20393},"source":"function inspect(object) {\n // alias for explore\n this.explore(object);\n}","funcProperties":{"__isSmartRef__":true,"id":20394},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20393":{"this":{"__isSmartRef__":true,"id":16589}},"20394":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":20395}},"20395":{"isSerializedDate":true,"string":"Tue Nov 15 2011 23:04:54 GMT+0100 (CET)"},"20396":{"varMapping":{"__isSmartRef__":true,"id":20397},"source":"function toggleAll() {\n this.explorer.toggleAll();\n}","funcProperties":{"__isSmartRef__":true,"id":20398},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20397":{"this":{"__isSmartRef__":true,"id":16589}},"20398":{"timestamp":{"__isSmartRef__":true,"id":20399},"user":"lauritz","tags":[]},"20399":{"isSerializedDate":true,"string":"Thu Jan 05 2012 22:40:45 GMT+0100 (CET)"},"20400":{"submorphs":[{"__isSmartRef__":true,"id":20401}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20546},"id":"18D0C2F7-1669-4BE9-8568-4B9B5A68FBC5","renderContextTable":{"__isSmartRef__":true,"id":20551},"eventHandler":{"__isSmartRef__":true,"id":20552},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":20553},"LK2":true,"priorExtent":{"__isSmartRef__":true,"id":20554},"targetMorph":{"__isSmartRef__":true,"id":20555},"titleBar":{"__isSmartRef__":true,"id":20401},"contentOffset":{"__isSmartRef__":true,"id":22333},"collapsedTransform":{"__isSmartRef__":true,"id":22334},"collapsedExtent":{"__isSmartRef__":true,"id":22335},"expandedTransform":{"__isSmartRef__":true,"id":22336},"expandedExtent":{"__isSmartRef__":true,"id":22337},"ignoreEventsOnExpand":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":22338},"name":"ObjectEditor","prevDragPos":{"__isSmartRef__":true,"id":22439},"highlighted":false,"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","expandedPosition":{"__isSmartRef__":true,"id":22440},"state":"collapsed","collapsedPosition":{"__isSmartRef__":true,"id":22441},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isBeingDragged":false,"prevScroll":[0,0],"minSize":{"__isSmartRef__":true,"id":22442},"minExtent":{"__isSmartRef__":true,"id":22443},"isCopyMorphRef":true,"morphRefId":16,"derivationIds":[205,"2951753B-EB95-4093-A0DD-249E83AC2204","A32DE788-E06D-492C-B2E6-19C3710B5AE0","96D56291-98FB-42C4-A247-0A20B4183B14","1E6BCC46-3FE3-4950-AE50-9751458F7E18","22248328-5B04-4E39-ADDE-460C107C790F","2F4F6161-9F4C-469E-AF56-24765FF03B72","88EF08D5-C1E7-4B5B-B393-FFF5921009D7","FF731ED6-5217-4053-9B85-77F1BF344BF3","496332F8-A328-4625-A7D5-0DCE90C3D2AE","E57F1D4E-AE08-4CAA-A62D-4E69FC0BFF47"],"_Position":{"__isSmartRef__":true,"id":22441},"moved":true,"_ClipMode":"visible","_Rotation":0,"_Scale":1,"owner":{"__isSmartRef__":true,"id":0},"helperMorphs":[{"__isSmartRef__":true,"id":22444}],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22484},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"20401":{"submorphs":[{"__isSmartRef__":true,"id":20402},{"__isSmartRef__":true,"id":20417},{"__isSmartRef__":true,"id":20464},{"__isSmartRef__":true,"id":20499}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20535},"id":"766D546B-1A45-4E47-B934-A550C4D25C95","renderContextTable":{"__isSmartRef__":true,"id":20541},"eventHandler":{"__isSmartRef__":true,"id":20542},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20543},"_Position":{"__isSmartRef__":true,"id":20544},"windowMorph":{"__isSmartRef__":true,"id":20400},"label":{"__isSmartRef__":true,"id":20402},"closeButton":{"__isSmartRef__":true,"id":20417},"menuButton":{"__isSmartRef__":true,"id":20464},"collapseButton":{"__isSmartRef__":true,"id":20499},"priorExtent":{"__isSmartRef__":true,"id":20545},"owner":{"__isSmartRef__":true,"id":20400},"prevScroll":[0,0],"__SourceModuleName__":"Global.lively.morphic.Widgets","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"derivationIds":[228,"084DFF55-BC61-4772-8BF7-F6A87C08DE9F","D22EFB93-AC9B-4FCE-9464-3B314FFA4C11","A5F9692A-C657-42B0-B8AA-D2E922A1DE8D","C47683FE-BA01-4AAB-BDE0-4862C049BCE7","BD427B66-7BE7-4205-84EC-825840E59F49","9C39A352-DBDD-48CE-BEB0-99806EDB5253","E813CB65-A28C-4433-BBE5-EB70FBBB3289","33484DF7-DDF3-465F-96EE-215BEC4B3FAD","F96A68D7-1FC3-472C-BADB-56A6682C39E1","817A94F6-2E25-4C40-9602-8B67B1078AAA"],"_ClipMode":"visible","_Scale":1,"__LivelyClassName__":"lively.morphic.TitleBar"},"20402":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20403},"id":"657219DC-5B31-4F95-AE2F-640496483068","renderContextTable":{"__isSmartRef__":true,"id":20409},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20410}],"eventHandler":{"__isSmartRef__":true,"id":20412},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":10,"evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":20413},"_Align":"center","eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":20401},"priorExtent":{"__isSmartRef__":true,"id":20414},"_MaxTextWidth":664,"_MinTextWidth":664,"_MaxTextHeight":null,"_MinTextHeight":null,"_Position":{"__isSmartRef__":true,"id":20415},"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[229,"D760A244-216E-4A66-8201-25AFC3AB6CC3","D0DE1BA6-E69D-4C19-A257-9D846EA6D12C","7590D64D-7524-4378-BB7E-845EC8CAE745","8996B9DB-C10E-41E4-8286-056BBCF8E151","18942143-8626-4D26-A7D9-153295EE4B23","A410C3F9-F31A-4BC9-A998-ABA33334F720","BEEB144B-EFF3-4E29-A539-41264A731D6C","28B7F25C-B8D9-4D07-B94A-C4A9A35D67B2","395D4415-072D-4BEC-AA6C-195D1347972A","EC2D8014-4D60-448C-A874-3BD6C9604EA7"],"_TextColor":{"__isSmartRef__":true,"id":20416},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"20403":{"_Position":{"__isSmartRef__":true,"id":20404},"renderContextTable":{"__isSmartRef__":true,"id":20405},"_Extent":{"__isSmartRef__":true,"id":20406},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":20407},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20408},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20404":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20405":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20406":{"x":664,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20407":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20408":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20409":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20410":{"style":{"__isSmartRef__":true,"id":20411},"chunkOwner":{"__isSmartRef__":true,"id":20402},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"ObjectEditor","__LivelyClassName__":"lively.morphic.TextChunk"},"20411":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontWeight":"normal","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20412":{"morph":{"__isSmartRef__":true,"id":20402},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20413":{"resizeWidth":true},"20414":{"x":664,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20415":{"x":20,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20416":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20417":{"submorphs":[{"__isSmartRef__":true,"id":20418}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20430},"id":"EB50CD7C-42EC-4637-9CDD-945F9888C448","renderContextTable":{"__isSmartRef__":true,"id":20446},"eventHandler":{"__isSmartRef__":true,"id":20447},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":20448},"priorExtent":{"__isSmartRef__":true,"id":20449},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20436},"lighterFill":{"__isSmartRef__":true,"id":20450},"label":{"__isSmartRef__":true,"id":20418},"owner":{"__isSmartRef__":true,"id":20401},"layout":{"__isSmartRef__":true,"id":20459},"attributeConnections":[{"__isSmartRef__":true,"id":20460},{"__isSmartRef__":true,"id":20462}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[230,"EE58E329-4B81-4ABE-A8D6-A3E1AA5BF908","418BD036-5123-49E3-A68D-B2CA74DD4EBA","AB2EC618-F852-4DB4-8601-C98F851F983A","84444904-5A59-41A9-9200-77C2DFC28F0A","BCDE4CA6-1D56-45F5-980B-4BF689C874DD","C3377671-C2BC-4F1B-93B3-CF0083C27FC9","F8D02126-AD53-4ED0-9EA5-6EB71D788E14","CD6A0659-264E-4175-8900-DC5D9CD9CAE6","25A69395-9A9F-46AD-9D7B-BE62EC93A84D","4A50008D-7B6C-4077-AD8A-F0ABFEE54609"],"_ClipMode":"visible","_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"20418":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20419},"id":"FFE923EA-6FED-410E-B930-103EFF76386D","renderContextTable":{"__isSmartRef__":true,"id":20424},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20425}],"eventHandler":{"__isSmartRef__":true,"id":20427},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":20428},"priorExtent":{"__isSmartRef__":true,"id":20429},"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20417},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[231,"8DB42E03-8473-4B83-81E2-61EE04DF890A","B50E6B6E-F836-4B3E-8AD1-2B34DA86CE3B","60439D94-5083-4977-8470-BD8843FF782A","5EC44375-A7D5-4BD3-AFC7-C507DF8D60C8","5BDCC4F6-C579-4A6F-96BB-2F59131EFD32","712DF12F-50C4-4EEB-9C4C-47A4DC15E968","6A46E35D-28F8-4F0F-B812-E79D2A1994B3","5A9F3A61-DA02-432F-B92D-90126253AD44","EF5811A8-74EC-4FA1-B994-FC261C7FD3F3","52AE2953-CEAB-4A6A-8F94-7B47368D663D"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"20419":{"_Position":{"__isSmartRef__":true,"id":20420},"renderContextTable":{"__isSmartRef__":true,"id":20421},"_Extent":{"__isSmartRef__":true,"id":20422},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":20423},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20408},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20420":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20421":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20422":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20423":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20424":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20425":{"style":{"__isSmartRef__":true,"id":20426},"chunkOwner":{"__isSmartRef__":true,"id":20418},"storedString":"X","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20426":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20427":{"morph":{"__isSmartRef__":true,"id":20418},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20428":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20429":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20430":{"_Position":{"__isSmartRef__":true,"id":20431},"renderContextTable":{"__isSmartRef__":true,"id":20432},"_Extent":{"__isSmartRef__":true,"id":20433},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20434},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20435},"_Fill":{"__isSmartRef__":true,"id":20436},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20431":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20432":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20433":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20434":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20435":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20436":{"stops":[{"__isSmartRef__":true,"id":20437},{"__isSmartRef__":true,"id":20439},{"__isSmartRef__":true,"id":20441},{"__isSmartRef__":true,"id":20443}],"vector":{"__isSmartRef__":true,"id":20445},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20437":{"offset":0,"color":{"__isSmartRef__":true,"id":20438}},"20438":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20439":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20440}},"20440":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20441":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20442}},"20442":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20443":{"offset":1,"color":{"__isSmartRef__":true,"id":20444}},"20444":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20445":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20446":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20447":{"morph":{"__isSmartRef__":true,"id":20417},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20448":{"x":703,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20449":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20450":{"stops":[{"__isSmartRef__":true,"id":20451},{"__isSmartRef__":true,"id":20453},{"__isSmartRef__":true,"id":20455},{"__isSmartRef__":true,"id":20457}],"vector":{"__isSmartRef__":true,"id":20445},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20451":{"offset":0,"color":{"__isSmartRef__":true,"id":20452}},"20452":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20453":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20454}},"20454":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20455":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20456}},"20456":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20457":{"offset":1,"color":{"__isSmartRef__":true,"id":20458}},"20458":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20459":{"moveHorizontal":true},"20460":{"sourceObj":{"__isSmartRef__":true,"id":20417},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20400},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20461},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20461":{"source":{"__isSmartRef__":true,"id":20417},"target":{"__isSmartRef__":true,"id":20400}},"20462":{"sourceObj":{"__isSmartRef__":true,"id":20417},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20400},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20463},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20463":{"source":{"__isSmartRef__":true,"id":20417},"target":{"__isSmartRef__":true,"id":20400}},"20464":{"submorphs":[{"__isSmartRef__":true,"id":20465}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20477},"id":"9A68A2A2-31D3-4902-88AC-C7C9D892B665","renderContextTable":{"__isSmartRef__":true,"id":20482},"eventHandler":{"__isSmartRef__":true,"id":20483},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":20484},"priorExtent":{"__isSmartRef__":true,"id":20485},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20436},"lighterFill":{"__isSmartRef__":true,"id":20486},"label":{"__isSmartRef__":true,"id":20465},"owner":{"__isSmartRef__":true,"id":20401},"attributeConnections":[{"__isSmartRef__":true,"id":20495},{"__isSmartRef__":true,"id":20497}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[232,"F393CBFF-A15D-4D1D-A3A3-DA0C7EF93B66","5BC57B43-1661-4C92-827E-E6CCB6E519E1","DDA3D28B-E4EA-4F17-9B68-D6964E9A2524","93D34CE0-A8E8-43DA-AA3B-3B32912E0BC1","93EA3F6A-3D2D-41E5-8FBD-16CDD8BD7946","C32E10BE-5DA5-46B4-B508-BDA50452B006","39B24C04-E0C8-46B6-91D3-A7CB1A79DF2A","33E45199-4C9B-4815-8760-E9BB50B17AE7","C25CBD71-C31B-4AA9-A244-4F689F7343B9","320E4A47-80DF-45B8-8997-6F8BD9D14C16"],"_ClipMode":"visible","_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"20465":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20466},"id":"4BD71E35-609F-41A7-9A8E-D600CB1513B9","renderContextTable":{"__isSmartRef__":true,"id":20471},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20472}],"eventHandler":{"__isSmartRef__":true,"id":20474},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":20475},"priorExtent":{"__isSmartRef__":true,"id":20476},"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20464},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[233,"E1DC624A-DE6A-4680-92DA-803BFFE6CD54","2EB42409-E0C2-408B-8F84-EDF9EBFB2590","0684F49F-5338-4D44-82C9-5A4E2D62EE72","0B73719D-BC87-4B8D-890D-30C0714B5584","90D2BAAA-EB9D-45AF-8770-9616421A5762","1FAA3617-0517-49D7-ADCB-15357C49A9BB","F746D14F-BC62-4FAC-A5F0-DCC9D1DF650A","6F027012-81B2-4760-B5ED-11342DEAAE72","922D9F59-AB45-4279-9919-69D11CA2CC2D","1BE57CCE-1EE8-4CBF-9989-873B82709981"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"20466":{"_Position":{"__isSmartRef__":true,"id":20467},"renderContextTable":{"__isSmartRef__":true,"id":20468},"_Extent":{"__isSmartRef__":true,"id":20469},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":20470},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20408},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20467":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20468":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20469":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20470":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20471":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20472":{"style":{"__isSmartRef__":true,"id":20473},"chunkOwner":{"__isSmartRef__":true,"id":20465},"storedString":"M","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20473":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20474":{"morph":{"__isSmartRef__":true,"id":20465},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20475":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20476":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20477":{"_Position":{"__isSmartRef__":true,"id":20478},"renderContextTable":{"__isSmartRef__":true,"id":20479},"_Extent":{"__isSmartRef__":true,"id":20480},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20481},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20435},"_Fill":{"__isSmartRef__":true,"id":20436},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20478":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20479":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20480":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20481":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20482":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20483":{"morph":{"__isSmartRef__":true,"id":20464},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20484":{"x":3,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20485":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20486":{"stops":[{"__isSmartRef__":true,"id":20487},{"__isSmartRef__":true,"id":20489},{"__isSmartRef__":true,"id":20491},{"__isSmartRef__":true,"id":20493}],"vector":{"__isSmartRef__":true,"id":20445},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20487":{"offset":0,"color":{"__isSmartRef__":true,"id":20488}},"20488":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20489":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20490}},"20490":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20491":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20492}},"20492":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20493":{"offset":1,"color":{"__isSmartRef__":true,"id":20494}},"20494":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20495":{"sourceObj":{"__isSmartRef__":true,"id":20464},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20400},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20496},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20496":{"source":{"__isSmartRef__":true,"id":20464},"target":{"__isSmartRef__":true,"id":20400}},"20497":{"sourceObj":{"__isSmartRef__":true,"id":20464},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20400},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20498},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20498":{"source":{"__isSmartRef__":true,"id":20464},"target":{"__isSmartRef__":true,"id":20400}},"20499":{"submorphs":[{"__isSmartRef__":true,"id":20500}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20512},"id":"23B3C012-4999-4984-9B70-AF5125F47C8B","renderContextTable":{"__isSmartRef__":true,"id":20517},"eventHandler":{"__isSmartRef__":true,"id":20518},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"accessibleInInactiveWindow":true,"_Position":{"__isSmartRef__":true,"id":20519},"priorExtent":{"__isSmartRef__":true,"id":20520},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20436},"lighterFill":{"__isSmartRef__":true,"id":20521},"label":{"__isSmartRef__":true,"id":20500},"owner":{"__isSmartRef__":true,"id":20401},"layout":{"__isSmartRef__":true,"id":20530},"attributeConnections":[{"__isSmartRef__":true,"id":20531},{"__isSmartRef__":true,"id":20533}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","derivationIds":[234,"EC7EDE8E-294A-46CF-85BB-BBC525336E13","F24B29EE-0964-499D-834F-E3D087DC6003","F6F3659F-9229-46AA-9B9E-46627A7062B2","A88C4D93-582A-4C0D-9F97-F2F0E291BB7E","AA05682F-3E98-433C-8C01-422A46068DFC","A12AF6EA-E1A6-4527-8E16-D276C19A3A0E","4C7D6ACD-B49F-4877-889E-F26C1CC71D95","7AB2CBD2-B47B-4414-8053-0488FB51D18C","47BF14A4-BBD6-42CA-AF7A-9A29CD80DE50","CC8F7059-EA26-45D8-B311-D21333B72ED9"],"_ClipMode":"visible","_Scale":1,"__LivelyClassName__":"lively.morphic.WindowControl"},"20500":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20501},"id":"78C26364-0E03-4B51-80B1-7E3035D217C5","renderContextTable":{"__isSmartRef__":true,"id":20506},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":20507}],"eventHandler":{"__isSmartRef__":true,"id":20509},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"hidden","fixedWidth":true,"fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_FontSize":8,"_Position":{"__isSmartRef__":true,"id":20510},"priorExtent":{"__isSmartRef__":true,"id":20511},"_MaxTextWidth":13,"_MinTextWidth":13,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20499},"isLabel":true,"_HandStyle":"default","_Align":"center","eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[235,"F92ECC97-5F5B-4CDA-A829-270D000F0D88","A7CDAD5D-BCA1-4AF0-A092-9E81DF1F5C1B","35639FEE-51E8-4469-BB0E-5D1650F1E695","65EBC411-8078-4C93-9A62-F3E8D325DBA7","3F66B345-86BE-4AF4-84FC-BA468E960283","5CA475ED-1D1C-4934-9671-012AA9BAA280","CAC47AC8-FBAF-42E5-9BDA-15414CDFBDDE","8B27F43D-0C2C-4217-9FBC-EC95AE8A708D","6B04D1E4-D30D-4CF1-B117-D3BDEE6BA8AD","C3C98596-F14C-4BDD-A87A-73B964C92577"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"20501":{"_Position":{"__isSmartRef__":true,"id":20502},"renderContextTable":{"__isSmartRef__":true,"id":20503},"_Extent":{"__isSmartRef__":true,"id":20504},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":20505},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20408},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20502":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20503":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20504":{"x":17,"y":17,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20505":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20506":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20507":{"style":{"__isSmartRef__":true,"id":20508},"chunkOwner":{"__isSmartRef__":true,"id":20500},"storedString":"–","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20508":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20509":{"morph":{"__isSmartRef__":true,"id":20500},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20510":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20511":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20512":{"_Position":{"__isSmartRef__":true,"id":20513},"renderContextTable":{"__isSmartRef__":true,"id":20514},"_Extent":{"__isSmartRef__":true,"id":20515},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20516},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20435},"_Fill":{"__isSmartRef__":true,"id":20436},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20513":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20514":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20515":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20516":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20517":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20518":{"morph":{"__isSmartRef__":true,"id":20499},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20519":{"x":684,"y":3,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20520":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20521":{"stops":[{"__isSmartRef__":true,"id":20522},{"__isSmartRef__":true,"id":20524},{"__isSmartRef__":true,"id":20526},{"__isSmartRef__":true,"id":20528}],"vector":{"__isSmartRef__":true,"id":20445},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20522":{"offset":0,"color":{"__isSmartRef__":true,"id":20523}},"20523":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20524":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20525}},"20525":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20526":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20527}},"20527":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20528":{"offset":1,"color":{"__isSmartRef__":true,"id":20529}},"20529":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20530":{"moveHorizontal":true},"20531":{"sourceObj":{"__isSmartRef__":true,"id":20499},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20400},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20532},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20532":{"source":{"__isSmartRef__":true,"id":20499},"target":{"__isSmartRef__":true,"id":20400}},"20533":{"sourceObj":{"__isSmartRef__":true,"id":20499},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20400},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20534},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20534":{"source":{"__isSmartRef__":true,"id":20499},"target":{"__isSmartRef__":true,"id":20400}},"20535":{"_Position":{"__isSmartRef__":true,"id":20536},"renderContextTable":{"__isSmartRef__":true,"id":20537},"_Extent":{"__isSmartRef__":true,"id":20538},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20539},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":20540},"_Fill":{"__isSmartRef__":true,"id":16729},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 8px 8px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20536":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20537":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20538":{"x":723,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20539":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20540":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20541":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20542":{"morph":{"__isSmartRef__":true,"id":20401},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20543":{"resizeWidth":true,"adjustForNewBounds":true},"20544":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20545":{"x":723,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20546":{"renderContextTable":{"__isSmartRef__":true,"id":20547},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":20548},"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":20549},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":20550},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20547":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20548":{"x":723,"y":22,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20549":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20550":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20551":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"20552":{"morph":{"__isSmartRef__":true,"id":20400},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20553":{"adjustForNewBounds":true},"20554":{"x":723,"y":268,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20555":{"submorphs":[{"__isSmartRef__":true,"id":20556},{"__isSmartRef__":true,"id":21518},{"__isSmartRef__":true,"id":21300},{"__isSmartRef__":true,"id":21533},{"__isSmartRef__":true,"id":21549},{"__isSmartRef__":true,"id":21600},{"__isSmartRef__":true,"id":21650},{"__isSmartRef__":true,"id":21706},{"__isSmartRef__":true,"id":21051},{"__isSmartRef__":true,"id":21177},{"__isSmartRef__":true,"id":21761},{"__isSmartRef__":true,"id":21880},{"__isSmartRef__":true,"id":21895},{"__isSmartRef__":true,"id":21910},{"__isSmartRef__":true,"id":21994},{"__isSmartRef__":true,"id":22078},{"__isSmartRef__":true,"id":22162}],"scripts":[{"__isSmartRef__":true,"id":22210}],"id":"12E468B2-695B-4501-A48E-776B9285F1C7","shape":{"__isSmartRef__":true,"id":22211},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"ObjectEditorPane","partsBinMetaInfo":{"__isSmartRef__":true,"id":22218},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":22221},"eventHandler":{"__isSmartRef__":true,"id":22222},"priorExtent":{"__isSmartRef__":true,"id":22223},"layout":{"__isSmartRef__":true,"id":22224},"target":{"__isSmartRef__":true,"id":120},"scriptPane":{"__isSmartRef__":true,"id":21051},"scriptList":{"__isSmartRef__":true,"id":20556},"connectionList":{"__isSmartRef__":true,"id":21300},"morphSelector":{"__isSmartRef__":true,"id":21761},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"changeIndicator":{"__isSmartRef__":true,"id":21177},"isBeingDragged":false,"prevScroll":[0,0],"grabbingEnabled":false,"draggingEnabled":false,"currentCategory":null,"distanceToDragEvent":{"__isSmartRef__":true,"id":22225},"tagChooser":{"__isSmartRef__":true,"id":21910},"currentTag":null,"derivationIds":[206,"3BDE080D-3D60-4BB9-A690-E6001350F596","00E28CBF-E803-4BC0-93CC-651AC21008A5","1B7E7936-0145-47E4-8433-DFE58134E74B","422B98E3-E52B-4057-9C28-865873682DE1","BCDE8D30-ECC2-4883-9587-2518B6822233","BA6D5198-5AC2-4A63-9597-D4CF98A99CA9","17E22972-5EBC-4511-9779-05E9E665D899","C6F34039-F423-4223-8D6A-85611A138372","7EC3BECE-1BDA-471D-B14C-C4FB822AA55C","88F702A6-6067-4160-8561-54FAD27ADB17"],"_Position":{"__isSmartRef__":true,"id":22226},"owner":null,"partTests":{"__isSmartRef__":true,"id":22227},"_ClipMode":"visible","_Rotation":0,"_Scale":1,"markedGem":{"__isSmartRef__":true,"id":15904},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22228},"__LivelyClassName__":"lively.morphic.Box"},"20556":{"submorphs":[],"scripts":[],"id":"A8FEB61F-EFD8-41CD-BD1D-A0179FEAA81E","shape":{"__isSmartRef__":true,"id":20557},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20564},"itemList":["-- ALL --","a","b","c","cleanInitialStreaks","clear","continueRunFieldPhysics","isScoringPossible","iterationGetNext","iterationHasNext","restartIteration","runFieldPhysics","scorePoints","setScore"],"selectedLineNo":3,"showsHalos":false,"name":"ObjectEditorScriptList","partsBinMetaInfo":{"__isSmartRef__":true,"id":20565},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":20555},"priorExtent":{"__isSmartRef__":true,"id":20566},"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":20567}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"layout":{"__isSmartRef__":true,"id":20572},"doitContext":{"__isSmartRef__":true,"id":20573},"renderContextTable":{"__isSmartRef__":true,"id":21507},"eventHandler":{"__isSmartRef__":true,"id":21508},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":21509},"isBeingDragged":false,"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":17,"currentCategory":null,"derivationIds":[207,"D87334B5-DFB8-438D-8038-D2C55A798E3B","4242A24B-D284-4130-BB19-C1AB8C7E96CB","1F2230C1-4745-4EED-8827-5D3FC0EA8D8A","1260A8AA-AD41-451A-A761-BE75A33282E8","11AABB24-1595-4EDC-95DF-8BC66785F47A","CA99FFE7-13DD-4721-8DE2-6A587B0C65D9","E01A3DAA-0001-4C7C-A6A7-449C3945A3E6","8C3C70BF-E1CE-4FB9-8407-24EA990D4E49","D70897C1-82FA-42AD-9D81-A0698E9072CC","69BB0838-2830-4831-A681-185E03308396"],"selection":"c","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21510},"__LivelyClassName__":"lively.morphic.List"},"20557":{"position":{"__isSmartRef__":true,"id":20558},"_Extent":{"__isSmartRef__":true,"id":20559},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":20560},"_Fill":{"__isSmartRef__":true,"id":20561},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":20562},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":20563},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20558":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20559":{"x":180,"y":337.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20560":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20561":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"20562":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20563":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20564":{"x":10,"y":63.027958027992966,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20565":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"20566":{"x":180,"y":338.61253261443596,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20567":{"sourceObj":{"__isSmartRef__":true,"id":20556},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":20555},"targetMethodName":"displaySourceForScript","converterString":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20568},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":20569},"__LivelyClassName__":"AttributeConnection"},"20568":{"source":{"__isSmartRef__":true,"id":20556},"target":{"__isSmartRef__":true,"id":20555}},"20569":{"converter":{"__isSmartRef__":true,"id":20570}},"20570":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":20568},"source":"function (value) {\n return (value === '-- ALL --') ? null : value;\n}","funcProperties":{"__isSmartRef__":true,"id":20571},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"20571":{},"20572":{"resizeHeight":true},"20573":{"submorphs":[],"scripts":[],"id":836,"shape":{"__isSmartRef__":true,"id":20574},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":20579},"priorExtent":{"__isSmartRef__":true,"id":20580},"titleBar":{"__isSmartRef__":true,"id":20581},"contentOffset":{"__isSmartRef__":true,"id":20722},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":{"__isSmartRef__":true,"id":20723},"expandedExtent":{"__isSmartRef__":true,"id":20724},"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":20725},"showsHalos":false,"name":"ObjectEditor","__SourceModuleName__":"Global.lively.morphic.Widgets","target":{"__isSmartRef__":true,"id":20726},"expandedPosition":{"__isSmartRef__":true,"id":21049},"partsBinMetaInfo":{"__isSmartRef__":true,"id":21050},"scriptList":{"__isSmartRef__":true,"id":20556},"scriptPane":{"__isSmartRef__":true,"id":21051},"classButton":{"__isSmartRef__":true,"id":21255},"connectionList":{"__isSmartRef__":true,"id":21300},"targetButton":{"__isSmartRef__":true,"id":21325},"renderContextTable":{"__isSmartRef__":true,"id":21368},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Position":{"__isSmartRef__":true,"id":21369},"morphSelector":{"__isSmartRef__":true,"id":21370},"eventHandler":{"__isSmartRef__":true,"id":21454},"cameForward":false,"isCopyMorphRef":true,"morphRefId":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21455},"__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"20574":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":20575},"_StrokeOpacity":0,"_BorderRadius":9.25,"_Extent":{"__isSmartRef__":true,"id":20576},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderColor":{"__isSmartRef__":true,"id":20577},"renderContextTable":{"__isSmartRef__":true,"id":20578},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20575":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20576":{"x":981,"y":585.2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20577":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20578":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20579":{"adjustForNewBounds":true},"20580":{"x":981,"y":585.2,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20581":{"submorphs":[{"__isSmartRef__":true,"id":20582},{"__isSmartRef__":true,"id":20595},{"__isSmartRef__":true,"id":20639},{"__isSmartRef__":true,"id":20671}],"scripts":[],"id":837,"shape":{"__isSmartRef__":true,"id":20704},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20717},"_Position":{"__isSmartRef__":true,"id":20718},"eventsAreIgnored":true,"windowMorph":{"__isSmartRef__":true,"id":20573},"label":{"__isSmartRef__":true,"id":20582},"closeButton":{"__isSmartRef__":true,"id":20595},"menuButton":{"__isSmartRef__":true,"id":20639},"collapseButton":{"__isSmartRef__":true,"id":20671},"priorExtent":{"__isSmartRef__":true,"id":20719},"owner":null,"__SourceModuleName__":"Global.lively.morphic.Widgets","name":"ObjectEditorTitleBar","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20720},"eventHandler":{"__isSmartRef__":true,"id":20721},"__LivelyClassName__":"lively.morphic.TitleBar"},"20582":{"submorphs":[],"scripts":[],"id":838,"shape":{"__isSmartRef__":true,"id":20583},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20588},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20589},"priorExtent":{"__isSmartRef__":true,"id":20590},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20591}],"evalEnabled":false,"isLabel":true,"eventsAreIgnored":true,"_FontSize":10,"_Align":"center","owner":{"__isSmartRef__":true,"id":20581},"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20593},"eventHandler":{"__isSmartRef__":true,"id":20594},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"20583":{"_Position":{"__isSmartRef__":true,"id":20584},"_Extent":{"__isSmartRef__":true,"id":20585},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20586},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20587},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20584":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20585":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20586":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20587":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20588":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20589":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20590":{"x":921.9776803724167,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20591":{"style":{"__isSmartRef__":true,"id":20592},"chunkOwner":{"__isSmartRef__":true,"id":20582},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20592":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20593":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20594":{"morph":{"__isSmartRef__":true,"id":20582},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20595":{"submorphs":[{"__isSmartRef__":true,"id":20596}],"scripts":[],"id":839,"shape":{"__isSmartRef__":true,"id":20608},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20623},"priorExtent":{"__isSmartRef__":true,"id":20624},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20612},"lighterFill":{"__isSmartRef__":true,"id":20625},"label":{"__isSmartRef__":true,"id":20596},"owner":{"__isSmartRef__":true,"id":20581},"layout":{"__isSmartRef__":true,"id":20634},"attributeConnections":[{"__isSmartRef__":true,"id":20635},{"__isSmartRef__":true,"id":20636}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20637},"eventHandler":{"__isSmartRef__":true,"id":20638},"__LivelyClassName__":"lively.morphic.WindowControl"},"20596":{"submorphs":[],"scripts":[],"id":840,"shape":{"__isSmartRef__":true,"id":20597},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20601},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20602},"priorExtent":{"__isSmartRef__":true,"id":20603},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20604}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20595},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20606},"eventHandler":{"__isSmartRef__":true,"id":20607},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"20597":{"_Position":{"__isSmartRef__":true,"id":20598},"_Extent":{"__isSmartRef__":true,"id":20599},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20586},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20600},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20598":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20599":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20600":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20601":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20602":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20603":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20604":{"style":{"__isSmartRef__":true,"id":20605},"chunkOwner":{"__isSmartRef__":true,"id":20596},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20605":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20606":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20607":{"morph":{"__isSmartRef__":true,"id":20596},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20608":{"_Position":{"__isSmartRef__":true,"id":20609},"_Extent":{"__isSmartRef__":true,"id":20610},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20611},"_Fill":{"__isSmartRef__":true,"id":20612},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20622},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20609":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20610":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20611":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20612":{"stops":[{"__isSmartRef__":true,"id":20613},{"__isSmartRef__":true,"id":20615},{"__isSmartRef__":true,"id":20617},{"__isSmartRef__":true,"id":20619}],"vector":{"__isSmartRef__":true,"id":20621},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20613":{"offset":0,"color":{"__isSmartRef__":true,"id":20614}},"20614":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20615":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20616}},"20616":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20617":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20618}},"20618":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20619":{"offset":1,"color":{"__isSmartRef__":true,"id":20620}},"20620":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20621":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20622":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20623":{"x":960.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20624":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20625":{"stops":[{"__isSmartRef__":true,"id":20626},{"__isSmartRef__":true,"id":20628},{"__isSmartRef__":true,"id":20630},{"__isSmartRef__":true,"id":20632}],"vector":{"__isSmartRef__":true,"id":20621},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20626":{"offset":0,"color":{"__isSmartRef__":true,"id":20627}},"20627":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20628":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20629}},"20629":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20630":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20631}},"20631":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20632":{"offset":1,"color":{"__isSmartRef__":true,"id":20633}},"20633":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20634":{"moveHorizontal":true},"20635":{"sourceObj":{"__isSmartRef__":true,"id":20595},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20573},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20636":{"sourceObj":{"__isSmartRef__":true,"id":20595},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20573},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20637":{"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","setPointerEvents":"setPointerEventsHTML"},"20638":{"morph":{"__isSmartRef__":true,"id":20595},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20639":{"submorphs":[{"__isSmartRef__":true,"id":20640}],"scripts":[],"id":841,"shape":{"__isSmartRef__":true,"id":20652},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20656},"priorExtent":{"__isSmartRef__":true,"id":20657},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20612},"lighterFill":{"__isSmartRef__":true,"id":20658},"label":{"__isSmartRef__":true,"id":20640},"owner":{"__isSmartRef__":true,"id":20581},"attributeConnections":[{"__isSmartRef__":true,"id":20667},{"__isSmartRef__":true,"id":20668}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","showsHalos":false,"_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20669},"eventHandler":{"__isSmartRef__":true,"id":20670},"__LivelyClassName__":"lively.morphic.WindowControl"},"20640":{"submorphs":[],"scripts":[],"id":842,"shape":{"__isSmartRef__":true,"id":20641},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20645},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20646},"priorExtent":{"__isSmartRef__":true,"id":20647},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20648}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20639},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20650},"eventHandler":{"__isSmartRef__":true,"id":20651},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"20641":{"_Position":{"__isSmartRef__":true,"id":20642},"_Extent":{"__isSmartRef__":true,"id":20643},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20586},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20644},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20642":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20643":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20644":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20645":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20646":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20647":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20648":{"style":{"__isSmartRef__":true,"id":20649},"chunkOwner":{"__isSmartRef__":true,"id":20640},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20649":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20650":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20651":{"morph":{"__isSmartRef__":true,"id":20640},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20652":{"_Position":{"__isSmartRef__":true,"id":20653},"_Extent":{"__isSmartRef__":true,"id":20654},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20611},"_Fill":{"__isSmartRef__":true,"id":20612},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20655},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20653":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20654":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20655":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20656":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20657":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20658":{"stops":[{"__isSmartRef__":true,"id":20659},{"__isSmartRef__":true,"id":20661},{"__isSmartRef__":true,"id":20663},{"__isSmartRef__":true,"id":20665}],"vector":{"__isSmartRef__":true,"id":20621},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20659":{"offset":0,"color":{"__isSmartRef__":true,"id":20660}},"20660":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20661":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20662}},"20662":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20663":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20664}},"20664":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20665":{"offset":1,"color":{"__isSmartRef__":true,"id":20666}},"20666":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20667":{"sourceObj":{"__isSmartRef__":true,"id":20639},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20573},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20668":{"sourceObj":{"__isSmartRef__":true,"id":20639},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20573},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20669":{"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","setPointerEvents":"setPointerEventsHTML"},"20670":{"morph":{"__isSmartRef__":true,"id":20639},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20671":{"submorphs":[{"__isSmartRef__":true,"id":20672}],"scripts":[],"id":843,"shape":{"__isSmartRef__":true,"id":20684},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20688},"priorExtent":{"__isSmartRef__":true,"id":20689},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20612},"lighterFill":{"__isSmartRef__":true,"id":20690},"label":{"__isSmartRef__":true,"id":20672},"owner":{"__isSmartRef__":true,"id":20581},"layout":{"__isSmartRef__":true,"id":20699},"attributeConnections":[{"__isSmartRef__":true,"id":20700},{"__isSmartRef__":true,"id":20701}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20702},"eventHandler":{"__isSmartRef__":true,"id":20703},"__LivelyClassName__":"lively.morphic.WindowControl"},"20672":{"submorphs":[],"scripts":[],"id":844,"shape":{"__isSmartRef__":true,"id":20673},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20677},"_ClipMode":"hidden","fixedWidth":false,"_WhiteSpaceHandling":"pre","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20678},"priorExtent":{"__isSmartRef__":true,"id":20679},"_MaxTextWidth":null,"_MaxTextHeight":17,"textChunks":[{"__isSmartRef__":true,"id":20680}],"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20671},"isLabel":true,"eventsAreIgnored":true,"_FontSize":8,"__SourceModuleName__":"Global.lively.morphic.TextCore","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":20682},"eventHandler":{"__isSmartRef__":true,"id":20683},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"20673":{"_Position":{"__isSmartRef__":true,"id":20674},"_Extent":{"__isSmartRef__":true,"id":20675},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20586},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20676},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20674":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20675":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20676":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20677":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20678":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20679":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20680":{"style":{"__isSmartRef__":true,"id":20681},"chunkOwner":{"__isSmartRef__":true,"id":20672},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20681":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20682":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20683":{"morph":{"__isSmartRef__":true,"id":20672},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20684":{"_Position":{"__isSmartRef__":true,"id":20685},"_Extent":{"__isSmartRef__":true,"id":20686},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20611},"_Fill":{"__isSmartRef__":true,"id":20612},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20687},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20685":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20686":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20687":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20688":{"x":941.9776803724167,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20689":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20690":{"stops":[{"__isSmartRef__":true,"id":20691},{"__isSmartRef__":true,"id":20693},{"__isSmartRef__":true,"id":20695},{"__isSmartRef__":true,"id":20697}],"vector":{"__isSmartRef__":true,"id":20621},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20691":{"offset":0,"color":{"__isSmartRef__":true,"id":20692}},"20692":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20693":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20694}},"20694":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20695":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20696}},"20696":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20697":{"offset":1,"color":{"__isSmartRef__":true,"id":20698}},"20698":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20699":{"moveHorizontal":true},"20700":{"sourceObj":{"__isSmartRef__":true,"id":20671},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20573},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20701":{"sourceObj":{"__isSmartRef__":true,"id":20671},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20573},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20702":{"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","setPointerEvents":"setPointerEventsHTML"},"20703":{"morph":{"__isSmartRef__":true,"id":20671},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20704":{"_Position":{"__isSmartRef__":true,"id":20705},"_Extent":{"__isSmartRef__":true,"id":20706},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":20707},"_Fill":{"__isSmartRef__":true,"id":20708},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":20716},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20705":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20706":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20707":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20708":{"stops":[{"__isSmartRef__":true,"id":20709},{"__isSmartRef__":true,"id":20711},{"__isSmartRef__":true,"id":20713}],"vector":{"__isSmartRef__":true,"id":20715},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20709":{"offset":0,"color":{"__isSmartRef__":true,"id":20710}},"20710":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20711":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20712}},"20712":{"r":0.9,"g":0.9,"b":0.9,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20713":{"offset":1,"color":{"__isSmartRef__":true,"id":20714}},"20714":{"r":0.7200000000000001,"g":0.7200000000000001,"b":0.7200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20715":{"x":0,"y":1,"width":0,"height":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20716":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20717":{"resizeWidth":true,"adjustForNewBounds":true},"20718":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20719":{"x":980.9776803724167,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20720":{"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","setPointerEvents":"setPointerEventsHTML"},"20721":{"morph":{"__isSmartRef__":true,"id":20581},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20722":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20723":{"a":1,"b":0,"c":0,"d":1,"e":377.6609726943286,"f":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"20724":{"x":861.5223196275833,"y":575.166499196892,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20725":{"x":613,"y":129,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20726":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20727},"id":394,"renderContextTable":{"__isSmartRef__":true,"id":20733},"textChunks":[{"__isSmartRef__":true,"id":20734}],"eventHandler":{"__isSmartRef__":true,"id":20736},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20737},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20738},"priorExtent":{"__isSmartRef__":true,"id":20739},"_MaxTextWidth":500,"_MaxTextHeight":200,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20740},"layout":{"__isSmartRef__":true,"id":20887},"doitContext":{"__isSmartRef__":true,"id":20888},"priorSelectionRange":[0,36],"charsReplaced":"","lastFindLoc":20,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20727":{"_Position":{"__isSmartRef__":true,"id":20728},"renderContextTable":{"__isSmartRef__":true,"id":20729},"_Extent":{"__isSmartRef__":true,"id":20730},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":{"__isSmartRef__":true,"id":20732},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20728":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20729":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20730":{"x":500,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20731":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20732":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20733":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20734":{"style":{"__isSmartRef__":true,"id":20735},"chunkOwner":{"__isSmartRef__":true,"id":20726},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20735":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20736":{"morph":{"__isSmartRef__":true,"id":20726},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20737":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20738":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20739":{"x":500,"y":200,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20740":{"submorphs":[{"__isSmartRef__":true,"id":20726},{"__isSmartRef__":true,"id":20741}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20878},"id":395,"renderContextTable":{"__isSmartRef__":true,"id":20881},"eventHandler":{"__isSmartRef__":true,"id":20882},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":20883},"LK2":true,"_Position":{"__isSmartRef__":true,"id":20884},"priorExtent":{"__isSmartRef__":true,"id":20885},"targetMorph":{"__isSmartRef__":true,"id":20726},"titleBar":{"__isSmartRef__":true,"id":20741},"contentOffset":{"__isSmartRef__":true,"id":20738},"collapsedTransform":null,"collapsedExtent":null,"expandedTransform":null,"expandedExtent":null,"ignoreEventsOnExpand":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":20886},"cameForward":false,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"20741":{"submorphs":[{"__isSmartRef__":true,"id":20742},{"__isSmartRef__":true,"id":20755},{"__isSmartRef__":true,"id":20801},{"__isSmartRef__":true,"id":20834}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20868},"id":396,"renderContextTable":{"__isSmartRef__":true,"id":20873},"eventHandler":{"__isSmartRef__":true,"id":20874},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":20875},"_Position":{"__isSmartRef__":true,"id":20876},"windowMorph":{"__isSmartRef__":true,"id":20740},"label":{"__isSmartRef__":true,"id":20742},"closeButton":{"__isSmartRef__":true,"id":20755},"menuButton":{"__isSmartRef__":true,"id":20801},"collapseButton":{"__isSmartRef__":true,"id":20834},"priorExtent":{"__isSmartRef__":true,"id":20877},"owner":{"__isSmartRef__":true,"id":20740},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"20742":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20743},"id":397,"renderContextTable":{"__isSmartRef__":true,"id":20747},"textChunks":[{"__isSmartRef__":true,"id":20748}],"eventHandler":{"__isSmartRef__":true,"id":20750},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20751},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":20752},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":20741},"priorExtent":{"__isSmartRef__":true,"id":20753},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":20754},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20743":{"_Position":{"__isSmartRef__":true,"id":20744},"renderContextTable":{"__isSmartRef__":true,"id":20745},"_Extent":{"__isSmartRef__":true,"id":20746},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20744":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20745":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20746":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20747":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20748":{"style":{"__isSmartRef__":true,"id":20749},"chunkOwner":{"__isSmartRef__":true,"id":20742},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20749":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20750":{"morph":{"__isSmartRef__":true,"id":20742},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20751":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20752":{"resizeWidth":true},"20753":{"x":0,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20754":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20755":{"submorphs":[{"__isSmartRef__":true,"id":20756}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20768},"id":398,"renderContextTable":{"__isSmartRef__":true,"id":20783},"eventHandler":{"__isSmartRef__":true,"id":20784},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20785},"priorExtent":{"__isSmartRef__":true,"id":20786},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20773},"lighterFill":{"__isSmartRef__":true,"id":20787},"label":{"__isSmartRef__":true,"id":20756},"owner":{"__isSmartRef__":true,"id":20741},"layout":{"__isSmartRef__":true,"id":20796},"attributeConnections":[{"__isSmartRef__":true,"id":20797},{"__isSmartRef__":true,"id":20799}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"20756":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20757},"id":399,"renderContextTable":{"__isSmartRef__":true,"id":20761},"textChunks":[{"__isSmartRef__":true,"id":20762}],"eventHandler":{"__isSmartRef__":true,"id":20764},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20765},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20766},"priorExtent":{"__isSmartRef__":true,"id":20767},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20755},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20757":{"_Position":{"__isSmartRef__":true,"id":20758},"renderContextTable":{"__isSmartRef__":true,"id":20759},"_Extent":{"__isSmartRef__":true,"id":20760},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20758":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20759":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20760":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20761":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20762":{"style":{"__isSmartRef__":true,"id":20763},"chunkOwner":{"__isSmartRef__":true,"id":20756},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20763":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20764":{"morph":{"__isSmartRef__":true,"id":20756},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20765":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20766":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20767":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20768":{"_Position":{"__isSmartRef__":true,"id":20769},"renderContextTable":{"__isSmartRef__":true,"id":20770},"_Extent":{"__isSmartRef__":true,"id":20771},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20772},"_Fill":{"__isSmartRef__":true,"id":20773},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20769":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20770":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20771":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20772":{"r":0.7411764705882353,"g":0.7450980392156863,"b":0.7529411764705882,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20773":{"stops":[{"__isSmartRef__":true,"id":20774},{"__isSmartRef__":true,"id":20776},{"__isSmartRef__":true,"id":20778},{"__isSmartRef__":true,"id":20780}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20774":{"offset":0,"color":{"__isSmartRef__":true,"id":20775}},"20775":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20776":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20777}},"20777":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20778":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20779}},"20779":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20780":{"offset":1,"color":{"__isSmartRef__":true,"id":20781}},"20781":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20782":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"20783":{"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","setPointerEvents":"setPointerEventsHTML"},"20784":{"morph":{"__isSmartRef__":true,"id":20755},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20785":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20786":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20787":{"stops":[{"__isSmartRef__":true,"id":20788},{"__isSmartRef__":true,"id":20790},{"__isSmartRef__":true,"id":20792},{"__isSmartRef__":true,"id":20794}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20788":{"offset":0,"color":{"__isSmartRef__":true,"id":20789}},"20789":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20790":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20791}},"20791":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20792":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20793}},"20793":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20794":{"offset":1,"color":{"__isSmartRef__":true,"id":20795}},"20795":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20796":{"moveHorizontal":true},"20797":{"sourceObj":{"__isSmartRef__":true,"id":20755},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20740},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20798},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20798":{"source":{"__isSmartRef__":true,"id":20755},"target":{"__isSmartRef__":true,"id":20740}},"20799":{"sourceObj":{"__isSmartRef__":true,"id":20755},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20740},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20800},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20800":{"source":{"__isSmartRef__":true,"id":20755},"target":{"__isSmartRef__":true,"id":20740}},"20801":{"submorphs":[{"__isSmartRef__":true,"id":20802}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20813},"id":400,"renderContextTable":{"__isSmartRef__":true,"id":20817},"eventHandler":{"__isSmartRef__":true,"id":20818},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20819},"priorExtent":{"__isSmartRef__":true,"id":20820},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20773},"lighterFill":{"__isSmartRef__":true,"id":20821},"label":{"__isSmartRef__":true,"id":20802},"owner":{"__isSmartRef__":true,"id":20741},"attributeConnections":[{"__isSmartRef__":true,"id":20830},{"__isSmartRef__":true,"id":20832}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"20802":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20803},"id":401,"renderContextTable":{"__isSmartRef__":true,"id":20807},"textChunks":[{"__isSmartRef__":true,"id":20808}],"eventHandler":{"__isSmartRef__":true,"id":20810},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20765},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20811},"priorExtent":{"__isSmartRef__":true,"id":20812},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20801},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20803":{"_Position":{"__isSmartRef__":true,"id":20804},"renderContextTable":{"__isSmartRef__":true,"id":20805},"_Extent":{"__isSmartRef__":true,"id":20806},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20804":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20805":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20806":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20807":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20808":{"style":{"__isSmartRef__":true,"id":20809},"chunkOwner":{"__isSmartRef__":true,"id":20802},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20809":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20810":{"morph":{"__isSmartRef__":true,"id":20802},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20811":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20812":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20813":{"_Position":{"__isSmartRef__":true,"id":20814},"renderContextTable":{"__isSmartRef__":true,"id":20815},"_Extent":{"__isSmartRef__":true,"id":20816},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20772},"_Fill":{"__isSmartRef__":true,"id":20773},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20814":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20816":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20817":{"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","setPointerEvents":"setPointerEventsHTML"},"20818":{"morph":{"__isSmartRef__":true,"id":20801},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20819":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20820":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20821":{"stops":[{"__isSmartRef__":true,"id":20822},{"__isSmartRef__":true,"id":20824},{"__isSmartRef__":true,"id":20826},{"__isSmartRef__":true,"id":20828}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20822":{"offset":0,"color":{"__isSmartRef__":true,"id":20823}},"20823":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20824":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20825}},"20825":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20826":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20827}},"20827":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20828":{"offset":1,"color":{"__isSmartRef__":true,"id":20829}},"20829":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20830":{"sourceObj":{"__isSmartRef__":true,"id":20801},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20740},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20831},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20831":{"source":{"__isSmartRef__":true,"id":20801},"target":{"__isSmartRef__":true,"id":20740}},"20832":{"sourceObj":{"__isSmartRef__":true,"id":20801},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20740},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20833},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20833":{"source":{"__isSmartRef__":true,"id":20801},"target":{"__isSmartRef__":true,"id":20740}},"20834":{"submorphs":[{"__isSmartRef__":true,"id":20835}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20846},"id":402,"renderContextTable":{"__isSmartRef__":true,"id":20850},"eventHandler":{"__isSmartRef__":true,"id":20851},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20852},"priorExtent":{"__isSmartRef__":true,"id":20853},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20773},"lighterFill":{"__isSmartRef__":true,"id":20854},"label":{"__isSmartRef__":true,"id":20835},"owner":{"__isSmartRef__":true,"id":20741},"layout":{"__isSmartRef__":true,"id":20863},"attributeConnections":[{"__isSmartRef__":true,"id":20864},{"__isSmartRef__":true,"id":20866}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"20835":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20836},"id":403,"renderContextTable":{"__isSmartRef__":true,"id":20840},"textChunks":[{"__isSmartRef__":true,"id":20841}],"eventHandler":{"__isSmartRef__":true,"id":20843},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20765},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20844},"priorExtent":{"__isSmartRef__":true,"id":20845},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20834},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20836":{"_Position":{"__isSmartRef__":true,"id":20837},"renderContextTable":{"__isSmartRef__":true,"id":20838},"_Extent":{"__isSmartRef__":true,"id":20839},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20837":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20838":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20839":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20840":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20841":{"style":{"__isSmartRef__":true,"id":20842},"chunkOwner":{"__isSmartRef__":true,"id":20835},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20842":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20843":{"morph":{"__isSmartRef__":true,"id":20835},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20844":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20845":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20846":{"_Position":{"__isSmartRef__":true,"id":20847},"renderContextTable":{"__isSmartRef__":true,"id":20848},"_Extent":{"__isSmartRef__":true,"id":20849},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20772},"_Fill":{"__isSmartRef__":true,"id":20773},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20847":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20848":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20849":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20850":{"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","setPointerEvents":"setPointerEventsHTML"},"20851":{"morph":{"__isSmartRef__":true,"id":20834},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20852":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20853":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20854":{"stops":[{"__isSmartRef__":true,"id":20855},{"__isSmartRef__":true,"id":20857},{"__isSmartRef__":true,"id":20859},{"__isSmartRef__":true,"id":20861}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20855":{"offset":0,"color":{"__isSmartRef__":true,"id":20856}},"20856":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20857":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20858}},"20858":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20859":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20860}},"20860":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20861":{"offset":1,"color":{"__isSmartRef__":true,"id":20862}},"20862":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20863":{"moveHorizontal":true},"20864":{"sourceObj":{"__isSmartRef__":true,"id":20834},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20740},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20865},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20865":{"source":{"__isSmartRef__":true,"id":20834},"target":{"__isSmartRef__":true,"id":20740}},"20866":{"sourceObj":{"__isSmartRef__":true,"id":20834},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20740},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20867},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20867":{"source":{"__isSmartRef__":true,"id":20834},"target":{"__isSmartRef__":true,"id":20740}},"20868":{"_Position":{"__isSmartRef__":true,"id":20869},"renderContextTable":{"__isSmartRef__":true,"id":20870},"_Extent":{"__isSmartRef__":true,"id":20871},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":20872},"_Fill":{"__isSmartRef__":true,"id":20708},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20869":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20870":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20871":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20872":{"r":0.4,"g":0.4,"b":0.4,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20873":{"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","setPointerEvents":"setPointerEventsHTML"},"20874":{"morph":{"__isSmartRef__":true,"id":20741},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20875":{"resizeWidth":true,"adjustForNewBounds":true},"20876":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20877":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20878":{"renderContextTable":{"__isSmartRef__":true,"id":20879},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":20880},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20879":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20880":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20881":{"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","setPointerEvents":"setPointerEventsHTML"},"20882":{"morph":{"__isSmartRef__":true,"id":20740},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20883":{"adjustForNewBounds":true},"20884":{"x":1234,"y":448,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20885":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20886":{"x":1478,"y":453,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20887":{"resizeWidth":true,"resizeHeight":true},"20888":{"submorphs":[{"__isSmartRef__":true,"id":20889},{"__isSmartRef__":true,"id":20903}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21033},"id":361,"renderContextTable":{"__isSmartRef__":true,"id":21037},"eventHandler":{"__isSmartRef__":true,"id":21038},"droppingEnabled":true,"halosEnabled":true,"__layered_draggingEnabled__":true,"layout":{"__isSmartRef__":true,"id":21039},"LK2":true,"_Position":{"__isSmartRef__":true,"id":21040},"priorExtent":{"__isSmartRef__":true,"id":21041},"targetMorph":{"__isSmartRef__":true,"id":20889},"titleBar":{"__isSmartRef__":true,"id":20903},"contentOffset":{"__isSmartRef__":true,"id":20899},"collapsedTransform":{"__isSmartRef__":true,"id":21042},"collapsedExtent":{"__isSmartRef__":true,"id":21043},"expandedTransform":{"__isSmartRef__":true,"id":21044},"expandedExtent":{"__isSmartRef__":true,"id":21045},"ignoreEventsOnExpand":false,"owner":null,"showsHalos":false,"highlighted":true,"_Rotation":0,"_Scale":1,"prevDragPos":{"__isSmartRef__":true,"id":21046},"expandedPosition":{"__isSmartRef__":true,"id":21047},"state":"shutdown","collapsedPosition":{"__isSmartRef__":true,"id":21048},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.Window","withoutLayers":["Global.lively.morphic.GrabbingLayer"]},"20889":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20890},"id":360,"renderContextTable":{"__isSmartRef__":true,"id":20895},"textChunks":[{"__isSmartRef__":true,"id":20896}],"eventHandler":{"__isSmartRef__":true,"id":20898},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20737},"_ClipMode":"auto","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,monospace","_Position":{"__isSmartRef__":true,"id":20899},"priorExtent":{"__isSmartRef__":true,"id":20900},"_MaxTextWidth":500,"_MaxTextHeight":0,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20888},"layout":{"__isSmartRef__":true,"id":20901},"syntaxHighlightingWhileTyping":true,"attributeConnections":[{"__isSmartRef__":true,"id":20902}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"lastSyntaxHighlightTime":1307282796737,"accessibleInInactiveWindow":true,"eventsAreIgnored":false,"_HandStyle":"default","_PointerEvents":"auto","_Visible":true,"priorSelectionRange":[0,22],"charsReplaced":"","lastFindLoc":15,"__SourceModuleName__":"Global.lively.morphic.TextCore","textString":"undefined","__LivelyClassName__":"lively.morphic.Text"},"20890":{"_Position":{"__isSmartRef__":true,"id":20891},"renderContextTable":{"__isSmartRef__":true,"id":20892},"_Extent":{"__isSmartRef__":true,"id":20893},"_BorderWidth":2,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":{"__isSmartRef__":true,"id":20894},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20891":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20892":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20893":{"x":500,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20894":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20895":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20896":{"style":{"__isSmartRef__":true,"id":20897},"chunkOwner":{"__isSmartRef__":true,"id":20889},"storedString":"undefined","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20897":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"20898":{"morph":{"__isSmartRef__":true,"id":20889},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20899":{"x":0,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20900":{"x":500,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20901":{"resizeWidth":true,"resizeHeight":true},"20902":{"sourceObj":{"__isSmartRef__":true,"id":20889},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":20889},"targetMethodName":"highlightJavaScriptSyntax","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20903":{"submorphs":[{"__isSmartRef__":true,"id":20904},{"__isSmartRef__":true,"id":20916},{"__isSmartRef__":true,"id":20950},{"__isSmartRef__":true,"id":20983}],"scripts":[],"shape":{"__isSmartRef__":true,"id":21017},"id":362,"renderContextTable":{"__isSmartRef__":true,"id":21028},"eventHandler":{"__isSmartRef__":true,"id":21029},"droppingEnabled":true,"halosEnabled":true,"layout":{"__isSmartRef__":true,"id":21030},"_Position":{"__isSmartRef__":true,"id":21031},"windowMorph":{"__isSmartRef__":true,"id":20888},"label":{"__isSmartRef__":true,"id":20904},"closeButton":{"__isSmartRef__":true,"id":20916},"menuButton":{"__isSmartRef__":true,"id":20950},"collapseButton":{"__isSmartRef__":true,"id":20983},"priorExtent":{"__isSmartRef__":true,"id":21032},"owner":{"__isSmartRef__":true,"id":20888},"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.TitleBar"},"20904":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20905},"id":363,"renderContextTable":{"__isSmartRef__":true,"id":20909},"textChunks":[{"__isSmartRef__":true,"id":20910}],"eventHandler":{"__isSmartRef__":true,"id":20912},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20751},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","evalEnabled":false,"isLabel":true,"_HandStyle":"default","layout":{"__isSmartRef__":true,"id":20913},"_FontSize":10,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","owner":{"__isSmartRef__":true,"id":20903},"priorExtent":{"__isSmartRef__":true,"id":20914},"_MaxTextWidth":441,"_MaxTextHeight":17,"_Position":{"__isSmartRef__":true,"id":20915},"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20905":{"_Position":{"__isSmartRef__":true,"id":20906},"renderContextTable":{"__isSmartRef__":true,"id":20907},"_Extent":{"__isSmartRef__":true,"id":20908},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"_BorderRadius":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20906":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20907":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20908":{"x":441,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20909":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20910":{"style":{"__isSmartRef__":true,"id":20911},"chunkOwner":{"__isSmartRef__":true,"id":20904},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20911":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20912":{"morph":{"__isSmartRef__":true,"id":20904},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20913":{"resizeWidth":true},"20914":{"x":0,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20915":{"x":20,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20916":{"submorphs":[{"__isSmartRef__":true,"id":20917}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20928},"id":364,"renderContextTable":{"__isSmartRef__":true,"id":20932},"eventHandler":{"__isSmartRef__":true,"id":20933},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20934},"priorExtent":{"__isSmartRef__":true,"id":20935},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20773},"lighterFill":{"__isSmartRef__":true,"id":20936},"label":{"__isSmartRef__":true,"id":20917},"owner":{"__isSmartRef__":true,"id":20903},"layout":{"__isSmartRef__":true,"id":20945},"attributeConnections":[{"__isSmartRef__":true,"id":20946},{"__isSmartRef__":true,"id":20948}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"20917":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20918},"id":365,"renderContextTable":{"__isSmartRef__":true,"id":20922},"textChunks":[{"__isSmartRef__":true,"id":20923}],"eventHandler":{"__isSmartRef__":true,"id":20925},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20765},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20926},"priorExtent":{"__isSmartRef__":true,"id":20927},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20916},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20918":{"_Position":{"__isSmartRef__":true,"id":20919},"renderContextTable":{"__isSmartRef__":true,"id":20920},"_Extent":{"__isSmartRef__":true,"id":20921},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20919":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20920":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20921":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20922":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20923":{"style":{"__isSmartRef__":true,"id":20924},"chunkOwner":{"__isSmartRef__":true,"id":20917},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20924":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20925":{"morph":{"__isSmartRef__":true,"id":20917},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20926":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20927":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20928":{"_Position":{"__isSmartRef__":true,"id":20929},"renderContextTable":{"__isSmartRef__":true,"id":20930},"_Extent":{"__isSmartRef__":true,"id":20931},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20772},"_Fill":{"__isSmartRef__":true,"id":20773},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20929":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20930":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20931":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20932":{"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","setPointerEvents":"setPointerEventsHTML"},"20933":{"morph":{"__isSmartRef__":true,"id":20916},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20934":{"x":480,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20935":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20936":{"stops":[{"__isSmartRef__":true,"id":20937},{"__isSmartRef__":true,"id":20939},{"__isSmartRef__":true,"id":20941},{"__isSmartRef__":true,"id":20943}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20937":{"offset":0,"color":{"__isSmartRef__":true,"id":20938}},"20938":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20939":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20940}},"20940":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20941":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20942}},"20942":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20943":{"offset":1,"color":{"__isSmartRef__":true,"id":20944}},"20944":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20945":{"moveHorizontal":true},"20946":{"sourceObj":{"__isSmartRef__":true,"id":20916},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20888},"targetMethodName":"getCloseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20947},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20947":{"source":{"__isSmartRef__":true,"id":20916},"target":{"__isSmartRef__":true,"id":20888}},"20948":{"sourceObj":{"__isSmartRef__":true,"id":20916},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20888},"targetMethodName":"initiateShutdown","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20949},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20949":{"source":{"__isSmartRef__":true,"id":20916},"target":{"__isSmartRef__":true,"id":20888}},"20950":{"submorphs":[{"__isSmartRef__":true,"id":20951}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20962},"id":366,"renderContextTable":{"__isSmartRef__":true,"id":20966},"eventHandler":{"__isSmartRef__":true,"id":20967},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":20968},"priorExtent":{"__isSmartRef__":true,"id":20969},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20773},"lighterFill":{"__isSmartRef__":true,"id":20970},"label":{"__isSmartRef__":true,"id":20951},"owner":{"__isSmartRef__":true,"id":20903},"attributeConnections":[{"__isSmartRef__":true,"id":20979},{"__isSmartRef__":true,"id":20981}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"20951":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20952},"id":367,"renderContextTable":{"__isSmartRef__":true,"id":20956},"textChunks":[{"__isSmartRef__":true,"id":20957}],"eventHandler":{"__isSmartRef__":true,"id":20959},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20765},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20960},"priorExtent":{"__isSmartRef__":true,"id":20961},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20950},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20952":{"_Position":{"__isSmartRef__":true,"id":20953},"renderContextTable":{"__isSmartRef__":true,"id":20954},"_Extent":{"__isSmartRef__":true,"id":20955},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20953":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20954":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20955":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20956":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20957":{"style":{"__isSmartRef__":true,"id":20958},"chunkOwner":{"__isSmartRef__":true,"id":20951},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20958":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20959":{"morph":{"__isSmartRef__":true,"id":20951},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20960":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20961":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20962":{"_Position":{"__isSmartRef__":true,"id":20963},"renderContextTable":{"__isSmartRef__":true,"id":20964},"_Extent":{"__isSmartRef__":true,"id":20965},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20772},"_Fill":{"__isSmartRef__":true,"id":20773},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20963":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20964":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20965":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20966":{"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","setPointerEvents":"setPointerEventsHTML"},"20967":{"morph":{"__isSmartRef__":true,"id":20950},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20968":{"x":3,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20969":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20970":{"stops":[{"__isSmartRef__":true,"id":20971},{"__isSmartRef__":true,"id":20973},{"__isSmartRef__":true,"id":20975},{"__isSmartRef__":true,"id":20977}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20971":{"offset":0,"color":{"__isSmartRef__":true,"id":20972}},"20972":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20973":{"offset":0.4,"color":{"__isSmartRef__":true,"id":20974}},"20974":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20975":{"offset":0.6,"color":{"__isSmartRef__":true,"id":20976}},"20976":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20977":{"offset":1,"color":{"__isSmartRef__":true,"id":20978}},"20978":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"20979":{"sourceObj":{"__isSmartRef__":true,"id":20950},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20888},"targetMethodName":"getMenuHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20980},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20980":{"source":{"__isSmartRef__":true,"id":20950},"target":{"__isSmartRef__":true,"id":20888}},"20981":{"sourceObj":{"__isSmartRef__":true,"id":20950},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20888},"targetMethodName":"showTargetMorphMenu","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":20982},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"20982":{"source":{"__isSmartRef__":true,"id":20950},"target":{"__isSmartRef__":true,"id":20888}},"20983":{"submorphs":[{"__isSmartRef__":true,"id":20984}],"scripts":[],"shape":{"__isSmartRef__":true,"id":20995},"id":368,"renderContextTable":{"__isSmartRef__":true,"id":20999},"eventHandler":{"__isSmartRef__":true,"id":21000},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":21001},"priorExtent":{"__isSmartRef__":true,"id":21002},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":20773},"lighterFill":{"__isSmartRef__":true,"id":21003},"label":{"__isSmartRef__":true,"id":20984},"owner":{"__isSmartRef__":true,"id":20903},"layout":{"__isSmartRef__":true,"id":21012},"attributeConnections":[{"__isSmartRef__":true,"id":21013},{"__isSmartRef__":true,"id":21015}],"doNotSerialize":["$$getHelpText","$$fire"],"doNotCopyProperties":["$$getHelpText","$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","__LivelyClassName__":"lively.morphic.WindowControl"},"20984":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":20985},"id":369,"renderContextTable":{"__isSmartRef__":true,"id":20989},"textChunks":[{"__isSmartRef__":true,"id":20990}],"eventHandler":{"__isSmartRef__":true,"id":20992},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":20765},"_ClipMode":"hidden","fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","_Position":{"__isSmartRef__":true,"id":20993},"priorExtent":{"__isSmartRef__":true,"id":20994},"_MaxTextWidth":17,"_MaxTextHeight":17,"evalEnabled":false,"owner":{"__isSmartRef__":true,"id":20983},"isLabel":true,"_HandStyle":"default","_FontSize":8,"_Align":"center","eventsAreIgnored":true,"_PointerEvents":"none","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"20985":{"_Position":{"__isSmartRef__":true,"id":20986},"renderContextTable":{"__isSmartRef__":true,"id":20987},"_Extent":{"__isSmartRef__":true,"id":20988},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20731},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20986":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20987":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20988":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20989":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"20990":{"style":{"__isSmartRef__":true,"id":20991},"chunkOwner":{"__isSmartRef__":true,"id":20984},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"20991":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"20992":{"morph":{"__isSmartRef__":true,"id":20984},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"20993":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20994":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20995":{"_Position":{"__isSmartRef__":true,"id":20996},"renderContextTable":{"__isSmartRef__":true,"id":20997},"_Extent":{"__isSmartRef__":true,"id":20998},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":20772},"_Fill":{"__isSmartRef__":true,"id":20773},"_StrokeOpacity":0,"_BorderRadius":5,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"20996":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20997":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"20998":{"x":17,"y":17,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"20999":{"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","setPointerEvents":"setPointerEventsHTML"},"21000":{"morph":{"__isSmartRef__":true,"id":20983},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21001":{"x":461,"y":3,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21002":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21003":{"stops":[{"__isSmartRef__":true,"id":21004},{"__isSmartRef__":true,"id":21006},{"__isSmartRef__":true,"id":21008},{"__isSmartRef__":true,"id":21010}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21004":{"offset":0,"color":{"__isSmartRef__":true,"id":21005}},"21005":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21006":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21007}},"21007":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21008":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21009}},"21009":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21010":{"offset":1,"color":{"__isSmartRef__":true,"id":21011}},"21011":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21012":{"moveHorizontal":true},"21013":{"sourceObj":{"__isSmartRef__":true,"id":20983},"sourceAttrName":"getHelpText","targetObj":{"__isSmartRef__":true,"id":20888},"targetMethodName":"getCollapseHelp","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":21014},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"21014":{"source":{"__isSmartRef__":true,"id":20983},"target":{"__isSmartRef__":true,"id":20888}},"21015":{"sourceObj":{"__isSmartRef__":true,"id":20983},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20888},"targetMethodName":"toggleCollapse","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":21016},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"21016":{"source":{"__isSmartRef__":true,"id":20983},"target":{"__isSmartRef__":true,"id":20888}},"21017":{"_Position":{"__isSmartRef__":true,"id":21018},"renderContextTable":{"__isSmartRef__":true,"id":21019},"_Extent":{"__isSmartRef__":true,"id":21020},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":20872},"_Fill":{"__isSmartRef__":true,"id":21021},"_StrokeOpacity":1,"_BorderRadius":"8px 8px 0px 0px","__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21018":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21019":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21020":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21021":{"stops":[{"__isSmartRef__":true,"id":21022},{"__isSmartRef__":true,"id":21024},{"__isSmartRef__":true,"id":21026}],"vector":{"__isSmartRef__":true,"id":20782},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21022":{"offset":0,"color":{"__isSmartRef__":true,"id":21023}},"21023":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21024":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21025}},"21025":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21026":{"offset":1,"color":{"__isSmartRef__":true,"id":21027}},"21027":{"r":0.8600000000000001,"g":0.8600000000000001,"b":0.8600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21028":{"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","setPointerEvents":"setPointerEventsHTML"},"21029":{"morph":{"__isSmartRef__":true,"id":20903},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21030":{"resizeWidth":true,"adjustForNewBounds":true},"21031":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21032":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21033":{"renderContextTable":{"__isSmartRef__":true,"id":21034},"_BorderWidth":0,"_Fill":null,"_StrokeOpacity":0,"_BorderRadius":0,"_Extent":{"__isSmartRef__":true,"id":21035},"_Position":{"__isSmartRef__":true,"id":21036},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21034":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21035":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21036":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21037":{"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","setPointerEvents":"setPointerEventsHTML"},"21038":{"morph":{"__isSmartRef__":true,"id":20888},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21039":{"adjustForNewBounds":true},"21040":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21041":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21042":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"21043":{"x":500,"y":22,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21044":{"a":1,"b":0,"c":0,"d":1,"e":1131,"f":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"lively.morphic.Similitude"},"21045":{"x":500,"y":222,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21046":{"x":1507,"y":76,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21047":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21048":{"x":1131,"y":79,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21049":{"x":377.6609726943286,"y":419.5142810783999,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21050":{"requiredModules":[],"migrationLevel":2,"partsSpaceName":"PartsBin/Tools","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph. Early version.","partName":"ObjectEditor","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21051":{"submorphs":[],"scripts":[],"id":"E404A4CA-167E-42FA-A344-672C79029424","shape":{"__isSmartRef__":true,"id":21052},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_Padding":{"__isSmartRef__":true,"id":21059},"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":true,"_FontFamily":"Monaco,courier","_MaxTextWidth":689.0285365288845,"_MaxTextHeight":null,"textChunks":[{"__isSmartRef__":true,"id":21060},{"__isSmartRef__":true,"id":21063},{"__isSmartRef__":true,"id":21065},{"__isSmartRef__":true,"id":21068},{"__isSmartRef__":true,"id":21070},{"__isSmartRef__":true,"id":21072},{"__isSmartRef__":true,"id":21074},{"__isSmartRef__":true,"id":21076},{"__isSmartRef__":true,"id":21078},{"__isSmartRef__":true,"id":21081},{"__isSmartRef__":true,"id":21083},{"__isSmartRef__":true,"id":21085},{"__isSmartRef__":true,"id":21087},{"__isSmartRef__":true,"id":21089},{"__isSmartRef__":true,"id":21091},{"__isSmartRef__":true,"id":21093},{"__isSmartRef__":true,"id":21095},{"__isSmartRef__":true,"id":21097},{"__isSmartRef__":true,"id":21099},{"__isSmartRef__":true,"id":21101},{"__isSmartRef__":true,"id":21103},{"__isSmartRef__":true,"id":21105},{"__isSmartRef__":true,"id":21107},{"__isSmartRef__":true,"id":21109},{"__isSmartRef__":true,"id":21111},{"__isSmartRef__":true,"id":21113},{"__isSmartRef__":true,"id":21115},{"__isSmartRef__":true,"id":21117},{"__isSmartRef__":true,"id":21119},{"__isSmartRef__":true,"id":21121},{"__isSmartRef__":true,"id":21123},{"__isSmartRef__":true,"id":21125},{"__isSmartRef__":true,"id":21127},{"__isSmartRef__":true,"id":21129},{"__isSmartRef__":true,"id":21131},{"__isSmartRef__":true,"id":21133},{"__isSmartRef__":true,"id":21135},{"__isSmartRef__":true,"id":21137},{"__isSmartRef__":true,"id":21139},{"__isSmartRef__":true,"id":21141},{"__isSmartRef__":true,"id":21143},{"__isSmartRef__":true,"id":21145},{"__isSmartRef__":true,"id":21147},{"__isSmartRef__":true,"id":21149},{"__isSmartRef__":true,"id":21151},{"__isSmartRef__":true,"id":21153},{"__isSmartRef__":true,"id":21155},{"__isSmartRef__":true,"id":21157},{"__isSmartRef__":true,"id":21159},{"__isSmartRef__":true,"id":21161},{"__isSmartRef__":true,"id":21163},{"__isSmartRef__":true,"id":21165},{"__isSmartRef__":true,"id":21167},{"__isSmartRef__":true,"id":21169}],"layout":{"__isSmartRef__":true,"id":21171},"showsHalos":false,"prevScroll":[0,0],"name":"ObjectEditorScriptPane","charsReplaced":"skipDisappear","lastFindLoc":541,"partsBinMetaInfo":{"__isSmartRef__":true,"id":21172},"__SourceModuleName__":"Global.lively.morphic.TextCore","priorExtent":{"__isSmartRef__":true,"id":21173},"_ClipMode":"auto","_FontSize":9,"lastSyntaxHighlightTime":1337009786384,"doitContext":{"__isSmartRef__":true,"id":120},"savedTextString":"// changed at Mon May 14 2012 17:33:33 GMT+0200 (CEST) by soergel \nthis.addScript(function b(isStillDirty, wasEverChanged, gemCount, skipDisappear) {\n if (skipDisappear == undefined) skipDisappear = false;\n if (!skipDisappear) {\n var gem = this.iterationGetNext();\n\n if(gem.shouldBeDeleted) {\n wasEverChanged = true;\n gemCount += 1;\n gem.shouldBeDeleted = false;\n gem.disappear(this.b(isStillDirty, wasEverChanged, gemCount, true));\n }\n }\n if (this.iterationHasNext()) \n this.b(isStillDirty, wasEverChanged, gemCount);\n else {\n this.restartIteration();\n this.c(isStillDirty, wasEverChanged, gemCount);\n }\n}).tag([]);","_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":21174},"lastSearchString":"stringsformat","eventHandler":{"__isSmartRef__":true,"id":21175},"attributeConnections":[{"__isSmartRef__":true,"id":21176}],"doNotSerialize":["$$textString"],"doNotCopyProperties":["$$textString"],"distanceToDragEvent":{"__isSmartRef__":true,"id":21201},"_MinTextWidth":689.0285365288845,"_MinTextHeight":null,"previousSelection":[168,168],"lastSaveSource":"// changed at Mon May 14 2012 17:25:24 GMT+0200 (CEST) by soergel \nthis.addScript(function c(isStillDirty, wasEverChanged, gemCount) {\n \n var gem = this.iterationGetNext();\n\n if(gem.isDirty) {\n isStillDirty = true;\n gem.isDirty = false;\n gem.tryToStreak();\n }\n if (this.iterationHasNext()) \n this.c(isStillDirty, wasEverChanged, gemCount);\n else {\n if (isStillDirty)\n this.a(isStillDirty, wasEverChanged, gemCount);\n else {\n this.scorePoints(gemCount);\n if(!this.isScoringPossible()) {\n this.owner.gameIsOver();\n }\n }\n }\n}).tag([]);","isBeingDragged":false,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":20555},"isCopyMorphRef":true,"morphRefId":1,"statusMorph":{"__isSmartRef__":true,"id":21202},"derivationIds":[219,"DD5046D0-C1D6-412A-83C9-CD7EE63D40E0","4D92BDFD-A599-4154-A197-A4B1292C1619","98551F68-B128-4262-9BC2-6B8AC7C8D7C0","47731662-FF8E-4C0F-A170-FD5C56A06021","3FC7FDE6-156F-4056-BB04-B76D8B6C5472","C1E8D5BB-56F9-47B3-A520-BEEFEF791823","115FC149-EEF9-415A-A5B7-AB0B9D0170A4","0D66FA39-01E7-4F16-840C-4FA0FA14DD10","B0A74693-DE3F-4867-8DC0-61B098A8F0D1","3547765B-E224-48EC-B58F-278C1DC7422E"],"_Position":{"__isSmartRef__":true,"id":21217},"owner":{"__isSmartRef__":true,"id":20555},"_Rotation":0,"_Scale":1,"textString":"// changed at Mon May 14 2012 17:25:24 GMT+0200 (CEST) by soergel \nthis.addScript(function c(isStillDirty, wasEverChanged, gemCount) {\n \n var gem = this.iterationGetNext();\n\n if(gem.isDirty) {\n isStillDirty = true;\n gem.isDirty = false;\n gem.tryToStreak();\n }\n if (this.iterationHasNext()) \n this.c(isStillDirty, wasEverChanged, gemCount);\n else {\n if (isStillDirty)\n this.a(isStillDirty, wasEverChanged, gemCount);\n else {\n this.scorePoints(gemCount);\n if(!this.isScoringPossible()) {\n this.owner.gameIsOver();\n }\n }\n }\n}).tag([]);","priorSelectionRange":[466,466],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21218},"__LivelyClassName__":"lively.morphic.Text"},"21052":{"_Position":{"__isSmartRef__":true,"id":21053},"_Extent":{"__isSmartRef__":true,"id":21054},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21055},"_Fill":{"__isSmartRef__":true,"id":21056},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":21057},"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"auto","_Padding":{"__isSmartRef__":true,"id":21058},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21053":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21054":{"x":691.0285365288845,"y":475.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21055":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21056":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21057":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21058":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21059":{"x":2,"y":1,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21060":{"style":{"__isSmartRef__":true,"id":21061},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"// changed at Mon May 14 2012 17:25:24 GMT+0200 (CEST) by soergel ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21061":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21062":{"r":0,"g":0.5019607843137255,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21063":{"style":{"__isSmartRef__":true,"id":21064},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21064":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21065":{"style":{"__isSmartRef__":true,"id":21066},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21066":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21067":{"r":0,"g":0,"b":0.5450980392156862,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21068":{"style":{"__isSmartRef__":true,"id":21069},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".addScript(","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21069":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21070":{"style":{"__isSmartRef__":true,"id":21071},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"function","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21071":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21072":{"style":{"__isSmartRef__":true,"id":21073},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":" c(isStillDirty, wasEverChanged, gemCount) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21073":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21074":{"style":{"__isSmartRef__":true,"id":21075},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21075":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21076":{"style":{"__isSmartRef__":true,"id":21077},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n \n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21077":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21078":{"style":{"__isSmartRef__":true,"id":21079},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"var","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21079":{"color":{"__isSmartRef__":true,"id":21080},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21080":{"r":0,"g":0,"b":0.5019607843137255,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21081":{"style":{"__isSmartRef__":true,"id":21082},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":" gem = ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21082":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21083":{"style":{"__isSmartRef__":true,"id":21084},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21084":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21085":{"style":{"__isSmartRef__":true,"id":21086},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".iterationGetNext();\n\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21086":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21087":{"style":{"__isSmartRef__":true,"id":21088},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21088":{"color":{"__isSmartRef__":true,"id":21080},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21089":{"style":{"__isSmartRef__":true,"id":21090},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"(gem.isDirty) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21090":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21091":{"style":{"__isSmartRef__":true,"id":21092},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21092":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21093":{"style":{"__isSmartRef__":true,"id":21094},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n isStillDirty = true;\n gem.isDirty = false;\n gem.tryToStreak();\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21094":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21095":{"style":{"__isSmartRef__":true,"id":21096},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21096":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21097":{"style":{"__isSmartRef__":true,"id":21098},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21098":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21099":{"style":{"__isSmartRef__":true,"id":21100},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21100":{"color":{"__isSmartRef__":true,"id":21080},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21101":{"style":{"__isSmartRef__":true,"id":21102},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":" (","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21102":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21103":{"style":{"__isSmartRef__":true,"id":21104},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21104":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21105":{"style":{"__isSmartRef__":true,"id":21106},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".iterationHasNext()) \n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21106":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21107":{"style":{"__isSmartRef__":true,"id":21108},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21108":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21109":{"style":{"__isSmartRef__":true,"id":21110},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".c(isStillDirty, wasEverChanged, gemCount);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21110":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21111":{"style":{"__isSmartRef__":true,"id":21112},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21112":{"color":{"__isSmartRef__":true,"id":21080},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21113":{"style":{"__isSmartRef__":true,"id":21114},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21114":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21115":{"style":{"__isSmartRef__":true,"id":21116},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21116":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21117":{"style":{"__isSmartRef__":true,"id":21118},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21118":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21119":{"style":{"__isSmartRef__":true,"id":21120},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21120":{"color":{"__isSmartRef__":true,"id":21080},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21121":{"style":{"__isSmartRef__":true,"id":21122},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":" (isStillDirty)\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21122":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21123":{"style":{"__isSmartRef__":true,"id":21124},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21124":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21125":{"style":{"__isSmartRef__":true,"id":21126},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".a(isStillDirty, wasEverChanged, gemCount);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21126":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21127":{"style":{"__isSmartRef__":true,"id":21128},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"else","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21128":{"color":{"__isSmartRef__":true,"id":21080},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21129":{"style":{"__isSmartRef__":true,"id":21130},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":" ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21130":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21131":{"style":{"__isSmartRef__":true,"id":21132},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21132":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21133":{"style":{"__isSmartRef__":true,"id":21134},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21134":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21135":{"style":{"__isSmartRef__":true,"id":21136},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21136":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21137":{"style":{"__isSmartRef__":true,"id":21138},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".scorePoints(gemCount);\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21138":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21139":{"style":{"__isSmartRef__":true,"id":21140},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"if","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21140":{"color":{"__isSmartRef__":true,"id":21080},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21141":{"style":{"__isSmartRef__":true,"id":21142},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"(!","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21142":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21143":{"style":{"__isSmartRef__":true,"id":21144},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21144":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21145":{"style":{"__isSmartRef__":true,"id":21146},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".isScoringPossible()) ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21146":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21147":{"style":{"__isSmartRef__":true,"id":21148},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"{","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21148":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21149":{"style":{"__isSmartRef__":true,"id":21150},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21150":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21151":{"style":{"__isSmartRef__":true,"id":21152},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"this","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21152":{"color":{"__isSmartRef__":true,"id":21067},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21153":{"style":{"__isSmartRef__":true,"id":21154},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":".owner.gameIsOver();\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21154":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21155":{"style":{"__isSmartRef__":true,"id":21156},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21156":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21157":{"style":{"__isSmartRef__":true,"id":21158},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21158":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21159":{"style":{"__isSmartRef__":true,"id":21160},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21160":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21161":{"style":{"__isSmartRef__":true,"id":21162},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n ","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21162":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21163":{"style":{"__isSmartRef__":true,"id":21164},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21164":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21165":{"style":{"__isSmartRef__":true,"id":21166},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21166":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21167":{"style":{"__isSmartRef__":true,"id":21168},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":"}","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21168":{"color":{"__isSmartRef__":true,"id":21062},"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21169":{"style":{"__isSmartRef__":true,"id":21170},"chunkOwner":{"__isSmartRef__":true,"id":21051},"storedString":").tag([]);","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21170":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21171":{"resizeWidth":true,"resizeHeight":true},"21172":{"requiredModules":[],"partsSpaceName":"PartsBin/Widgets/","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21173":{"x":691.0285365288845,"y":475.61253261443596,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21174":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21175":{"morph":{"__isSmartRef__":true,"id":21051},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21176":{"sourceObj":{"__isSmartRef__":true,"id":21051},"sourceAttrName":"textString","targetObj":{"__isSmartRef__":true,"id":21177},"targetMethodName":"indicateUnsavedChanges","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"21177":{"submorphs":[],"scripts":[],"id":"3E426026-7D19-417F-9E86-7D68EAC3DBD9","shape":{"__isSmartRef__":true,"id":21178},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21184},"showsHalos":false,"name":"ChangeIndicator","partsBinMetaInfo":{"__isSmartRef__":true,"id":21185},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":21186},"eventHandler":{"__isSmartRef__":true,"id":21187},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"owner":{"__isSmartRef__":true,"id":20555},"priorExtent":{"__isSmartRef__":true,"id":21188},"layout":{"__isSmartRef__":true,"id":21189},"isBeingDragged":false,"savedColor":{"__isSmartRef__":true,"id":21181},"alarmColor":{"__isSmartRef__":true,"id":21190},"grabbingEnabled":false,"draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":21191},"isCopyMorphRef":true,"morphRefId":26,"derivationIds":[220,"EE491D24-F056-4AFE-A669-7B7048C6C3D1","3FA4A8C3-0FC0-43A0-8C00-00A96F9022E2","62DAD3C6-A81D-450F-B32F-601EA7E619D8","EEDB0C58-5990-481A-A7FF-ACB1A2DF08DD","16F708CB-1259-4A75-BAEF-1A5216C6CB19","97CA61D3-E09B-43CD-9880-D8B36FA303F3","0AF6BEEC-8A57-44FF-9D8D-40BA6CC6A0CD","AF2BEE76-C34F-457E-8699-9896327A4C07","5EC39FF0-602F-44A2-BE3A-04FCA127E5D1","44CEBF61-9A92-4E36-9576-425D5054B471"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21192},"__LivelyClassName__":"lively.morphic.Box"},"21178":{"position":{"__isSmartRef__":true,"id":21179},"_Extent":{"__isSmartRef__":true,"id":21180},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21181},"_Fill":{"__isSmartRef__":true,"id":21181},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":21182},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21183},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21180":{"x":8.637782619743348,"y":9.712632235981744,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21181":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21182":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21183":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21184":{"x":883.0245425248855,"y":39.999999999999986,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21185":{"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"},"21186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"21187":{"morph":{"__isSmartRef__":true,"id":21177},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21188":{"x":8.637782619743348,"y":10.787481852220026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21189":{"moveHorizontal":true,"adjustForNewBounds":true},"21190":{"r":0.9411764705882353,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21191":{"x":37.328206296760186,"y":-17.53316489131697,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21192":{"indicateUnsavedChanges":{"__isSmartRef__":true,"id":21193},"setColors":{"__isSmartRef__":true,"id":21197}},"21193":{"varMapping":{"__isSmartRef__":true,"id":21194},"source":"function indicateUnsavedChanges() {\n if (this.owner.scriptPane.hasChanged()) {\n this.setColors(this.alarmColor);\n } else {\n this.setColors(this.savedColor);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21195},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21194":{"this":{"__isSmartRef__":true,"id":21177}},"21195":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":21196}},"21196":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:09:19 GMT+0200 (CEST)"},"21197":{"varMapping":{"__isSmartRef__":true,"id":21198},"source":"function setColors(color) {\n this.setFill(color);\n this.setBorderColor(color);\n}","funcProperties":{"__isSmartRef__":true,"id":21199},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21198":{"this":{"__isSmartRef__":true,"id":21177}},"21199":{"user":"lauritz","timestamp":{"__isSmartRef__":true,"id":21200}},"21200":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:06:09 GMT+0200 (CEST)"},"21201":{"x":341.1979959929888,"y":-18.288721442524036,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21202":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":21203},"id":553,"renderContextTable":{"__isSmartRef__":true,"id":21210},"_WhiteSpaceHandling":"pre-wrap","textChunks":[{"__isSmartRef__":true,"id":21211}],"eventHandler":{"__isSmartRef__":true,"id":21213},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"_ClipMode":"visible","fixedWidth":true,"fixedHeight":true,"allowInput":true,"_FontFamily":"Helvetica","_FontSize":11,"_Position":{"__isSmartRef__":true,"id":21214},"priorExtent":{"__isSmartRef__":true,"id":21215},"_MaxTextWidth":90,"_MinTextWidth":90,"_MaxTextHeight":null,"_MinTextHeight":null,"evalEnabled":false,"_Align":"center","_VerticalAlign":"center","_TextColor":{"__isSmartRef__":true,"id":21216},"owner":null,"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.Text"},"21203":{"_Position":{"__isSmartRef__":true,"id":21204},"renderContextTable":{"__isSmartRef__":true,"id":21205},"_Extent":{"__isSmartRef__":true,"id":21206},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21207},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21208},"_Fill":{"__isSmartRef__":true,"id":21209},"_StrokeOpacity":0,"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21204":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21205":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21206":{"x":100,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21207":{"x":4,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21208":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21209":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21210":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21211":{"style":{"__isSmartRef__":true,"id":21212},"chunkOwner":{"__isSmartRef__":true,"id":21202},"storedString":"saved source","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21212":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"21213":{"morph":{"__isSmartRef__":true,"id":21202},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21214":{"x":295.51426826444225,"y":225.30626630721798,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21215":{"x":100,"y":25,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21216":{"r":0,"g":0.8,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21217":{"x":200,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21218":{"doSave":{"__isSmartRef__":true,"id":21219},"boundEval":{"__isSmartRef__":true,"id":21227},"reset":{"__isSmartRef__":true,"id":21235},"display":{"__isSmartRef__":true,"id":21239},"hasChanged":{"__isSmartRef__":true,"id":21243},"setTarget":{"__isSmartRef__":true,"id":21247},"displayStatus":{"__isSmartRef__":true,"id":21251}},"21219":{"varMapping":{"__isSmartRef__":true,"id":21220},"source":"function doSave() {\n $super();\n var saved = this.boundEval(this.getTextString());\n if (saved) {\n this.lastSaveSource = this.textString;\n this.owner.changeIndicator.indicateUnsavedChanges();\n this.owner.updateLists();\n this.owner.selectChangedContent(this.getTextString());\n this.displayStatus(\"saved source\", Color.green);\n } else {\n this.displayStatus(\"not saved\", Color.red);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21225},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21220":{"this":{"__isSmartRef__":true,"id":21051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21221}},"21221":{"$super":{"__isSmartRef__":true,"id":21222}},"21222":{"varMapping":{"__isSmartRef__":true,"id":21223},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21224},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21223":{"obj":{"__isSmartRef__":true,"id":21051},"name":"doSave"},"21224":{},"21225":{"timestamp":{"__isSmartRef__":true,"id":21226},"user":"lauritz"},"21226":{"isSerializedDate":true,"string":"Thu Nov 17 2011 23:15:19 GMT+0100 (CET)"},"21227":{"varMapping":{"__isSmartRef__":true,"id":21228},"source":"function boundEval(str) {\n var result;\n\n this.objectEditorPane.ensureAnnotationLayer();\n withLayers([ScriptAnnotationLayer], function() {\n result = $super(str);\n })\n \n return result\n}","funcProperties":{"__isSmartRef__":true,"id":21233},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21228":{"this":{"__isSmartRef__":true,"id":21051},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21229}},"21229":{"$super":{"__isSmartRef__":true,"id":21230}},"21230":{"varMapping":{"__isSmartRef__":true,"id":21231},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21232},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21231":{"obj":{"__isSmartRef__":true,"id":21051},"name":"boundEval"},"21232":{},"21233":{"timestamp":{"__isSmartRef__":true,"id":21234},"user":"lauritz","categories":[]},"21234":{"isSerializedDate":true,"string":"Wed Nov 16 2011 05:41:53 GMT+0100 (CET)"},"21235":{"varMapping":{"__isSmartRef__":true,"id":21236},"source":"function reset() {\n this.doitContext = null;\n this.lastSaveSource = \"\";\n this.textString = \"\";\n this.lastSaveSource = this.textString;\n}","funcProperties":{"__isSmartRef__":true,"id":21237},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21236":{"this":{"__isSmartRef__":true,"id":21051}},"21237":{"timestamp":{"__isSmartRef__":true,"id":21238},"user":"lauritz","categories":[]},"21238":{"isSerializedDate":true,"string":"Tue Sep 27 2011 20:14:35 GMT+0200 (CEST)"},"21239":{"varMapping":{"__isSmartRef__":true,"id":21240},"source":"function display(jsCode) {\n this.lastSaveSource = jsCode;\n this.setTextString(jsCode);\n this.highlightJavaScriptSyntax();\n this.applyStyle({align: 'left'});\n}","funcProperties":{"__isSmartRef__":true,"id":21241},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21240":{"this":{"__isSmartRef__":true,"id":21051}},"21241":{"timestamp":{"__isSmartRef__":true,"id":21242},"user":"lauritz","categories":[]},"21242":{"isSerializedDate":true,"string":"Tue Sep 27 2011 19:47:57 GMT+0200 (CEST)"},"21243":{"varMapping":{"__isSmartRef__":true,"id":21244},"source":"function hasChanged() {\n var cleanText = function (string) {\n var source = string.trim();\n if (source.substring(0,2) === \"//\") {\n // removes annotation line\n source = source.substring(source.indexOf(\"\\n\"), source.length);\n source = source.trim();\n }\n if (source === 'undefined' || source === 'null') source = '';\n return source;\n }\n var cleanedTextString = cleanText(this.textString);\n var cleanedLastSource = cleanText(this.lastSaveSource);\n return cleanedTextString !== cleanedLastSource;\n}","funcProperties":{"__isSmartRef__":true,"id":21245},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21244":{"this":{"__isSmartRef__":true,"id":21051}},"21245":{"timestamp":{"__isSmartRef__":true,"id":21246},"user":"lauritz","categories":[]},"21246":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:29:45 GMT+0200 (CEST)"},"21247":{"varMapping":{"__isSmartRef__":true,"id":21248},"source":"function setTarget(target) {\n module('lively.ide.SyntaxHighlighting').load(true);\n this.doitContext = target;\n}","funcProperties":{"__isSmartRef__":true,"id":21249},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21248":{"this":{"__isSmartRef__":true,"id":21051}},"21249":{"timestamp":{"__isSmartRef__":true,"id":21250},"user":"lauritz","categories":[]},"21250":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:30:39 GMT+0100 (CET)"},"21251":{"varMapping":{"__isSmartRef__":true,"id":21252},"source":"function displayStatus(msg, color, delay) {\n if (!this.statusMorph) {\n this.statusMorph = new TextMorph(pt(100,25).extentAsRectangle());\n this.statusMorph.applyStyle({borderWidth: 1, strokeOpacity: 0, borderColor: Color.gray});\n this.statusMorph.setFill(this.owner.getFill());\n this.statusMorph.setFontSize(11);\n this.statusMorph.setAlign('center');\n this.statusMorph.setVerticalAlign('center');\n }\n this.statusMorph.setTextString(msg);\n this.statusMorph.centerAt(this.innerBounds().center());\n this.statusMorph.setTextColor(color || Color.black);\n this.addMorph(this.statusMorph);\n (function() { this.statusMorph.remove() }).bind(this).delay(delay || 2); \n}","funcProperties":{"__isSmartRef__":true,"id":21253},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21252":{"this":{"__isSmartRef__":true,"id":21051}},"21253":{"timestamp":{"__isSmartRef__":true,"id":21254},"user":"lauritz","categories":[]},"21254":{"isSerializedDate":true,"string":"Wed Nov 23 2011 18:23:05 GMT+0100 (CET)"},"21255":{"submorphs":[{"__isSmartRef__":true,"id":21256}],"scripts":[],"id":847,"shape":{"__isSmartRef__":true,"id":21270},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21285},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21273},"lighterFill":{"__isSmartRef__":true,"id":21286},"label":{"__isSmartRef__":true,"id":21256},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":21295},"name":"ObjectEditorClassButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":21296},"_Scale":1,"owner":null,"layout":{"__isSmartRef__":true,"id":21297},"renderContextTable":{"__isSmartRef__":true,"id":21298},"eventHandler":{"__isSmartRef__":true,"id":21299},"__LivelyClassName__":"lively.morphic.Button"},"21256":{"submorphs":[],"scripts":[],"id":848,"shape":{"__isSmartRef__":true,"id":21257},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":18,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21262},"textColor":{"__isSmartRef__":true,"id":21260},"owner":{"__isSmartRef__":true,"id":21255},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":21263}],"padding":{"__isSmartRef__":true,"id":21265},"_Padding":{"__isSmartRef__":true,"id":21266},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21267},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":21268},"eventHandler":{"__isSmartRef__":true,"id":21269},"_HandStyle":"default","_PointerEvents":"none","__LivelyClassName__":"lively.morphic.Text"},"21257":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21258},"_Extent":{"__isSmartRef__":true,"id":21259},"_BorderColor":{"__isSmartRef__":true,"id":21260},"renderContextTable":{"__isSmartRef__":true,"id":21261},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21258":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21259":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21260":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21261":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21262":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21263":{"style":{"__isSmartRef__":true,"id":21264},"chunkOwner":{"__isSmartRef__":true,"id":21256},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"21264":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21265":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21266":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21267":{"x":116,"y":18,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21268":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21269":{"morph":{"__isSmartRef__":true,"id":21256},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21270":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21271},"_Extent":{"__isSmartRef__":true,"id":21272},"_Fill":{"__isSmartRef__":true,"id":21273},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21283},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":21284},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21271":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21272":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21273":{"stops":[{"__isSmartRef__":true,"id":21274},{"__isSmartRef__":true,"id":21276},{"__isSmartRef__":true,"id":21278},{"__isSmartRef__":true,"id":21280}],"vector":{"__isSmartRef__":true,"id":21282},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21274":{"offset":0,"color":{"__isSmartRef__":true,"id":21275}},"21275":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21276":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21277}},"21277":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21278":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21279}},"21279":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21280":{"offset":1,"color":{"__isSmartRef__":true,"id":21281}},"21281":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21282":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21283":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21284":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21285":{"x":820,"y":8.999999999999972,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21286":{"stops":[{"__isSmartRef__":true,"id":21287},{"__isSmartRef__":true,"id":21289},{"__isSmartRef__":true,"id":21291},{"__isSmartRef__":true,"id":21293}],"vector":{"__isSmartRef__":true,"id":21282},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21287":{"offset":0,"color":{"__isSmartRef__":true,"id":21288}},"21288":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21289":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21290}},"21290":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21291":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21292}},"21292":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21293":{"offset":1,"color":{"__isSmartRef__":true,"id":21294}},"21294":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21295":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21296":{"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"},"21297":{"moveHorizontal":true},"21298":{"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","setPointerEvents":"setPointerEventsHTML"},"21299":{"morph":{"__isSmartRef__":true,"id":21255},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21300":{"submorphs":[],"scripts":[],"id":"7A8CCD3A-A611-4F36-99AE-81654BD309A0","shape":{"__isSmartRef__":true,"id":21301},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":21308},"itemList":["-- ALL --"],"selectedLineNo":1,"showsHalos":false,"name":"ObjectEditorConnectionList","partsBinMetaInfo":{"__isSmartRef__":true,"id":21309},"__SourceModuleName__":"Global.lively.morphic.Core","_ClipMode":"auto","owner":{"__isSmartRef__":true,"id":20555},"priorExtent":{"__isSmartRef__":true,"id":21310},"attributeConnections":[{"__isSmartRef__":true,"id":21311}],"doNotSerialize":["$$selection"],"doNotCopyProperties":["$$selection"],"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":21316},"renderContextTable":{"__isSmartRef__":true,"id":21317},"eventHandler":{"__isSmartRef__":true,"id":21318},"_FontSize":10,"distanceToDragEvent":{"__isSmartRef__":true,"id":21319},"grabbingEnabled":false,"draggingEnabled":false,"isCopyMorphRef":true,"morphRefId":19,"derivationIds":[209,"3900F5DF-0FF7-4C94-8BDB-44AAE12B4A3E","35301083-B60D-4A43-8566-23860EEB4C04","9CC401CC-5A35-4643-935B-FD049C284E16","C9879D40-5E79-4C56-AA79-562ED82BF052","9F6F9261-EB76-4B58-B77D-7D70813A1ED7","8B59E237-F372-4F70-9768-7E9C1A7A021D","FC85F1B9-1978-42D2-850C-BD249981E8B4","D2B607C6-A89B-4B3F-91BB-720451EAB98D","CC361093-FF73-479B-9431-C645CB48F518","307D3B7C-C0E1-484F-8D7E-39FBA9D8EDA5"],"selection":null,"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21320},"__LivelyClassName__":"lively.morphic.List"},"21301":{"position":{"__isSmartRef__":true,"id":21302},"_Extent":{"__isSmartRef__":true,"id":21303},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21304},"_Fill":{"__isSmartRef__":true,"id":21305},"__SourceModuleName__":"Global.lively.morphic.Shapes","_BorderRadius":0,"renderContextTable":{"__isSmartRef__":true,"id":21306},"_Opacity":1,"_BorderStyle":"solid","_Padding":{"__isSmartRef__":true,"id":21307},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21302":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21303":{"x":180,"y":74,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21304":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21305":{"r":0.95,"g":0.95,"b":0.95,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21306":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21307":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21308":{"x":10,"y":441.5965565984398,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21309":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":2,"__SourceModuleName__":"Global.lively.PartsBin","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21310":{"x":180,"y":75,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21311":{"sourceObj":{"__isSmartRef__":true,"id":21300},"sourceAttrName":"selection","targetObj":{"__isSmartRef__":true,"id":20555},"targetMethodName":"displaySourceForConnection","converterString":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":21312},"__SourceModuleName__":"Global.lively.bindings","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21313},"__LivelyClassName__":"AttributeConnection"},"21312":{"source":{"__isSmartRef__":true,"id":21300},"target":{"__isSmartRef__":true,"id":20555}},"21313":{"converter":{"__isSmartRef__":true,"id":21314}},"21314":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":21312},"source":"function (value) {\n if (!value) return;\n return (value === '-- ALL --') ? null : value[1];\n}","funcProperties":{"__isSmartRef__":true,"id":21315},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21315":{},"21316":{"resizeHeight":false,"moveVertical":true},"21317":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateListContent":"updateListContentHTML","resizeList":"resizeListHTML","getItemIndexFromEvent":"getItemIndexFromEventHTML","getListExtent":"getListExtentHTML","setSize":"setSizeHTML","renderAsDropDownList":"renderAsDropDownListHTML","setFontSize":"setFontSizeHTML","setFontFamily":"setFontFamilyHTML","getSelectedIndexes":"getSelectedIndexesHTML","enableMultipleSelections":"enableMultipleSelectionsHTML","selectAllAt":"selectAllAtHTML","clearSelections":"clearSelectionsHTML","deselectAt":"deselectAtHTML"},"21318":{"morph":{"__isSmartRef__":true,"id":21300},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21319":{"x":124.95989979964943,"y":-17.076643708895745,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21320":{"preselectItem":{"__isSmartRef__":true,"id":21321}},"21321":{"varMapping":{"__isSmartRef__":true,"id":21322},"source":"function preselectItem() {\n if (this.getList().size() === 2) {\n this.selectAt(1);\n } else {\n this.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21323},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21322":{"this":{"__isSmartRef__":true,"id":21300}},"21323":{"timestamp":{"__isSmartRef__":true,"id":21324},"user":"lauritz"},"21324":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:12:58 GMT+0100 (CET)"},"21325":{"submorphs":[{"__isSmartRef__":true,"id":21326}],"scripts":[],"id":47,"shape":{"__isSmartRef__":true,"id":21339},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21354},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21342},"lighterFill":{"__isSmartRef__":true,"id":21355},"label":{"__isSmartRef__":true,"id":21326},"attributeConnections":[{"__isSmartRef__":true,"id":21364}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","_Rotation":0,"padding":{"__isSmartRef__":true,"id":21365},"name":"ObjectEditorTargetButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":21366},"_Scale":1,"owner":null,"renderContextTable":{"__isSmartRef__":true,"id":21367},"isCopyMorphRef":true,"morphRefId":1,"__LivelyClassName__":"lively.morphic.Button"},"21326":{"submorphs":[],"scripts":[],"id":48,"shape":{"__isSmartRef__":true,"id":21327},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":116,"_MaxTextHeight":20,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21332},"textColor":{"__isSmartRef__":true,"id":21330},"owner":{"__isSmartRef__":true,"id":21325},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":21333}],"padding":{"__isSmartRef__":true,"id":21335},"_Padding":{"__isSmartRef__":true,"id":21336},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21337},"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","_Align":"center","_Scale":1,"renderContextTable":{"__isSmartRef__":true,"id":21338},"__LivelyClassName__":"lively.morphic.Text"},"21327":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21328},"_Extent":{"__isSmartRef__":true,"id":21329},"_BorderColor":{"__isSmartRef__":true,"id":21330},"renderContextTable":{"__isSmartRef__":true,"id":21331},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21328":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21329":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21330":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21331":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"21332":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21333":{"style":{"__isSmartRef__":true,"id":21334},"chunkOwner":{"__isSmartRef__":true,"id":21326},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"21334":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21335":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21336":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21337":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21338":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21339":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21340},"_Extent":{"__isSmartRef__":true,"id":21341},"_Fill":{"__isSmartRef__":true,"id":21342},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21352},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":21353},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21340":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21341":{"x":116,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21342":{"stops":[{"__isSmartRef__":true,"id":21343},{"__isSmartRef__":true,"id":21345},{"__isSmartRef__":true,"id":21347},{"__isSmartRef__":true,"id":21349}],"vector":{"__isSmartRef__":true,"id":21351},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21343":{"offset":0,"color":{"__isSmartRef__":true,"id":21344}},"21344":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21345":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21346}},"21346":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21347":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21348}},"21348":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21349":{"offset":1,"color":{"__isSmartRef__":true,"id":21350}},"21350":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21351":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21352":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21353":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setOpacity":"setOpacityHTML"},"21354":{"x":215,"y":35,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21355":{"stops":[{"__isSmartRef__":true,"id":21356},{"__isSmartRef__":true,"id":21358},{"__isSmartRef__":true,"id":21360},{"__isSmartRef__":true,"id":21362}],"vector":{"__isSmartRef__":true,"id":21351},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21356":{"offset":0,"color":{"__isSmartRef__":true,"id":21357}},"21357":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21358":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21359}},"21359":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21360":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21361}},"21361":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21362":{"offset":1,"color":{"__isSmartRef__":true,"id":21363}},"21363":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21364":{"sourceObj":{"__isSmartRef__":true,"id":21325},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20573},"targetMethodName":"chooseTargetMorphMenu","__SourceModuleName__":"Global.lively.bindings","converter":null,"converterString":null,"updater":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection"},"21365":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21366":{"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"},"21367":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML"},"21368":{"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","setPointerEvents":"setPointerEventsHTML"},"21369":{"x":715.5,"y":73.89999999999998,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21370":{"submorphs":[],"scripts":[],"id":435,"shape":{"__isSmartRef__":true,"id":21371},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":true,"allowsInput":true,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21378},"_MaxTextWidth":218,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":21379},"showsHalos":false,"_FontSize":12,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":21380},"textChunks":[{"__isSmartRef__":true,"id":21381}],"charsReplaced":"","lastFindLoc":5,"priorSelectionRange":[15,15],"prevScroll":[0,0],"_ClipMode":"visible","list":[],"attributeConnections":[{"__isSmartRef__":true,"id":21383}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"listMorph":null,"_WhiteSpaceHandling":"pre-wrap","owner":null,"priorExtent":{"__isSmartRef__":true,"id":21385},"_Align":"left","renderContextTable":{"__isSmartRef__":true,"id":21386},"eventHandler":{"__isSmartRef__":true,"id":21387},"_MinTextWidth":218,"_MinTextHeight":null,"scriptAnnotations":{"__isSmartRef__":true,"id":21388},"selection":{"__isSmartRef__":true,"id":20400},"previousSelection":[0,13],"isCopyMorphRef":true,"morphRefId":1,"isBeingDragged":false,"draggingEnabled":false,"layout":{"__isSmartRef__":true,"id":21407},"_Rotation":0,"_Scale":1,"distanceToDragEvent":{"__isSmartRef__":true,"id":21408},"savedTextString":"100","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21409},"__LivelyClassName__":"lively.morphic.Text"},"21371":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21372},"_Extent":{"__isSmartRef__":true,"id":21373},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21374},"renderContextTable":{"__isSmartRef__":true,"id":21375},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21376},"_BorderRadius":3.7000000000000006,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":21377},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21372":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21373":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21374":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21375":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"21376":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21377":{"r":0.9548430751559654,"g":0.9548430751559654,"b":0.9548430751559654,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21378":{"x":200,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21379":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21380":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21381":{"style":{"__isSmartRef__":true,"id":21382},"chunkOwner":{"__isSmartRef__":true,"id":21370},"storedString":"","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"21382":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21383":{"sourceObj":{"__isSmartRef__":true,"id":21370},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":20555},"targetMethodName":"setTarget","converter":null,"converterString":"function (name) { return $world.get(name)}","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":21384},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"21384":{"source":{"__isSmartRef__":true,"id":21370},"target":{"__isSmartRef__":true,"id":20555}},"21385":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21386":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21387":{"morph":{"__isSmartRef__":true,"id":21370},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21388":{"createListMorph":{"__isSmartRef__":true,"id":21389},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":21391},"onMouseUp":{"__isSmartRef__":true,"id":21393},"resetConnections":{"__isSmartRef__":true,"id":21395},"setTargetToListSelection":{"__isSmartRef__":true,"id":21397},"setTargetOfPane":{"__isSmartRef__":true,"id":21399},"onBlur":{"__isSmartRef__":true,"id":21401},"reset":{"__isSmartRef__":true,"id":21403},"onMouseDown":{"__isSmartRef__":true,"id":21405}},"21389":{"time":{"__isSmartRef__":true,"id":21390},"user":"lauritz"},"21390":{"isSerializedDate":true,"string":"Fri Oct 28 2011 05:27:29 GMT+0200 (CEST)"},"21391":{"time":{"__isSmartRef__":true,"id":21392},"user":"lauritz"},"21392":{"isSerializedDate":true,"string":"Fri Oct 14 2011 23:48:37 GMT+0200 (CEST)"},"21393":{"time":{"__isSmartRef__":true,"id":21394},"user":"lauritz"},"21394":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:51:14 GMT+0200 (CEST)"},"21395":{"time":{"__isSmartRef__":true,"id":21396},"user":"lauritz"},"21396":{"isSerializedDate":true,"string":"Wed Sep 28 2011 01:03:17 GMT+0200 (CEST)"},"21397":{"time":{"__isSmartRef__":true,"id":21398},"user":"lauritz"},"21398":{"isSerializedDate":true,"string":"Sat Oct 15 2011 00:00:58 GMT+0200 (CEST)"},"21399":{"time":{"__isSmartRef__":true,"id":21400},"user":"lauritz"},"21400":{"isSerializedDate":true,"string":"Mon Oct 03 2011 18:34:37 GMT+0200 (CEST)"},"21401":{"time":{"__isSmartRef__":true,"id":21402},"user":"lauritz"},"21402":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:24:18 GMT+0200 (CEST)"},"21403":{"time":{"__isSmartRef__":true,"id":21404},"user":"lauritz"},"21404":{"isSerializedDate":true,"string":"Fri Oct 07 2011 19:26:15 GMT+0200 (CEST)"},"21405":{"time":{"__isSmartRef__":true,"id":21406},"user":"lauritz"},"21406":{"isSerializedDate":true,"string":"Mon Oct 17 2011 19:49:00 GMT+0200 (CEST)"},"21407":{},"21408":{"x":153.8540395186758,"y":-23.74126935194758,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21409":{"getList":{"__isSmartRef__":true,"id":21410},"setList":{"__isSmartRef__":true,"id":21413},"reset":{"__isSmartRef__":true,"id":21416},"example":{"__isSmartRef__":true,"id":21419},"removeList":{"__isSmartRef__":true,"id":21422},"onBlur":{"__isSmartRef__":true,"id":21425},"createListMorph":{"__isSmartRef__":true,"id":21432},"resetConnections":{"__isSmartRef__":true,"id":21435},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":21438},"setTargetToListSelection":{"__isSmartRef__":true,"id":21441},"setTargetOfPane":{"__isSmartRef__":true,"id":21444},"onMouseDown":{"__isSmartRef__":true,"id":21447}},"21410":{"varMapping":{"__isSmartRef__":true,"id":21411},"source":"function getList() {\n return this.world().indentedListItemsOfMorphNames();\n}","funcProperties":{"__isSmartRef__":true,"id":21412},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21411":{"this":{"__isSmartRef__":true,"id":21370}},"21412":{},"21413":{"varMapping":{"__isSmartRef__":true,"id":21414},"source":"function setList(list) {\n return this.list = list;\n}","funcProperties":{"__isSmartRef__":true,"id":21415},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21414":{"this":{"__isSmartRef__":true,"id":21370}},"21415":{},"21416":{"varMapping":{"__isSmartRef__":true,"id":21417},"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: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":21418},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21417":{"this":{"__isSmartRef__":true,"id":21370}},"21418":{},"21419":{"varMapping":{"__isSmartRef__":true,"id":21420},"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":21421},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21420":{"this":{"__isSmartRef__":true,"id":21370}},"21421":{},"21422":{"varMapping":{"__isSmartRef__":true,"id":21423},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":21424},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21423":{"this":{"__isSmartRef__":true,"id":21370}},"21424":{},"21425":{"varMapping":{"__isSmartRef__":true,"id":21426},"source":"function onBlur() {\n $super();\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":21431},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21426":{"this":{"__isSmartRef__":true,"id":21370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21427}},"21427":{"$super":{"__isSmartRef__":true,"id":21428}},"21428":{"varMapping":{"__isSmartRef__":true,"id":21429},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21430},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21429":{"obj":{"__isSmartRef__":true,"id":21370},"name":"onBlur"},"21430":{},"21431":{},"21432":{"varMapping":{"__isSmartRef__":true,"id":21433},"source":"function createListMorph() {\n var list = new lively.morphic.List(new Rectangle(0,0, this.getExtent().x, 520));\n list.setList(this.getList());\n list.setFontSize(12);\n\n list.disableGrabbing();\n list.disableDragging();\n \n this.addMorph(list);\n list.setPosition(pt(0,0));\n\n connect(list, 'selection', this, 'setTargetToListSelection');\n \n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":21434},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21433":{"this":{"__isSmartRef__":true,"id":21370}},"21434":{},"21435":{"varMapping":{"__isSmartRef__":true,"id":21436},"source":"function resetConnections() {\n disconnectAll(this);\n connect(this, 'savedTextString', this.owner, 'setTarget', {converter: \n\tfunction (name) { return $world.get(name)}});\n}","funcProperties":{"__isSmartRef__":true,"id":21437},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21436":{"this":{"__isSmartRef__":true,"id":21370}},"21437":{},"21438":{"varMapping":{"__isSmartRef__":true,"id":21439},"source":"function displayTopLevelMorphs() {\n if (this.listMorph) { this.removeList(); return true }\n var list = this.createListMorph(); \n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":21440},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21439":{"this":{"__isSmartRef__":true,"id":21370}},"21440":{},"21441":{"varMapping":{"__isSmartRef__":true,"id":21442},"source":"function setTargetToListSelection(selection) { \n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21443},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21442":{"this":{"__isSmartRef__":true,"id":21370}},"21443":{},"21444":{"varMapping":{"__isSmartRef__":true,"id":21445},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.setTextString(selection.getName());\n this.removeList();\n}","funcProperties":{"__isSmartRef__":true,"id":21446},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21445":{"this":{"__isSmartRef__":true,"id":21370}},"21446":{},"21447":{"varMapping":{"__isSmartRef__":true,"id":21448},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n return false;\n } else {\n this.displayTopLevelMorphs();\n return true;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21453},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21448":{"this":{"__isSmartRef__":true,"id":21370},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21449}},"21449":{"$super":{"__isSmartRef__":true,"id":21450}},"21450":{"varMapping":{"__isSmartRef__":true,"id":21451},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21452},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21451":{"obj":{"__isSmartRef__":true,"id":21370},"name":"onMouseDown"},"21452":{},"21453":{},"21454":{"morph":{"__isSmartRef__":true,"id":20573},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21455":{"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":21456},"setTarget":{"__isSmartRef__":true,"id":21459},"generateSourceForScript":{"__isSmartRef__":true,"id":21462},"generateSourceForConnection":{"__isSmartRef__":true,"id":21465},"generateTargetCode":{"__isSmartRef__":true,"id":21468},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":21471},"displayJavaScriptSource":{"__isSmartRef__":true,"id":21474},"displaySourceForScript":{"__isSmartRef__":true,"id":21477},"displaySourceForConnection":{"__isSmartRef__":true,"id":21480},"newScript":{"__isSmartRef__":true,"id":21483},"newConnection":{"__isSmartRef__":true,"id":21486},"deleteSelectedScript":{"__isSmartRef__":true,"id":21489},"disconnectConnection":{"__isSmartRef__":true,"id":21492},"updateLists":{"__isSmartRef__":true,"id":21495},"displayInitialScript":{"__isSmartRef__":true,"id":21498},"reset":{"__isSmartRef__":true,"id":21501},"selectChangedContent":{"__isSmartRef__":true,"id":21504}},"21456":{"varMapping":{"__isSmartRef__":true,"id":21457},"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":21458},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21457":{"this":{"__isSmartRef__":true,"id":20573}},"21458":{},"21459":{"varMapping":{"__isSmartRef__":true,"id":21460},"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}","funcProperties":{"__isSmartRef__":true,"id":21461},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21460":{"this":{"__isSmartRef__":true,"id":20573}},"21461":{},"21462":{"varMapping":{"__isSmartRef__":true,"id":21463},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName].getOriginal();\n return Strings.format('this.addScript(%s);' ,script)\n}","funcProperties":{"__isSmartRef__":true,"id":21464},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21463":{"this":{"__isSmartRef__":true,"id":20573}},"21464":{},"21465":{"varMapping":{"__isSmartRef__":true,"id":21466},"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":21467},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21466":{"this":{"__isSmartRef__":true,"id":20573}},"21467":{},"21468":{"varMapping":{"__isSmartRef__":true,"id":21469},"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":21470},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21469":{"this":{"__isSmartRef__":true,"id":20573}},"21470":{},"21471":{"varMapping":{"__isSmartRef__":true,"id":21472},"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":21473},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21472":{"this":{"__isSmartRef__":true,"id":20573}},"21473":{},"21474":{"varMapping":{"__isSmartRef__":true,"id":21475},"source":"function displayJavaScriptSource(jsCode) {\n this.scriptPane.setTextString(jsCode);\n this.scriptPane.highlightJavaScriptSyntax();\n}","funcProperties":{"__isSmartRef__":true,"id":21476},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21475":{"this":{"__isSmartRef__":true,"id":20573}},"21476":{},"21477":{"varMapping":{"__isSmartRef__":true,"id":21478},"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":21479},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21478":{"this":{"__isSmartRef__":true,"id":20573}},"21479":{},"21480":{"varMapping":{"__isSmartRef__":true,"id":21481},"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":21482},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21481":{"this":{"__isSmartRef__":true,"id":20573}},"21482":{},"21483":{"varMapping":{"__isSmartRef__":true,"id":21484},"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":21485},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21484":{"this":{"__isSmartRef__":true,"id":20573}},"21485":{},"21486":{"varMapping":{"__isSmartRef__":true,"id":21487},"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":21488},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21487":{"this":{"__isSmartRef__":true,"id":20573}},"21488":{},"21489":{"varMapping":{"__isSmartRef__":true,"id":21490},"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":21491},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21490":{"this":{"__isSmartRef__":true,"id":20573}},"21491":{},"21492":{"varMapping":{"__isSmartRef__":true,"id":21493},"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":21494},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21493":{"this":{"__isSmartRef__":true,"id":20573}},"21494":{},"21495":{"varMapping":{"__isSmartRef__":true,"id":21496},"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":21497},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21496":{"this":{"__isSmartRef__":true,"id":20573}},"21497":{},"21498":{"varMapping":{"__isSmartRef__":true,"id":21499},"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":21500},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21499":{"this":{"__isSmartRef__":true,"id":20573}},"21500":{},"21501":{"varMapping":{"__isSmartRef__":true,"id":21502},"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":21503},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21502":{"this":{"__isSmartRef__":true,"id":20573}},"21503":{},"21504":{"varMapping":{"__isSmartRef__":true,"id":21505},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n if (index > -1) { \n return this.scriptList.selectAt(index);\n }\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n editor.updateLists();\n editor.displayInitialScript();\n } \n }\n\n var message = 'Disconnect \"' + selection[0] +'\" connection?';\n var callback = disconnectConnection;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":21704},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21703":{"this":{"__isSmartRef__":true,"id":21650}},"21704":{"timestamp":{"__isSmartRef__":true,"id":21705},"user":"lauritz","categories":[]},"21705":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"21706":{"submorphs":[{"__isSmartRef__":true,"id":21707}],"scripts":[],"id":"3243AB6F-09AD-454D-B0D8-18D01B1754C0","shape":{"__isSmartRef__":true,"id":21722},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21738},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21725},"lighterFill":{"__isSmartRef__":true,"id":21739},"label":{"__isSmartRef__":true,"id":21707},"attributeConnections":[{"__isSmartRef__":true,"id":21748}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":21750},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":21751},"renderContextTable":{"__isSmartRef__":true,"id":21752},"priorExtent":{"__isSmartRef__":true,"id":21753},"owner":{"__isSmartRef__":true,"id":20555},"eventHandler":{"__isSmartRef__":true,"id":21754},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":20555},"distanceToDragEvent":{"__isSmartRef__":true,"id":21755},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D","7DDF7175-34FC-4521-A7C3-580A8BE63351","DEA39C05-FAD7-4882-AB3D-0EE12C3408F9","99186A50-1411-4B6F-B1CB-FF0742C20D7D"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21756},"__LivelyClassName__":"lively.morphic.Button"},"21707":{"submorphs":[],"scripts":[],"id":"F026727E-B31F-42FB-8226-83DBF66D609B","shape":{"__isSmartRef__":true,"id":21708},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":21,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21714},"textColor":{"__isSmartRef__":true,"id":21711},"owner":{"__isSmartRef__":true,"id":21706},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":21715}],"padding":{"__isSmartRef__":true,"id":21717},"_Padding":{"__isSmartRef__":true,"id":21718},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21719},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":21720},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":21721},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":21,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A","B4C4F09B-F663-47A1-B85F-461D5452F5F8","FD966AB1-4685-4151-9A38-B1B21B0237EF","CA91FC2C-D7CC-4123-AFD2-108F8F0C2E97"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"21708":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21709},"_Extent":{"__isSmartRef__":true,"id":21710},"_BorderColor":{"__isSmartRef__":true,"id":21711},"renderContextTable":{"__isSmartRef__":true,"id":21712},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":21713},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21709":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21710":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21711":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21712":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21713":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21714":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21715":{"style":{"__isSmartRef__":true,"id":21716},"chunkOwner":{"__isSmartRef__":true,"id":21707},"storedString":"-","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"21716":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21717":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21718":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21719":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21720":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21721":{"morph":{"__isSmartRef__":true,"id":21707},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21722":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21723},"_Extent":{"__isSmartRef__":true,"id":21724},"_Fill":{"__isSmartRef__":true,"id":21725},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21735},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":21736},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21737},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21723":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21724":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21725":{"stops":[{"__isSmartRef__":true,"id":21726},{"__isSmartRef__":true,"id":21728},{"__isSmartRef__":true,"id":21730},{"__isSmartRef__":true,"id":21732}],"vector":{"__isSmartRef__":true,"id":21734},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21726":{"offset":0,"color":{"__isSmartRef__":true,"id":21727}},"21727":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21728":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21729}},"21729":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21730":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21731}},"21731":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21732":{"offset":1,"color":{"__isSmartRef__":true,"id":21733}},"21733":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21734":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21735":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21736":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21737":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21738":{"x":160,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21739":{"stops":[{"__isSmartRef__":true,"id":21740},{"__isSmartRef__":true,"id":21742},{"__isSmartRef__":true,"id":21744},{"__isSmartRef__":true,"id":21746}],"vector":{"__isSmartRef__":true,"id":21734},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21740":{"offset":0,"color":{"__isSmartRef__":true,"id":21741}},"21741":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21742":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21743}},"21743":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21744":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21745}},"21745":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21746":{"offset":1,"color":{"__isSmartRef__":true,"id":21747}},"21747":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21748":{"sourceObj":{"__isSmartRef__":true,"id":21706},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":21706},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":21749},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"21749":{"source":{"__isSmartRef__":true,"id":21706},"target":{"__isSmartRef__":true,"id":21706}},"21750":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21751":{"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"},"21752":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"21753":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21754":{"morph":{"__isSmartRef__":true,"id":21706},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21755":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21756":{"deleteSelectedScript":{"__isSmartRef__":true,"id":21757}},"21757":{"varMapping":{"__isSmartRef__":true,"id":21758},"source":"function deleteSelectedScript() {\n\n var editor = this.objectEditorPane;\n var selection = editor.scriptList.selection;\n\n if (!editor.target || editor.scriptList.getList().size() < 2) \n return; \n\n var deleteScript = function (confirmed) {\n if (!confirmed) return;\n \n if (selection && editor.target) {\n if (!editor.target.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\n editor.updateLists();\n editor.displayInitialScript();\n }\n }\n\n var message = 'Delete \"' + selection + '\" script?';\n var callback = deleteScript;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":21759},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21758":{"this":{"__isSmartRef__":true,"id":21706}},"21759":{"timestamp":{"__isSmartRef__":true,"id":21760},"user":"lauritz"},"21760":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"21761":{"submorphs":[{"__isSmartRef__":true,"id":21762}],"scripts":[],"id":"06E2D607-59FC-4CBF-8B0C-EED4C7AB1872","shape":{"__isSmartRef__":true,"id":21778},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21794},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21781},"lighterFill":{"__isSmartRef__":true,"id":21795},"label":{"__isSmartRef__":true,"id":21762},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":21804},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":21805},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":21806},"eventHandler":{"__isSmartRef__":true,"id":21807},"distanceToDragEvent":{"__isSmartRef__":true,"id":21808},"priorExtent":{"__isSmartRef__":true,"id":21809},"owner":{"__isSmartRef__":true,"id":20555},"textString":"","selection":{"__isSmartRef__":true,"id":21810},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA","A50C1893-4138-4E29-865B-92F53F76D08A","1EC5D2B9-3539-419A-8DD6-CE82DEABB02C","95DC06D5-F4C7-49E2-8A01-110D1B0AFBD0"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21827},"__LivelyClassName__":"lively.morphic.Button"},"21762":{"submorphs":[],"scripts":[],"id":"372DA56F-3F26-44A6-8842-7BADBCA4AF66","shape":{"__isSmartRef__":true,"id":21763},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21769},"textColor":{"__isSmartRef__":true,"id":21766},"owner":{"__isSmartRef__":true,"id":21761},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":21770}],"padding":{"__isSmartRef__":true,"id":21772},"_Padding":{"__isSmartRef__":true,"id":21772},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21773},"attributeConnections":[{"__isSmartRef__":true,"id":21774}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":21775},"eventHandler":{"__isSmartRef__":true,"id":21776},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01","74158C3D-B79E-43E7-B111-48701B10ACE2","B19E117B-E40F-4B9F-86AC-BFB2AAFD5336","4E3B3D72-E52C-44ED-AE32-78939BA1ECFD"],"_TextColor":{"__isSmartRef__":true,"id":21777},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"21763":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21764},"_Extent":{"__isSmartRef__":true,"id":21765},"_BorderColor":{"__isSmartRef__":true,"id":21766},"renderContextTable":{"__isSmartRef__":true,"id":21767},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":21768},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21764":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21765":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21766":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21767":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21768":{"x":0,"y":3,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21769":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21770":{"style":{"__isSmartRef__":true,"id":21771},"chunkOwner":{"__isSmartRef__":true,"id":21762},"storedString":"GemFrame","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"21771":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21772":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21773":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21774":{"sourceObj":{"__isSmartRef__":true,"id":21762},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":21761},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"21775":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21776":{"morph":{"__isSmartRef__":true,"id":21762},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21777":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21778":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21779},"_Extent":{"__isSmartRef__":true,"id":21780},"_Fill":{"__isSmartRef__":true,"id":21781},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21791},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":21792},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21793},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21779":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21780":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21781":{"stops":[{"__isSmartRef__":true,"id":21782},{"__isSmartRef__":true,"id":21784},{"__isSmartRef__":true,"id":21786},{"__isSmartRef__":true,"id":21788}],"vector":{"__isSmartRef__":true,"id":21790},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21782":{"offset":0,"color":{"__isSmartRef__":true,"id":21783}},"21783":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21784":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21785}},"21785":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21786":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21787}},"21787":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21788":{"offset":1,"color":{"__isSmartRef__":true,"id":21789}},"21789":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21790":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21791":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21792":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21793":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21794":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21795":{"stops":[{"__isSmartRef__":true,"id":21796},{"__isSmartRef__":true,"id":21798},{"__isSmartRef__":true,"id":21800},{"__isSmartRef__":true,"id":21802}],"vector":{"__isSmartRef__":true,"id":21790},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21796":{"offset":0,"color":{"__isSmartRef__":true,"id":21797}},"21797":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21798":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21799}},"21799":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21800":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21801}},"21801":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21802":{"offset":1,"color":{"__isSmartRef__":true,"id":21803}},"21803":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21804":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21805":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21806":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"21807":{"morph":{"__isSmartRef__":true,"id":21761},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21808":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21809":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21810":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":21811},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21817},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":21818},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":21819},"_TextColor":{"__isSmartRef__":true,"id":21820},"renderContextTable":{"__isSmartRef__":true,"id":21821},"textChunks":[{"__isSmartRef__":true,"id":21822}],"eventHandler":{"__isSmartRef__":true,"id":21824},"priorExtent":{"__isSmartRef__":true,"id":21825},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"distanceToDragEvent":{"__isSmartRef__":true,"id":21826},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"21811":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21812},"_Extent":{"__isSmartRef__":true,"id":21813},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":21814},"renderContextTable":{"__isSmartRef__":true,"id":21815},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21816},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21812":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21813":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21814":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21815":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"21816":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21817":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21818":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21819":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21820":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21821":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21822":{"style":{"__isSmartRef__":true,"id":21823},"chunkOwner":{"__isSmartRef__":true,"id":21810},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"21823":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21824":{"morph":{"__isSmartRef__":true,"id":21810},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21825":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21826":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21827":{"createListMorph":{"__isSmartRef__":true,"id":21828},"getList":{"__isSmartRef__":true,"id":21832},"removeList":{"__isSmartRef__":true,"id":21836},"reset":{"__isSmartRef__":true,"id":21840},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":21844},"onMouseDown":{"__isSmartRef__":true,"id":21848},"setTargetOfPane":{"__isSmartRef__":true,"id":21856},"setTargetToListSelection":{"__isSmartRef__":true,"id":21860},"onBlur":{"__isSmartRef__":true,"id":21864},"setTarget":{"__isSmartRef__":true,"id":21872},"setTargetOnSelection":{"__isSmartRef__":true,"id":21876}},"21828":{"varMapping":{"__isSmartRef__":true,"id":21829},"source":"function createListMorph() {\n var items = this.getList();\n \n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n\n connect(listMorph, 'selection', this, 'setTargetToListSelection');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":21830},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21829":{"this":{"__isSmartRef__":true,"id":21761}},"21830":{"timestamp":{"__isSmartRef__":true,"id":21831},"user":"lauritz","tags":[]},"21831":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (CET)"},"21832":{"varMapping":{"__isSmartRef__":true,"id":21833},"source":"function getList() {\n var worldEntry = {\n isListItem: true,\n selectionString: 'World',\n string: 'World',\n value: this.world()\n };\n var list = this.world().indentedListItemsOfMorphNames();\n list.unshift(worldEntry);\n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":21834},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21833":{"this":{"__isSmartRef__":true,"id":21761}},"21834":{"timestamp":{"__isSmartRef__":true,"id":21835},"user":"lauritz","tags":[]},"21835":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (CET)"},"21836":{"varMapping":{"__isSmartRef__":true,"id":21837},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":21838},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21837":{"this":{"__isSmartRef__":true,"id":21761}},"21838":{"timestamp":{"__isSmartRef__":true,"id":21839},"user":"lauritz","tags":[]},"21839":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (CET)"},"21840":{"varMapping":{"__isSmartRef__":true,"id":21841},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":21842},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21841":{"this":{"__isSmartRef__":true,"id":21761}},"21842":{"timestamp":{"__isSmartRef__":true,"id":21843},"user":"lauritz","tags":[]},"21843":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (CET)"},"21844":{"varMapping":{"__isSmartRef__":true,"id":21845},"source":"function displayTopLevelMorphs() {\n var list = this.createListMorph(); \n if (this.getList().length === 0) return;\n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":21846},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21845":{"this":{"__isSmartRef__":true,"id":21761}},"21846":{"timestamp":{"__isSmartRef__":true,"id":21847},"user":"lauritz","tags":[]},"21847":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (CET)"},"21848":{"varMapping":{"__isSmartRef__":true,"id":21849},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n // clicked on morph, not the list, not the list's scrollbar\n if (evt.target === this.renderContext().shapeNode)\n this.removeList();\n } else {\n this.displayTopLevelMorphs();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21854},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21849":{"this":{"__isSmartRef__":true,"id":21761},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21850}},"21850":{"$super":{"__isSmartRef__":true,"id":21851}},"21851":{"varMapping":{"__isSmartRef__":true,"id":21852},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21853},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21852":{"obj":{"__isSmartRef__":true,"id":21761},"name":"onMouseDown"},"21853":{},"21854":{"timestamp":{"__isSmartRef__":true,"id":21855},"user":"lauritz","tags":[]},"21855":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (CET)"},"21856":{"varMapping":{"__isSmartRef__":true,"id":21857},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":21858},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21857":{"this":{"__isSmartRef__":true,"id":21761}},"21858":{"timestamp":{"__isSmartRef__":true,"id":21859},"user":"lauritz","tags":[]},"21859":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (CET)"},"21860":{"varMapping":{"__isSmartRef__":true,"id":21861},"source":"function setTargetToListSelection() { \n var selection = this.listMorph.selection;\n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21862},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21861":{"this":{"__isSmartRef__":true,"id":21761}},"21862":{"timestamp":{"__isSmartRef__":true,"id":21863},"user":"lauritz","tags":[]},"21863":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (CET)"},"21864":{"varMapping":{"__isSmartRef__":true,"id":21865},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21870},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21865":{"this":{"__isSmartRef__":true,"id":21761},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21866}},"21866":{"$super":{"__isSmartRef__":true,"id":21867}},"21867":{"varMapping":{"__isSmartRef__":true,"id":21868},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21869},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21868":{"obj":{"__isSmartRef__":true,"id":21761},"name":"onBlur"},"21869":{},"21870":{"timestamp":{"__isSmartRef__":true,"id":21871},"user":"lauritz","tags":[]},"21871":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (CET)"},"21872":{"varMapping":{"__isSmartRef__":true,"id":21873},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":21874},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21873":{"this":{"__isSmartRef__":true,"id":21761}},"21874":{"timestamp":{"__isSmartRef__":true,"id":21875},"user":"lauritz","tags":[]},"21875":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (CET)"},"21876":{"varMapping":{"__isSmartRef__":true,"id":21877},"source":"function setTargetOnSelection() {\n if (this.listMorph && this.listMorph.renderContext() && this.listMorph.renderContext().listNode.value) {\n this.setTargetToListSelection();\n this.stopStepping();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21878},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21877":{"this":{"__isSmartRef__":true,"id":21761}},"21878":{"timestamp":{"__isSmartRef__":true,"id":21879},"user":"lauritz","tags":[]},"21879":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (CET)"},"21880":{"submorphs":[],"scripts":[],"id":"CDC7B2F6-40F1-4221-9D5D-20941E8E669E","shape":{"__isSmartRef__":true,"id":21881},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21887},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":21884},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":21888},"textChunks":[{"__isSmartRef__":true,"id":21889}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21891},"renderContextTable":{"__isSmartRef__":true,"id":21892},"eventHandler":{"__isSmartRef__":true,"id":21893},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":21894},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":20555},"isCopyMorphRef":true,"morphRefId":27,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56","14AB1B91-3ED6-49AE-AA58-47D18B6C569F","991D4A54-1FC4-4BC7-AA82-F814AC52CDE3","DB9B19F7-4390-4CE5-9B1D-62177CB8D605","8F7B2EE9-9538-4044-B75B-6A12F3108B70","4B9F9B4B-C7D3-418D-9AC9-10503A4EBF8E","324EE422-8C94-43CE-B964-A3150830C25F","36D1ECF9-591F-426B-A4F6-B337D7DB053B","CB52849C-BE64-4053-8D07-758F969F84EB","F1C241D4-A689-4DB7-942F-ADB5F39D9CAA"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"21881":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21882},"_Extent":{"__isSmartRef__":true,"id":21883},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":21884},"renderContextTable":{"__isSmartRef__":true,"id":21885},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21886},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21882":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21883":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21884":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21885":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21886":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21887":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21888":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21889":{"style":{"__isSmartRef__":true,"id":21890},"chunkOwner":{"__isSmartRef__":true,"id":21880},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"21890":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21891":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21892":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21893":{"morph":{"__isSmartRef__":true,"id":21880},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21894":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21895":{"submorphs":[],"scripts":[],"id":"91A0A378-3A35-47CF-8901-ABA677535EDB","shape":{"__isSmartRef__":true,"id":21896},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21902},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":21899},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":21903},"textChunks":[{"__isSmartRef__":true,"id":21904}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21906},"renderContextTable":{"__isSmartRef__":true,"id":21907},"eventHandler":{"__isSmartRef__":true,"id":21908},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":21909},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":20555},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707","75C07D11-AE5D-4A36-B2D0-F2A6EA414E72","494AB1C0-2C09-49DE-B4AA-1F24DC7495FF","25199967-E3BA-4763-A704-37BD3152A5F7"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"21896":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21897},"_Extent":{"__isSmartRef__":true,"id":21898},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":21899},"renderContextTable":{"__isSmartRef__":true,"id":21900},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21901},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21897":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21898":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21899":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21900":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21901":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21902":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21903":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21904":{"style":{"__isSmartRef__":true,"id":21905},"chunkOwner":{"__isSmartRef__":true,"id":21895},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"21905":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21906":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21907":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21908":{"morph":{"__isSmartRef__":true,"id":21895},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21909":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21910":{"submorphs":[{"__isSmartRef__":true,"id":21911}],"scripts":[],"id":"9A396E88-589C-446C-B3BE-5D4F9EC37C0B","shape":{"__isSmartRef__":true,"id":21925},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21941},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":21942},"lighterFill":{"__isSmartRef__":true,"id":21928},"label":{"__isSmartRef__":true,"id":21911},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":21951},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":21952},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":21953},"eventHandler":{"__isSmartRef__":true,"id":21954},"distanceToDragEvent":{"__isSmartRef__":true,"id":21955},"priorExtent":{"__isSmartRef__":true,"id":21956},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":20555},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627","C66EBEEC-B7CE-4DD9-8BDF-905F071F965D","D68B143A-A712-4FD0-8803-62CCB4C7F763","ED802271-AE5C-4BE9-AC4E-7CED44BC864B"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21957},"__LivelyClassName__":"lively.morphic.Button"},"21911":{"submorphs":[],"scripts":[],"id":"748587D1-EF11-4792-9D9F-A90962D10836","shape":{"__isSmartRef__":true,"id":21912},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":21917},"textColor":{"__isSmartRef__":true,"id":21915},"owner":{"__isSmartRef__":true,"id":21910},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":21918}],"padding":{"__isSmartRef__":true,"id":21920},"_Padding":{"__isSmartRef__":true,"id":21920},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":21921},"attributeConnections":[{"__isSmartRef__":true,"id":21922}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":21923},"eventHandler":{"__isSmartRef__":true,"id":21924},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D","567FC668-A57C-41CB-8252-8912826B3144","D0B0775F-C8E7-49EB-BBB2-C7BB7DD464BF","AABED87D-D7C0-494A-8803-26F4601E35FF"],"_TextColor":{"__isSmartRef__":true,"id":21777},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"21912":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21913},"_Extent":{"__isSmartRef__":true,"id":21914},"_BorderColor":{"__isSmartRef__":true,"id":21915},"renderContextTable":{"__isSmartRef__":true,"id":21916},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":21768},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21913":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21914":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21915":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21916":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21917":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21918":{"style":{"__isSmartRef__":true,"id":21919},"chunkOwner":{"__isSmartRef__":true,"id":21911},"storedString":"all","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"21919":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"21920":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21921":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21922":{"sourceObj":{"__isSmartRef__":true,"id":21911},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":21910},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"21923":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"21924":{"morph":{"__isSmartRef__":true,"id":21911},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21925":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":21926},"_Extent":{"__isSmartRef__":true,"id":21927},"_Fill":{"__isSmartRef__":true,"id":21928},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":21938},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":21939},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":21940},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21926":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21927":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21928":{"stops":[{"__isSmartRef__":true,"id":21929},{"__isSmartRef__":true,"id":21931},{"__isSmartRef__":true,"id":21933},{"__isSmartRef__":true,"id":21935}],"vector":{"__isSmartRef__":true,"id":21937},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21929":{"offset":0,"color":{"__isSmartRef__":true,"id":21930}},"21930":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21931":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21932}},"21932":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21933":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21934}},"21934":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21935":{"offset":1,"color":{"__isSmartRef__":true,"id":21936}},"21936":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21937":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21938":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21939":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"21940":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21941":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21942":{"stops":[{"__isSmartRef__":true,"id":21943},{"__isSmartRef__":true,"id":21945},{"__isSmartRef__":true,"id":21947},{"__isSmartRef__":true,"id":21949}],"vector":{"__isSmartRef__":true,"id":21937},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"21943":{"offset":0,"color":{"__isSmartRef__":true,"id":21944}},"21944":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21945":{"offset":0.4,"color":{"__isSmartRef__":true,"id":21946}},"21946":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21947":{"offset":0.6,"color":{"__isSmartRef__":true,"id":21948}},"21948":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21949":{"offset":1,"color":{"__isSmartRef__":true,"id":21950}},"21950":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"21951":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"21952":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"21953":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"21954":{"morph":{"__isSmartRef__":true,"id":21910},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"21955":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21956":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21957":{"createListMorph":{"__isSmartRef__":true,"id":21958},"getList":{"__isSmartRef__":true,"id":21962},"removeList":{"__isSmartRef__":true,"id":21966},"reset":{"__isSmartRef__":true,"id":21970},"onMouseUp":{"__isSmartRef__":true,"id":21974},"onBlur":{"__isSmartRef__":true,"id":21982},"setTag":{"__isSmartRef__":true,"id":21990}},"21958":{"varMapping":{"__isSmartRef__":true,"id":21959},"source":"function createListMorph() {\n var items = this.getList();\n\n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setTag');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":21960},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21959":{"this":{"__isSmartRef__":true,"id":21910}},"21960":{"timestamp":{"__isSmartRef__":true,"id":21961},"user":"lauritz","categories":[]},"21961":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"21962":{"varMapping":{"__isSmartRef__":true,"id":21963},"source":"function getList() {\n if (!this.owner.target) return [''];\n\n var target = this.owner.target;\n\n var tags = Functions.own(target).collect(function (each) {\n return target[each].tags || [];\n }).flatten().uniq();\n\n var sortedTags = tags.sortBy(function(name) { \n return name.toLowerCase() \n });\n \n sortedTags.unshift('all'); \n return sortedTags;\n}","funcProperties":{"__isSmartRef__":true,"id":21964},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21963":{"this":{"__isSmartRef__":true,"id":21910}},"21964":{"timestamp":{"__isSmartRef__":true,"id":21965},"user":"lauritz","tags":[]},"21965":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"21966":{"varMapping":{"__isSmartRef__":true,"id":21967},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":21968},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21967":{"this":{"__isSmartRef__":true,"id":21910}},"21968":{"timestamp":{"__isSmartRef__":true,"id":21969},"user":"lauritz","categories":[]},"21969":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"21970":{"varMapping":{"__isSmartRef__":true,"id":21971},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":21972},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21971":{"this":{"__isSmartRef__":true,"id":21910}},"21972":{"timestamp":{"__isSmartRef__":true,"id":21973},"user":"lauritz","tags":[]},"21973":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"21974":{"varMapping":{"__isSmartRef__":true,"id":21975},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n return true;\n } \n if (this.getList().size() < 2) return;\n var list = this.createListMorph();\n this.addMorph(list);\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":21980},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21975":{"this":{"__isSmartRef__":true,"id":21910},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21976}},"21976":{"$super":{"__isSmartRef__":true,"id":21977}},"21977":{"varMapping":{"__isSmartRef__":true,"id":21978},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21979},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21978":{"obj":{"__isSmartRef__":true,"id":21910},"name":"onMouseUp"},"21979":{},"21980":{"timestamp":{"__isSmartRef__":true,"id":21981},"user":"lauritz","categories":[]},"21981":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"21982":{"varMapping":{"__isSmartRef__":true,"id":21983},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":21988},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21983":{"this":{"__isSmartRef__":true,"id":21910},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":21984}},"21984":{"$super":{"__isSmartRef__":true,"id":21985}},"21985":{"varMapping":{"__isSmartRef__":true,"id":21986},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":21987},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21986":{"obj":{"__isSmartRef__":true,"id":21910},"name":"onBlur"},"21987":{},"21988":{"timestamp":{"__isSmartRef__":true,"id":21989},"user":"lauritz","categories":[]},"21989":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"21990":{"varMapping":{"__isSmartRef__":true,"id":21991},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":21992},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"21991":{"this":{"__isSmartRef__":true,"id":21910}},"21992":{"timestamp":{"__isSmartRef__":true,"id":21993},"user":"lauritz","categories":[]},"21993":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"21994":{"submorphs":[{"__isSmartRef__":true,"id":21995}],"scripts":[],"id":"04F2A311-62E7-4ED6-ADB8-7ED0ACABE2A3","shape":{"__isSmartRef__":true,"id":22010},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":22014},"lighterFill":{"__isSmartRef__":true,"id":22026},"label":{"__isSmartRef__":true,"id":21995},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":22035},"attributeConnections":[{"__isSmartRef__":true,"id":22036}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":22072},"renderContextTable":{"__isSmartRef__":true,"id":22073},"eventHandler":{"__isSmartRef__":true,"id":22074},"distanceToDragEvent":{"__isSmartRef__":true,"id":22075},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15","1C6D1DC9-2F9B-4DC4-B453-1CA45B17C516","0E8EC0BF-934B-410B-AEC2-0ECA8C8F774D","97086CE7-CD46-4035-A371-02A41D555A66"],"_Position":{"__isSmartRef__":true,"id":22076},"owner":{"__isSmartRef__":true,"id":20555},"layout":{"__isSmartRef__":true,"id":22077},"_ClipMode":"visible","_Rotation":0,"_Scale":0.994014980014994,"__LivelyClassName__":"lively.morphic.Button"},"21995":{"submorphs":[],"scripts":[],"id":"8F3004D8-DB4E-443C-8962-4FEE0670FCD9","shape":{"__isSmartRef__":true,"id":21996},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":22002},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":22003},"_Padding":{"__isSmartRef__":true,"id":22004},"owner":{"__isSmartRef__":true,"id":21994},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":22005},"textChunks":[{"__isSmartRef__":true,"id":22006}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":22008},"eventHandler":{"__isSmartRef__":true,"id":22009},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E","81041CF7-31DB-4F65-BB39-FE438A4F266F","D03829B3-268E-40A0-A440-3E4BAC344F30","714637F0-714A-4833-909B-BA4AF1B4628B"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"21996":{"position":{"__isSmartRef__":true,"id":21997},"_Extent":{"__isSmartRef__":true,"id":21998},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":21999},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":22000},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":22001},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"21997":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"21998":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"21999":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22000":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"22001":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22002":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22003":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22004":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22005":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22006":{"style":{"__isSmartRef__":true,"id":22007},"chunkOwner":{"__isSmartRef__":true,"id":21995},"storedString":"run","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"22007":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"22008":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"22009":{"morph":{"__isSmartRef__":true,"id":21995},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22010":{"position":{"__isSmartRef__":true,"id":22011},"_Extent":{"__isSmartRef__":true,"id":22012},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":22013},"_Fill":{"__isSmartRef__":true,"id":22014},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":22024},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":22025},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"22011":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22012":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22013":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22014":{"stops":[{"__isSmartRef__":true,"id":22015},{"__isSmartRef__":true,"id":22017},{"__isSmartRef__":true,"id":22019},{"__isSmartRef__":true,"id":22021}],"vector":{"__isSmartRef__":true,"id":22023},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"22015":{"offset":0,"color":{"__isSmartRef__":true,"id":22016}},"22016":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22017":{"offset":0.4,"color":{"__isSmartRef__":true,"id":22018}},"22018":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22019":{"offset":0.6,"color":{"__isSmartRef__":true,"id":22020}},"22020":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22021":{"offset":1,"color":{"__isSmartRef__":true,"id":22022}},"22022":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22023":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22024":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"22025":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22026":{"stops":[{"__isSmartRef__":true,"id":22027},{"__isSmartRef__":true,"id":22029},{"__isSmartRef__":true,"id":22031},{"__isSmartRef__":true,"id":22033}],"vector":{"__isSmartRef__":true,"id":22023},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"22027":{"offset":0,"color":{"__isSmartRef__":true,"id":22028}},"22028":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22029":{"offset":0.4,"color":{"__isSmartRef__":true,"id":22030}},"22030":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22031":{"offset":0.6,"color":{"__isSmartRef__":true,"id":22032}},"22032":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22033":{"offset":1,"color":{"__isSmartRef__":true,"id":22034}},"22034":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22035":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"22036":{"sourceObj":{"__isSmartRef__":true,"id":21994},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20555},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":22037},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"22037":{"submorphs":[{"__isSmartRef__":true,"id":22038}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22053},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":22060},"eventHandler":{"__isSmartRef__":true,"id":22061},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":22062},{"__isSmartRef__":true,"id":22063}],"con":{"__isSmartRef__":true,"id":22036},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22064},"__LivelyClassName__":"lively.morphic.Path"},"22038":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":22039},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":22050},"eventHandler":{"__isSmartRef__":true,"id":22051},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":22052},"owner":{"__isSmartRef__":true,"id":22037},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"22039":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":22040},{"__isSmartRef__":true,"id":22041},{"__isSmartRef__":true,"id":22042},{"__isSmartRef__":true,"id":22043}],"renderContextTable":{"__isSmartRef__":true,"id":22044},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":22045},"_Extent":{"__isSmartRef__":true,"id":22046},"_Padding":{"__isSmartRef__":true,"id":22047},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":22048},"_Fill":{"__isSmartRef__":true,"id":22049},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"22040":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"22041":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22042":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22043":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22044":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"22045":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22046":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22047":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22048":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22049":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22050":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22051":{"morph":{"__isSmartRef__":true,"id":22038},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22052":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22053":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":22054},{"__isSmartRef__":true,"id":22055}],"renderContextTable":{"__isSmartRef__":true,"id":22056},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":22057},"_Extent":{"__isSmartRef__":true,"id":22058},"_Padding":{"__isSmartRef__":true,"id":22059},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":22048},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"22054":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"22055":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22056":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"22057":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22058":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22059":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22060":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22061":{"morph":{"__isSmartRef__":true,"id":22037},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22062":{"morph":{"__isSmartRef__":true,"id":22037},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"22063":{"morph":{"__isSmartRef__":true,"id":22037},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":22038},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"22064":{"morphMenuItems":{"__isSmartRef__":true,"id":22065}},"22065":{"varMapping":{"__isSmartRef__":true,"id":22066},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":22071},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22066":{"this":{"__isSmartRef__":true,"id":22037},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22067}},"22067":{"$super":{"__isSmartRef__":true,"id":22068}},"22068":{"varMapping":{"__isSmartRef__":true,"id":22069},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22070},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22069":{"obj":{"__isSmartRef__":true,"id":22037},"name":"morphMenuItems"},"22070":{},"22071":{},"22072":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22073":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22074":{"morph":{"__isSmartRef__":true,"id":21994},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22075":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22076":{"x":788.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22077":{"centeredHorizontal":false,"moveHorizontal":true},"22078":{"submorphs":[{"__isSmartRef__":true,"id":22079}],"scripts":[],"id":"85D855A5-411B-4765-AC30-28B296928BF4","shape":{"__isSmartRef__":true,"id":22094},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":22098},"lighterFill":{"__isSmartRef__":true,"id":22110},"label":{"__isSmartRef__":true,"id":22079},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":22119},"attributeConnections":[{"__isSmartRef__":true,"id":22120}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":22156},"renderContextTable":{"__isSmartRef__":true,"id":22157},"eventHandler":{"__isSmartRef__":true,"id":22158},"distanceToDragEvent":{"__isSmartRef__":true,"id":22159},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6","B05829EB-D452-4D81-983B-E2CE425C8260","32B117E5-52D8-4843-B80E-090B9817E099","49AC923E-5272-4E3C-8F02-4F2AED2BC4E9"],"layout":{"__isSmartRef__":true,"id":22160},"_Position":{"__isSmartRef__":true,"id":22161},"owner":{"__isSmartRef__":true,"id":20555},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9880657804942089,"__LivelyClassName__":"lively.morphic.Button"},"22079":{"submorphs":[],"scripts":[],"id":"CF44628D-8508-4FEC-BADE-49778F4EF8BA","shape":{"__isSmartRef__":true,"id":22080},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":22086},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":22087},"_Padding":{"__isSmartRef__":true,"id":22088},"owner":{"__isSmartRef__":true,"id":22078},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":22089},"textChunks":[{"__isSmartRef__":true,"id":22090}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":22092},"eventHandler":{"__isSmartRef__":true,"id":22093},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353","4529D79B-4CC5-467E-91F8-661C3A5F49F8","1E5E570C-FD42-45E3-A7F6-768BB14ACD14","A13FB4E0-72F2-4E7C-A861-EDCBA1393860"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"22080":{"position":{"__isSmartRef__":true,"id":22081},"_Extent":{"__isSmartRef__":true,"id":22082},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":22083},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":22084},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":22085},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"22081":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22082":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"22083":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22084":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"22085":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22086":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22087":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22088":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22089":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22090":{"style":{"__isSmartRef__":true,"id":22091},"chunkOwner":{"__isSmartRef__":true,"id":22079},"storedString":"save","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"22091":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"22092":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"22093":{"morph":{"__isSmartRef__":true,"id":22079},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22094":{"position":{"__isSmartRef__":true,"id":22095},"_Extent":{"__isSmartRef__":true,"id":22096},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":22097},"_Fill":{"__isSmartRef__":true,"id":22098},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":22108},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":22109},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"22095":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22096":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22097":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22098":{"stops":[{"__isSmartRef__":true,"id":22099},{"__isSmartRef__":true,"id":22101},{"__isSmartRef__":true,"id":22103},{"__isSmartRef__":true,"id":22105}],"vector":{"__isSmartRef__":true,"id":22107},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"22099":{"offset":0,"color":{"__isSmartRef__":true,"id":22100}},"22100":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22101":{"offset":0.4,"color":{"__isSmartRef__":true,"id":22102}},"22102":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22103":{"offset":0.6,"color":{"__isSmartRef__":true,"id":22104}},"22104":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22105":{"offset":1,"color":{"__isSmartRef__":true,"id":22106}},"22106":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22107":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22108":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"22109":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22110":{"stops":[{"__isSmartRef__":true,"id":22111},{"__isSmartRef__":true,"id":22113},{"__isSmartRef__":true,"id":22115},{"__isSmartRef__":true,"id":22117}],"vector":{"__isSmartRef__":true,"id":22107},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"22111":{"offset":0,"color":{"__isSmartRef__":true,"id":22112}},"22112":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22113":{"offset":0.4,"color":{"__isSmartRef__":true,"id":22114}},"22114":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22115":{"offset":0.6,"color":{"__isSmartRef__":true,"id":22116}},"22116":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22117":{"offset":1,"color":{"__isSmartRef__":true,"id":22118}},"22118":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22119":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"22120":{"sourceObj":{"__isSmartRef__":true,"id":22078},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":21051},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":22121},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"22121":{"submorphs":[{"__isSmartRef__":true,"id":22122}],"scripts":[],"shape":{"__isSmartRef__":true,"id":22137},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":22144},"eventHandler":{"__isSmartRef__":true,"id":22145},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":22146},{"__isSmartRef__":true,"id":22147}],"con":{"__isSmartRef__":true,"id":22120},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22148},"__LivelyClassName__":"lively.morphic.Path"},"22122":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":22123},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":22134},"eventHandler":{"__isSmartRef__":true,"id":22135},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":22136},"owner":{"__isSmartRef__":true,"id":22121},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"22123":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":22124},{"__isSmartRef__":true,"id":22125},{"__isSmartRef__":true,"id":22126},{"__isSmartRef__":true,"id":22127}],"renderContextTable":{"__isSmartRef__":true,"id":22128},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":22129},"_Extent":{"__isSmartRef__":true,"id":22130},"_Padding":{"__isSmartRef__":true,"id":22131},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":22132},"_Fill":{"__isSmartRef__":true,"id":22133},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"22124":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"22125":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22126":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22127":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22128":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"22129":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22130":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22131":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22132":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22133":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22134":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22135":{"morph":{"__isSmartRef__":true,"id":22122},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22136":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22137":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":22138},{"__isSmartRef__":true,"id":22139}],"renderContextTable":{"__isSmartRef__":true,"id":22140},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":22141},"_Extent":{"__isSmartRef__":true,"id":22142},"_Padding":{"__isSmartRef__":true,"id":22143},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":22132},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"22138":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"22139":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"22140":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"22141":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22142":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22143":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22144":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22145":{"morph":{"__isSmartRef__":true,"id":22121},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22146":{"morph":{"__isSmartRef__":true,"id":22121},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"22147":{"morph":{"__isSmartRef__":true,"id":22121},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":22122},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"22148":{"morphMenuItems":{"__isSmartRef__":true,"id":22149}},"22149":{"varMapping":{"__isSmartRef__":true,"id":22150},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":22155},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22150":{"this":{"__isSmartRef__":true,"id":22121},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":22151}},"22151":{"$super":{"__isSmartRef__":true,"id":22152}},"22152":{"varMapping":{"__isSmartRef__":true,"id":22153},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":22154},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22153":{"obj":{"__isSmartRef__":true,"id":22121},"name":"morphMenuItems"},"22154":{},"22155":{},"22156":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22157":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22158":{"morph":{"__isSmartRef__":true,"id":22078},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22159":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22160":{"centeredHorizontal":false,"moveHorizontal":true},"22161":{"x":675.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22162":{"submorphs":[{"__isSmartRef__":true,"id":22163}],"scripts":[],"id":"CDE2C476-CFBD-446C-A802-D645ECDBF1C7","shape":{"__isSmartRef__":true,"id":22178},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":22194},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":22182},"lighterFill":{"__isSmartRef__":true,"id":22195},"label":{"__isSmartRef__":true,"id":22163},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":22204},"attributeConnections":[{"__isSmartRef__":true,"id":22205}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":22206},"renderContextTable":{"__isSmartRef__":true,"id":22207},"eventHandler":{"__isSmartRef__":true,"id":22208},"distanceToDragEvent":{"__isSmartRef__":true,"id":22209},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3","FF38CA79-C0DF-4F2F-8FC3-407571EF6A54","B1D50332-9F4F-4F7C-AC3F-95DC6C73EAA4","5B8D7C39-987A-4849-BFFD-3F316CE03852"],"owner":{"__isSmartRef__":true,"id":20555},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9940149800149939,"__LivelyClassName__":"lively.morphic.Button"},"22163":{"submorphs":[],"scripts":[],"id":"92A26983-111E-4AF0-BB40-AF033C8D3FAC","shape":{"__isSmartRef__":true,"id":22164},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":22170},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":22171},"_Padding":{"__isSmartRef__":true,"id":22172},"owner":{"__isSmartRef__":true,"id":22162},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":22173},"textChunks":[{"__isSmartRef__":true,"id":22174}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":22176},"eventHandler":{"__isSmartRef__":true,"id":22177},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718","6BB077CE-92E6-47BE-BE88-9A48488562D1","9E359973-2FDB-417B-BB06-AB34D52BD310","58F098ED-A190-44F2-B73E-80802B2CF2F6"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"22164":{"position":{"__isSmartRef__":true,"id":22165},"_Extent":{"__isSmartRef__":true,"id":22166},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":22167},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":22168},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":22169},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"22165":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22166":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"22167":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22168":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"22169":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22170":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22171":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22172":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22173":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22174":{"style":{"__isSmartRef__":true,"id":22175},"chunkOwner":{"__isSmartRef__":true,"id":22163},"storedString":"Tests","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"22175":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"22176":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"22177":{"morph":{"__isSmartRef__":true,"id":22163},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22178":{"position":{"__isSmartRef__":true,"id":22179},"_Extent":{"__isSmartRef__":true,"id":22180},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":22181},"_Fill":{"__isSmartRef__":true,"id":22182},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":22192},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":22193},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"22179":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22180":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22181":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22182":{"stops":[{"__isSmartRef__":true,"id":22183},{"__isSmartRef__":true,"id":22185},{"__isSmartRef__":true,"id":22187},{"__isSmartRef__":true,"id":22189}],"vector":{"__isSmartRef__":true,"id":22191},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"22183":{"offset":0,"color":{"__isSmartRef__":true,"id":22184}},"22184":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22185":{"offset":0.4,"color":{"__isSmartRef__":true,"id":22186}},"22186":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22187":{"offset":0.6,"color":{"__isSmartRef__":true,"id":22188}},"22188":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22189":{"offset":1,"color":{"__isSmartRef__":true,"id":22190}},"22190":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22191":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22192":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"22193":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22194":{"x":510,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22195":{"stops":[{"__isSmartRef__":true,"id":22196},{"__isSmartRef__":true,"id":22198},{"__isSmartRef__":true,"id":22200},{"__isSmartRef__":true,"id":22202}],"vector":{"__isSmartRef__":true,"id":22191},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"22196":{"offset":0,"color":{"__isSmartRef__":true,"id":22197}},"22197":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22198":{"offset":0.4,"color":{"__isSmartRef__":true,"id":22199}},"22199":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22200":{"offset":0.6,"color":{"__isSmartRef__":true,"id":22201}},"22201":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22202":{"offset":1,"color":{"__isSmartRef__":true,"id":22203}},"22203":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22204":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"22205":{"sourceObj":{"__isSmartRef__":true,"id":22162},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":20555},"targetMethodName":"openPartTestRunner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"22206":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22207":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22208":{"morph":{"__isSmartRef__":true,"id":22162},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22209":{"x":65.95178327801523,"y":-8.024108360992386,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22210":{"target":{"__isSmartRef__":true,"id":20555},"selector":"update","args":[],"stopped":true,"tickTime":500,"currentTimeout":9820,"suspended":true,"__SourceModuleName__":"Global.lively.morphic.Core","__LivelyClassName__":"lively.morphic.TargetScript"},"22211":{"position":{"__isSmartRef__":true,"id":22212},"_Extent":{"__isSmartRef__":true,"id":22213},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":22214},"_Fill":{"__isSmartRef__":true,"id":22215},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":22216},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":22217},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"22212":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22213":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22214":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"22215":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"22216":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"22217":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"22218":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":22219}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"22219":{"date":{"__isSmartRef__":true,"id":22220},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"22220":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"22221":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"22222":{"morph":{"__isSmartRef__":true,"id":20555},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"22223":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22224":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"22225":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22226":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"22227":{},"22228":{"displayInitialScript":{"__isSmartRef__":true,"id":22229},"displayJavaScriptSource":{"__isSmartRef__":true,"id":22233},"displaySourceForConnection":{"__isSmartRef__":true,"id":22237},"displaySourceForScript":{"__isSmartRef__":true,"id":22241},"generateSourceForConnection":{"__isSmartRef__":true,"id":22245},"generateSourceForScript":{"__isSmartRef__":true,"id":22249},"generateTargetCode":{"__isSmartRef__":true,"id":22253},"newConnection":{"__isSmartRef__":true,"id":22257},"newScript":{"__isSmartRef__":true,"id":22261},"reset":{"__isSmartRef__":true,"id":22265},"selectChangedContent":{"__isSmartRef__":true,"id":22269},"setTarget":{"__isSmartRef__":true,"id":22273},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":22277},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":22281},"updateLists":{"__isSmartRef__":true,"id":22285},"onShutdown":{"__isSmartRef__":true,"id":22289},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":22293},"update":{"__isSmartRef__":true,"id":22297},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":22301},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":22305},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":22309},"printTags":{"__isSmartRef__":true,"id":22317},"setTag":{"__isSmartRef__":true,"id":22321},"runScript":{"__isSmartRef__":true,"id":22325},"openPartTestRunner":{"__isSmartRef__":true,"id":22329}},"22229":{"varMapping":{"__isSmartRef__":true,"id":22230},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22231},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22230":{"this":{"__isSmartRef__":true,"id":20555}},"22231":{"timestamp":{"__isSmartRef__":true,"id":22232},"user":"lauritz","tags":[]},"22232":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"22233":{"varMapping":{"__isSmartRef__":true,"id":22234},"source":"function displayJavaScriptSource(jsCode) {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n var callback = function(confirmed) {\n if (confirmed) that.scriptPane.display(jsCode)\n };\n this.confirmUnsavedChanges(callback);\n } else {\n this.scriptPane.display(jsCode);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22235},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22234":{"this":{"__isSmartRef__":true,"id":20555}},"22235":{"timestamp":{"__isSmartRef__":true,"id":22236},"user":"lauritz","tags":[]},"22236":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"22237":{"varMapping":{"__isSmartRef__":true,"id":22238},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === undefined) return;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":22239},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22238":{"this":{"__isSmartRef__":true,"id":20555}},"22239":{"timestamp":{"__isSmartRef__":true,"id":22240},"user":"conradcalmez","tags":[]},"22240":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"22241":{"varMapping":{"__isSmartRef__":true,"id":22242},"source":"function displaySourceForScript(scriptName) {\n var code = \"\",\n that = this;\n if (scriptName === null) {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":22243},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22242":{"this":{"__isSmartRef__":true,"id":20555}},"22243":{"timestamp":{"__isSmartRef__":true,"id":22244},"user":"lauritz","tags":[]},"22244":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (CET)"},"22245":{"varMapping":{"__isSmartRef__":true,"id":22246},"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":22247},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22246":{"this":{"__isSmartRef__":true,"id":20555}},"22247":{"timestamp":{"__isSmartRef__":true,"id":22248},"user":"lauritz","tags":[]},"22248":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"22249":{"varMapping":{"__isSmartRef__":true,"id":22250},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed at %s by %s \\n', script.timestamp, script.user);\n scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n tagScript = Strings.format('.tag(%s);', this.printTags(script));\n\n return annotation + scriptSource + tagScript;\n}","funcProperties":{"__isSmartRef__":true,"id":22251},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22250":{"this":{"__isSmartRef__":true,"id":20555}},"22251":{"timestamp":{"__isSmartRef__":true,"id":22252},"user":"lauritz","tags":[]},"22252":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (CET)"},"22253":{"varMapping":{"__isSmartRef__":true,"id":22254},"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":22255},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22254":{"this":{"__isSmartRef__":true,"id":20555}},"22255":{"timestamp":{"__isSmartRef__":true,"id":22256},"user":"lauritz","tags":[]},"22256":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"22257":{"varMapping":{"__isSmartRef__":true,"id":22258},"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":22259},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22258":{"this":{"__isSmartRef__":true,"id":20555}},"22259":{"timestamp":{"__isSmartRef__":true,"id":22260},"user":"lauritz","tags":[]},"22260":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"22261":{"varMapping":{"__isSmartRef__":true,"id":22262},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":22263},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22262":{"this":{"__isSmartRef__":true,"id":20555}},"22263":{"timestamp":{"__isSmartRef__":true,"id":22264},"user":"lauritz","tags":[]},"22264":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"22265":{"varMapping":{"__isSmartRef__":true,"id":22266},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.scriptList.selection = null;\n this.connectionList.setList();\n this.connectionList.selection = null;\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":22267},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"22266":{"this":{"__isSmartRef__":true,"id":20555}},"22267":{"timestamp":{"__isSmartRef__":true,"id":22268},"user":"conradcalmez","tags":[]},"22268":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (CET)"},"22269":{"varMapping":{"__isSmartRef__":true,"id":22270},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -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":23589},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23588":{"this":{"__isSmartRef__":true,"id":22670}},"23589":{},"23590":{"varMapping":{"__isSmartRef__":true,"id":23591},"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":23592},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23591":{"this":{"__isSmartRef__":true,"id":22670}},"23592":{},"23593":{"varMapping":{"__isSmartRef__":true,"id":23594},"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":23595},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23594":{"this":{"__isSmartRef__":true,"id":22670}},"23595":{},"23596":{"varMapping":{"__isSmartRef__":true,"id":23597},"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":23598},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23597":{"this":{"__isSmartRef__":true,"id":22670}},"23598":{},"23599":{"varMapping":{"__isSmartRef__":true,"id":23600},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n var index = this.scriptList.getList().indexOf(addScriptMatches[0]);\n if (index > -1) { \n return this.scriptList.selectAt(index);\n }\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i -1) {\n var c = selection[1];\n disconnect(c.sourceObj, c.sourceAttrName, c.targetObj, c.targetMethodName);\n editor.updateLists();\n editor.displayInitialScript();\n } \n }\n\n var message = 'Disconnect \"' + selection[0] +'\" connection?';\n var callback = disconnectConnection;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":23799},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23798":{"this":{"__isSmartRef__":true,"id":23745}},"23799":{"timestamp":{"__isSmartRef__":true,"id":23800},"user":"lauritz","categories":[]},"23800":{"isSerializedDate":true,"string":"Fri Nov 11 2011 01:46:54 GMT+0100 (CET)"},"23801":{"submorphs":[{"__isSmartRef__":true,"id":23802}],"scripts":[],"id":"373E7795-F4A2-41CD-8B02-03BA618C3A46","shape":{"__isSmartRef__":true,"id":23817},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23833},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":23820},"lighterFill":{"__isSmartRef__":true,"id":23834},"label":{"__isSmartRef__":true,"id":23802},"attributeConnections":[{"__isSmartRef__":true,"id":23843}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":23845},"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":23846},"renderContextTable":{"__isSmartRef__":true,"id":23847},"priorExtent":{"__isSmartRef__":true,"id":23848},"owner":{"__isSmartRef__":true,"id":22652},"eventHandler":{"__isSmartRef__":true,"id":23849},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":22652},"distanceToDragEvent":{"__isSmartRef__":true,"id":23850},"derivationIds":[217,"FDC10087-12CF-4570-9211-8309CB6A9AA3","E18FC530-4B1F-4F08-8DA6-3866A3519E56","04A2AAC3-6A9E-40BB-9408-EBB2567EE63B","8C1A42CE-840C-4AAE-BD79-C93A445B9EBF","61FC11FA-B87E-4EFE-BD15-564D3178B68B","ED34F9B5-9E00-41B3-8313-D9C3D6B3B231","A7481F4B-D444-4B4F-BDA2-4F9F03AEC24D","7DDF7175-34FC-4521-A7C3-580A8BE63351","DEA39C05-FAD7-4882-AB3D-0EE12C3408F9","99186A50-1411-4B6F-B1CB-FF0742C20D7D"],"_ClipMode":"visible","_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23851},"__LivelyClassName__":"lively.morphic.Button"},"23802":{"submorphs":[],"scripts":[],"id":"F390F7E6-97BE-4BC4-8E36-B118966DC921","shape":{"__isSmartRef__":true,"id":23803},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":21,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23809},"textColor":{"__isSmartRef__":true,"id":23806},"owner":{"__isSmartRef__":true,"id":23801},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":23810}],"padding":{"__isSmartRef__":true,"id":23812},"_Padding":{"__isSmartRef__":true,"id":23813},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":23814},"_FontFamily":"Helvetica, Sans-Serif","renderContextTable":{"__isSmartRef__":true,"id":23815},"_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":23816},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":21,"_MinTextHeight":null,"draggingEnabled":false,"derivationIds":[218,"852A7BD9-52EE-4708-A2D5-1BDECF33C958","7B4F173E-9726-472A-9B30-530D4AA92AD9","CBA217F6-2832-4213-9ABE-47753C1A4180","E6B97D1D-95D5-4644-9359-1D08D42A51F4","4391A57E-70C2-4628-9828-DD668CCE546E","F0C6C298-3B8B-42B2-B5E9-E5B82F607B01","DF0CAF75-4247-4797-B1A0-AD7444391E2A","B4C4F09B-F663-47A1-B85F-461D5452F5F8","FD966AB1-4685-4151-9A38-B1B21B0237EF","CA91FC2C-D7CC-4123-AFD2-108F8F0C2E97"],"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"23803":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":23804},"_Extent":{"__isSmartRef__":true,"id":23805},"_BorderColor":{"__isSmartRef__":true,"id":23806},"renderContextTable":{"__isSmartRef__":true,"id":23807},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23808},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"23804":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23805":{"x":25,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"23806":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23807":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"23808":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23809":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23810":{"style":{"__isSmartRef__":true,"id":23811},"chunkOwner":{"__isSmartRef__":true,"id":23802},"storedString":"-","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"23811":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"23812":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23813":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23814":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23815":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"23816":{"morph":{"__isSmartRef__":true,"id":23802},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"23817":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":23818},"_Extent":{"__isSmartRef__":true,"id":23819},"_Fill":{"__isSmartRef__":true,"id":23820},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":23830},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":23831},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23832},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"23818":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23819":{"x":25,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23820":{"stops":[{"__isSmartRef__":true,"id":23821},{"__isSmartRef__":true,"id":23823},{"__isSmartRef__":true,"id":23825},{"__isSmartRef__":true,"id":23827}],"vector":{"__isSmartRef__":true,"id":23829},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"23821":{"offset":0,"color":{"__isSmartRef__":true,"id":23822}},"23822":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23823":{"offset":0.4,"color":{"__isSmartRef__":true,"id":23824}},"23824":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23825":{"offset":0.6,"color":{"__isSmartRef__":true,"id":23826}},"23826":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23827":{"offset":1,"color":{"__isSmartRef__":true,"id":23828}},"23828":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23829":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23830":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23831":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"23832":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23833":{"x":160,"y":40,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23834":{"stops":[{"__isSmartRef__":true,"id":23835},{"__isSmartRef__":true,"id":23837},{"__isSmartRef__":true,"id":23839},{"__isSmartRef__":true,"id":23841}],"vector":{"__isSmartRef__":true,"id":23829},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"23835":{"offset":0,"color":{"__isSmartRef__":true,"id":23836}},"23836":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23837":{"offset":0.4,"color":{"__isSmartRef__":true,"id":23838}},"23838":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23839":{"offset":0.6,"color":{"__isSmartRef__":true,"id":23840}},"23840":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23841":{"offset":1,"color":{"__isSmartRef__":true,"id":23842}},"23842":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23843":{"sourceObj":{"__isSmartRef__":true,"id":23801},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":23801},"targetMethodName":"deleteSelectedScript","converter":null,"converterString":null,"updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":23844},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"23844":{"source":{"__isSmartRef__":true,"id":23801},"target":{"__isSmartRef__":true,"id":23801}},"23845":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23846":{"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"},"23847":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"23848":{"x":30,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23849":{"morph":{"__isSmartRef__":true,"id":23801},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"23850":{"x":33.35839679439101,"y":-21.324811622839547,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23851":{"deleteSelectedScript":{"__isSmartRef__":true,"id":23852}},"23852":{"varMapping":{"__isSmartRef__":true,"id":23853},"source":"function deleteSelectedScript() {\n\n var editor = this.objectEditorPane;\n var selection = editor.scriptList.selection;\n\n if (!editor.target || editor.scriptList.getList().size() < 2) \n return; \n\n var deleteScript = function (confirmed) {\n if (!confirmed) return;\n \n if (selection && editor.target) {\n if (!editor.target.hasOwnProperty(selection)) \n return;\n delete editor.target[selection];\n editor.updateLists();\n editor.displayInitialScript();\n }\n }\n\n var message = 'Delete \"' + selection + '\" script?';\n var callback = deleteScript;\n\n var dialog = new lively.morphic.ConfirmDialog(message, callback);\n\n return this.world().openDialog(dialog);\n}","funcProperties":{"__isSmartRef__":true,"id":23854},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23853":{"this":{"__isSmartRef__":true,"id":23801}},"23854":{"timestamp":{"__isSmartRef__":true,"id":23855},"user":"lauritz"},"23855":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:12:21 GMT+0100 (CET)"},"23856":{"submorphs":[{"__isSmartRef__":true,"id":23857}],"scripts":[],"id":"A7DC3ACF-3E36-4D7E-9B6B-86BDCEF438F4","shape":{"__isSmartRef__":true,"id":23872},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23888},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":23875},"lighterFill":{"__isSmartRef__":true,"id":23889},"label":{"__isSmartRef__":true,"id":23857},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":23898},"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":23899},"list":[],"renderContextTable":{"__isSmartRef__":true,"id":23900},"eventHandler":{"__isSmartRef__":true,"id":23901},"distanceToDragEvent":{"__isSmartRef__":true,"id":23902},"priorExtent":{"__isSmartRef__":true,"id":23903},"owner":{"__isSmartRef__":true,"id":22652},"textString":"","selection":{"__isSmartRef__":true,"id":23904},"_ClipMode":"visible","prevScroll":[0,0],"listMorph":null,"derivationIds":[221,"4AC64FBA-95AC-42B2-A078-B6DA97889093","E26ED0E6-C4CE-4C82-94D5-175270E8459E","D292F2FC-C2B6-48AE-B779-8CC5868FFA49","53A862EB-032C-4BF0-9B21-58C7E0C0A9B2","CC4D188B-510F-48DE-A0E1-EC8D2CD63F9F","0CD057F2-3517-4849-A69E-1EF79B05ACE8","66EBBB7D-8FA7-4D43-AE78-A18DA3B970BA","A50C1893-4138-4E29-865B-92F53F76D08A","1EC5D2B9-3539-419A-8DD6-CE82DEABB02C","95DC06D5-F4C7-49E2-8A01-110D1B0AFBD0"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23921},"__LivelyClassName__":"lively.morphic.Button"},"23857":{"submorphs":[],"scripts":[],"id":"4C9374A0-2DB2-4CBC-B08F-1480500267BB","shape":{"__isSmartRef__":true,"id":23858},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23864},"textColor":{"__isSmartRef__":true,"id":23861},"owner":{"__isSmartRef__":true,"id":23856},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":23865}],"padding":{"__isSmartRef__":true,"id":23867},"_Padding":{"__isSmartRef__":true,"id":23867},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":23868},"attributeConnections":[{"__isSmartRef__":true,"id":23869}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":23870},"eventHandler":{"__isSmartRef__":true,"id":23871},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":220,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[222,"30F054A3-7658-405B-8098-B7D87AA8A9ED","556D6E07-45B7-42EC-A486-DE275EF0B034","06B0B080-467A-46CC-8B0D-9C0A9B9A71F1","5E2D96C9-BB9B-4735-8673-A79847435197","B48AA022-2022-4A2A-9090-4D884FB3DFD3","8B2F743A-98C5-45E1-B03C-5019114EAC47","D09C56C3-A2DC-4BDF-B8A1-6365138ECD01","74158C3D-B79E-43E7-B111-48701B10ACE2","B19E117B-E40F-4B9F-86AC-BFB2AAFD5336","4E3B3D72-E52C-44ED-AE32-78939BA1ECFD"],"_TextColor":{"__isSmartRef__":true,"id":16777},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"23858":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":23859},"_Extent":{"__isSmartRef__":true,"id":23860},"_BorderColor":{"__isSmartRef__":true,"id":23861},"renderContextTable":{"__isSmartRef__":true,"id":23862},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23863},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"23859":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23860":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"23861":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23862":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"23863":{"x":0,"y":3,"width":0,"height":0,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global.lively.morphic.Graphics"},"23864":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23865":{"style":{"__isSmartRef__":true,"id":23866},"chunkOwner":{"__isSmartRef__":true,"id":23857},"storedString":"BasicGem","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23866":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"23867":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23868":{"x":220,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"23869":{"sourceObj":{"__isSmartRef__":true,"id":23857},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":23856},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"23870":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"23871":{"morph":{"__isSmartRef__":true,"id":23857},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"23872":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":23873},"_Extent":{"__isSmartRef__":true,"id":23874},"_Fill":{"__isSmartRef__":true,"id":23875},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":23885},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":23886},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23887},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"23873":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23874":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23875":{"stops":[{"__isSmartRef__":true,"id":23876},{"__isSmartRef__":true,"id":23878},{"__isSmartRef__":true,"id":23880},{"__isSmartRef__":true,"id":23882}],"vector":{"__isSmartRef__":true,"id":23884},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"23876":{"offset":0,"color":{"__isSmartRef__":true,"id":23877}},"23877":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23878":{"offset":0.4,"color":{"__isSmartRef__":true,"id":23879}},"23879":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23880":{"offset":0.6,"color":{"__isSmartRef__":true,"id":23881}},"23881":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23882":{"offset":1,"color":{"__isSmartRef__":true,"id":23883}},"23883":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23884":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23885":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23886":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"23887":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23888":{"x":240.1308656788165,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23889":{"stops":[{"__isSmartRef__":true,"id":23890},{"__isSmartRef__":true,"id":23892},{"__isSmartRef__":true,"id":23894},{"__isSmartRef__":true,"id":23896}],"vector":{"__isSmartRef__":true,"id":23884},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"23890":{"offset":0,"color":{"__isSmartRef__":true,"id":23891}},"23891":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23892":{"offset":0.4,"color":{"__isSmartRef__":true,"id":23893}},"23893":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23894":{"offset":0.6,"color":{"__isSmartRef__":true,"id":23895}},"23895":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23896":{"offset":1,"color":{"__isSmartRef__":true,"id":23897}},"23897":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23898":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23899":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"23900":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"23901":{"morph":{"__isSmartRef__":true,"id":23856},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"23902":{"x":122.93118375058827,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23903":{"x":220,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23904":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":23905},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23911},"_MaxTextWidth":580,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":23912},"showsHalos":false,"_FontSize":28,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":23913},"_TextColor":{"__isSmartRef__":true,"id":23914},"renderContextTable":{"__isSmartRef__":true,"id":23915},"textChunks":[{"__isSmartRef__":true,"id":23916}],"eventHandler":{"__isSmartRef__":true,"id":23918},"priorExtent":{"__isSmartRef__":true,"id":23919},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":580,"_MinTextHeight":null,"_Rotation":0,"_Scale":1.002003004005006,"previousSelection":[35,35],"priorSelectionRange":[23,23],"charsReplaced":"WIP / Proof of Concept","lastFindLoc":22,"distanceToDragEvent":{"__isSmartRef__":true,"id":23920},"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__LivelyClassName__":"lively.morphic.Text"},"23905":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":23906},"_Extent":{"__isSmartRef__":true,"id":23907},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":23908},"renderContextTable":{"__isSmartRef__":true,"id":23909},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23910},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"23906":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23907":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23908":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23909":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML"},"23910":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23911":{"x":37,"y":23,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23912":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23913":{"partsSpaceName":"PartsBin/Worlds/","__SourceModuleName__":"Global.lively.PartsBin","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"23914":{"r":0,"g":0.309,"b":0.595,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23915":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"23916":{"style":{"__isSmartRef__":true,"id":23917},"chunkOwner":{"__isSmartRef__":true,"id":23904},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk"},"23917":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"23918":{"morph":{"__isSmartRef__":true,"id":23904},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"23919":{"x":580,"y":43,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23920":{"x":221,"y":-12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23921":{"createListMorph":{"__isSmartRef__":true,"id":23922},"getList":{"__isSmartRef__":true,"id":23926},"removeList":{"__isSmartRef__":true,"id":23930},"reset":{"__isSmartRef__":true,"id":23934},"displayTopLevelMorphs":{"__isSmartRef__":true,"id":23938},"onMouseDown":{"__isSmartRef__":true,"id":23942},"setTargetOfPane":{"__isSmartRef__":true,"id":23950},"setTargetToListSelection":{"__isSmartRef__":true,"id":23954},"onBlur":{"__isSmartRef__":true,"id":23958},"setTarget":{"__isSmartRef__":true,"id":23966},"setTargetOnSelection":{"__isSmartRef__":true,"id":23970}},"23922":{"varMapping":{"__isSmartRef__":true,"id":23923},"source":"function createListMorph() {\n var items = this.getList();\n \n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n\n connect(listMorph, 'selection', this, 'setTargetToListSelection');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":23924},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23923":{"this":{"__isSmartRef__":true,"id":23856}},"23924":{"timestamp":{"__isSmartRef__":true,"id":23925},"user":"lauritz","tags":[]},"23925":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:55:41 GMT+0100 (CET)"},"23926":{"varMapping":{"__isSmartRef__":true,"id":23927},"source":"function getList() {\n var worldEntry = {\n isListItem: true,\n selectionString: 'World',\n string: 'World',\n value: this.world()\n };\n var list = this.world().indentedListItemsOfMorphNames();\n list.unshift(worldEntry);\n return list;\n}","funcProperties":{"__isSmartRef__":true,"id":23928},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23927":{"this":{"__isSmartRef__":true,"id":23856}},"23928":{"timestamp":{"__isSmartRef__":true,"id":23929},"user":"lauritz","tags":[]},"23929":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:12:23 GMT+0100 (CET)"},"23930":{"varMapping":{"__isSmartRef__":true,"id":23931},"source":"function removeList() {\n this.listMorph && this.listMorph.remove();\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":23932},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23931":{"this":{"__isSmartRef__":true,"id":23856}},"23932":{"timestamp":{"__isSmartRef__":true,"id":23933},"user":"lauritz","tags":[]},"23933":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:51:07 GMT+0100 (CET)"},"23934":{"varMapping":{"__isSmartRef__":true,"id":23935},"source":"function reset() {\n this.list = [];\n this.setLabel('empty');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":23936},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23935":{"this":{"__isSmartRef__":true,"id":23856}},"23936":{"timestamp":{"__isSmartRef__":true,"id":23937},"user":"lauritz","tags":[]},"23937":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:34:06 GMT+0100 (CET)"},"23938":{"varMapping":{"__isSmartRef__":true,"id":23939},"source":"function displayTopLevelMorphs() {\n var list = this.createListMorph(); \n if (this.getList().length === 0) return;\n this.addMorph(list);\n this.listMorph = list;\n}","funcProperties":{"__isSmartRef__":true,"id":23940},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23939":{"this":{"__isSmartRef__":true,"id":23856}},"23940":{"timestamp":{"__isSmartRef__":true,"id":23941},"user":"lauritz","tags":[]},"23941":{"isSerializedDate":true,"string":"Tue Dec 13 2011 18:53:20 GMT+0100 (CET)"},"23942":{"varMapping":{"__isSmartRef__":true,"id":23943},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n // clicked on morph, not the list, not the list's scrollbar\n if (evt.target === this.renderContext().shapeNode)\n this.removeList();\n } else {\n this.displayTopLevelMorphs();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23948},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23943":{"this":{"__isSmartRef__":true,"id":23856},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23944}},"23944":{"$super":{"__isSmartRef__":true,"id":23945}},"23945":{"varMapping":{"__isSmartRef__":true,"id":23946},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23947},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23946":{"obj":{"__isSmartRef__":true,"id":23856},"name":"onMouseDown"},"23947":{},"23948":{"timestamp":{"__isSmartRef__":true,"id":23949},"user":"lauritz","tags":[]},"23949":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:39 GMT+0100 (CET)"},"23950":{"varMapping":{"__isSmartRef__":true,"id":23951},"source":"function setTargetOfPane(selection) {\n this.owner.setTarget(selection);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":23952},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23951":{"this":{"__isSmartRef__":true,"id":23856}},"23952":{"timestamp":{"__isSmartRef__":true,"id":23953},"user":"lauritz","tags":[]},"23953":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:30:42 GMT+0100 (CET)"},"23954":{"varMapping":{"__isSmartRef__":true,"id":23955},"source":"function setTargetToListSelection() { \n var selection = this.listMorph.selection;\n this.removeList();\n if (!selection) return;\n if (this.owner.scriptPane.hasChanged()) {\n var that = this;\n var callback = function (confirmed) {\n if (confirmed) that.setTargetOfPane(selection);\n }\n this.owner.confirmUnsavedChanges(callback);\n } else {\n this.setTargetOfPane(selection);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23956},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23955":{"this":{"__isSmartRef__":true,"id":23856}},"23956":{"timestamp":{"__isSmartRef__":true,"id":23957},"user":"lauritz","tags":[]},"23957":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:06:48 GMT+0100 (CET)"},"23958":{"varMapping":{"__isSmartRef__":true,"id":23959},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23964},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23959":{"this":{"__isSmartRef__":true,"id":23856},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":23960}},"23960":{"$super":{"__isSmartRef__":true,"id":23961}},"23961":{"varMapping":{"__isSmartRef__":true,"id":23962},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":23963},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23962":{"obj":{"__isSmartRef__":true,"id":23856},"name":"onBlur"},"23963":{},"23964":{"timestamp":{"__isSmartRef__":true,"id":23965},"user":"lauritz","tags":[]},"23965":{"isSerializedDate":true,"string":"Wed Dec 07 2011 05:30:08 GMT+0100 (CET)"},"23966":{"varMapping":{"__isSmartRef__":true,"id":23967},"source":"function setTarget(target) {\n this.label.setTextString(target.getName() || target.toString());\n}","funcProperties":{"__isSmartRef__":true,"id":23968},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23967":{"this":{"__isSmartRef__":true,"id":23856}},"23968":{"timestamp":{"__isSmartRef__":true,"id":23969},"user":"lauritz","tags":[]},"23969":{"isSerializedDate":true,"string":"Wed Dec 07 2011 04:29:39 GMT+0100 (CET)"},"23970":{"varMapping":{"__isSmartRef__":true,"id":23971},"source":"function setTargetOnSelection() {\n if (this.listMorph && this.listMorph.renderContext() && this.listMorph.renderContext().listNode.value) {\n this.setTargetToListSelection();\n this.stopStepping();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":23972},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"23971":{"this":{"__isSmartRef__":true,"id":23856}},"23972":{"timestamp":{"__isSmartRef__":true,"id":23973},"user":"lauritz","tags":[]},"23973":{"isSerializedDate":true,"string":"Wed Dec 07 2011 06:12:06 GMT+0100 (CET)"},"23974":{"submorphs":[],"scripts":[],"id":"1DEF7F5B-C598-4119-B4E0-45C13E080316","shape":{"__isSmartRef__":true,"id":23975},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23981},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":23978},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText1","partsBinMetaInfo":{"__isSmartRef__":true,"id":23982},"textChunks":[{"__isSmartRef__":true,"id":23983}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":23985},"renderContextTable":{"__isSmartRef__":true,"id":23986},"eventHandler":{"__isSmartRef__":true,"id":23987},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":23988},"eventsAreIgnored":true,"owner":{"__isSmartRef__":true,"id":22652},"isCopyMorphRef":true,"morphRefId":27,"derivationIds":[223,"5E3A69EF-26C1-4D0D-B04C-8C3894017F56","14AB1B91-3ED6-49AE-AA58-47D18B6C569F","991D4A54-1FC4-4BC7-AA82-F814AC52CDE3","DB9B19F7-4390-4CE5-9B1D-62177CB8D605","8F7B2EE9-9538-4044-B75B-6A12F3108B70","4B9F9B4B-C7D3-418D-9AC9-10503A4EBF8E","324EE422-8C94-43CE-B964-A3150830C25F","36D1ECF9-591F-426B-A4F6-B337D7DB053B","CB52849C-BE64-4053-8D07-758F969F84EB","F1C241D4-A689-4DB7-942F-ADB5F39D9CAA"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"23975":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":23976},"_Extent":{"__isSmartRef__":true,"id":23977},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":23978},"renderContextTable":{"__isSmartRef__":true,"id":23979},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23980},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"23976":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23977":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"23978":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23979":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"23980":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23981":{"x":198.16434648623274,"y":12.911539589748486,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23982":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"23983":{"style":{"__isSmartRef__":true,"id":23984},"chunkOwner":{"__isSmartRef__":true,"id":23974},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Target:","__LivelyClassName__":"lively.morphic.TextChunk"},"23984":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"23985":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23986":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"23987":{"morph":{"__isSmartRef__":true,"id":23974},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"23988":{"x":41.065989525935834,"y":-10.506047005169194,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23989":{"submorphs":[],"scripts":[],"id":"5AC3B1BB-C2E9-4607-B919-EE8935D5ED0B","shape":{"__isSmartRef__":true,"id":23990},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":23996},"_MaxTextWidth":64.8979476392384,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":23993},"showsHalos":false,"_FontSize":9,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":23997},"textChunks":[{"__isSmartRef__":true,"id":23998}],"charsReplaced":"Scripts","lastFindLoc":-7,"priorSelectionRange":[0,7],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":24000},"renderContextTable":{"__isSmartRef__":true,"id":24001},"eventHandler":{"__isSmartRef__":true,"id":24002},"_WhiteSpaceHandling":"pre-wrap","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_MinTextWidth":64.8979476392384,"_MinTextHeight":null,"_ClipMode":"visible","draggingEnabled":false,"distanceToDragEvent":{"__isSmartRef__":true,"id":24003},"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":22652},"derivationIds":[224,"35EF8FE5-067D-45B6-AF21-77040F11D340","80DC09DD-22D4-4089-B5C3-857B32C9BE9B","EF080074-E6B9-47F3-A87F-26313B40C430","F6977801-C1A7-445C-9BF1-8A1019E202FB","8C9157AE-0343-4CFB-8186-1D5E05D2ECBE","DD3C23F8-6463-4EAE-959B-C486E27D9BDA","1E8D3752-D212-41F8-BC63-B094E0C80707","75C07D11-AE5D-4A36-B2D0-F2A6EA414E72","494AB1C0-2C09-49DE-B4AA-1F24DC7495FF","25199967-E3BA-4763-A704-37BD3152A5F7"],"_Rotation":0,"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"23990":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":23991},"_Extent":{"__isSmartRef__":true,"id":23992},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":23993},"renderContextTable":{"__isSmartRef__":true,"id":23994},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":23995},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"23991":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23992":{"x":64.8979476392384,"y":14,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"23993":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"23994":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"23995":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"23996":{"x":10,"y":12.911539589749026,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"23997":{"partsSpaceName":"PartsBin/NewWorld","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"23998":{"style":{"__isSmartRef__":true,"id":23999},"chunkOwner":{"__isSmartRef__":true,"id":23989},"__SourceModuleName__":"Global.lively.morphic.TextCore","storedString":"Tag:","__LivelyClassName__":"lively.morphic.TextChunk"},"23999":{"__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextEmphasis"},"24000":{"x":64.8979476392384,"y":14,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24001":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"24002":{"morph":{"__isSmartRef__":true,"id":23989},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24003":{"x":45.76052154281416,"y":-27.783027415339603,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24004":{"submorphs":[{"__isSmartRef__":true,"id":24005}],"scripts":[],"id":"4FB1847E-D0D3-4047-B53B-2305B5075846","shape":{"__isSmartRef__":true,"id":24019},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":24035},"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":24036},"lighterFill":{"__isSmartRef__":true,"id":24022},"label":{"__isSmartRef__":true,"id":24005},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.Widgets","padding":{"__isSmartRef__":true,"id":24045},"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":24046},"listMorph":null,"list":[],"renderContextTable":{"__isSmartRef__":true,"id":24047},"eventHandler":{"__isSmartRef__":true,"id":24048},"distanceToDragEvent":{"__isSmartRef__":true,"id":24049},"priorExtent":{"__isSmartRef__":true,"id":24050},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":22652},"setTargetToListSelection":"all","savedTextString":"all","derivationIds":[225,"7F83847B-D0B1-4A31-8601-43424B97C858","E08FC110-71D7-4FFD-B4A8-08F8147B95BA","5534107D-C5C9-48DD-A1ED-B87E9D9B672C","0B89FA7A-768C-4062-98AE-C455E8DAFF19","799320C6-CFBA-40E7-B03D-64BFE9B78248","9B650AA3-271B-4E72-B230-51C6F64B7462","C95D3672-724C-4C2C-9CDD-EF308062F627","C66EBEEC-B7CE-4DD9-8BDF-905F071F965D","D68B143A-A712-4FD0-8803-62CCB4C7F763","ED802271-AE5C-4BE9-AC4E-7CED44BC864B"],"_Rotation":0,"_Scale":1,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24051},"__LivelyClassName__":"lively.morphic.Button"},"24005":{"submorphs":[],"scripts":[],"id":"7BDFA945-5F54-4F30-9BB8-6E59682B1F03","shape":{"__isSmartRef__":true,"id":24006},"grabbingEnabled":false,"droppingEnabled":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":24011},"textColor":{"__isSmartRef__":true,"id":24009},"owner":{"__isSmartRef__":true,"id":24004},"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","textChunks":[{"__isSmartRef__":true,"id":24012}],"padding":{"__isSmartRef__":true,"id":24014},"_Padding":{"__isSmartRef__":true,"id":24014},"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":24015},"attributeConnections":[{"__isSmartRef__":true,"id":24016}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"renderContextTable":{"__isSmartRef__":true,"id":24017},"eventHandler":{"__isSmartRef__":true,"id":24018},"_HandStyle":"default","_PointerEvents":"none","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":130,"_MinTextHeight":null,"_Align":"left","_FontFamily":"Arial","_FontSize":10,"derivationIds":[226,"03DBF3F8-8EA2-4426-BA64-C4297DDAB015","B8F87302-BEC3-48CD-9BBA-6C7DBB6287E1","4AA6AE51-338B-4E3E-814B-9F99C693A2D5","08F6CE56-AD91-4C27-9429-C3DEA313696C","D39C963C-FD24-4498-A6D8-71E5102CE58A","132C2A9E-3466-4051-AAEA-6E485A91F408","DB8BC4A1-ED41-446B-AB6C-7E73DD857B5D","567FC668-A57C-41CB-8252-8912826B3144","D0B0775F-C8E7-49EB-BBB2-C7BB7DD464BF","AABED87D-D7C0-494A-8803-26F4601E35FF"],"_TextColor":{"__isSmartRef__":true,"id":16777},"_Scale":1,"__LivelyClassName__":"lively.morphic.Text"},"24006":{"borderWidth":0,"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":24007},"_Extent":{"__isSmartRef__":true,"id":24008},"_BorderColor":{"__isSmartRef__":true,"id":24009},"renderContextTable":{"__isSmartRef__":true,"id":24010},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":23863},"_BorderWidth":0,"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24007":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24008":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"24009":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24010":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24011":{"x":2,"y":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24012":{"style":{"__isSmartRef__":true,"id":24013},"chunkOwner":{"__isSmartRef__":true,"id":24005},"storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24013":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"24014":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24015":{"x":130,"y":20,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"24016":{"sourceObj":{"__isSmartRef__":true,"id":24005},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":24004},"targetMethodName":"selection","converter":null,"converterString":null,"updater":null,"updaterString":null,"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"24017":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"24018":{"morph":{"__isSmartRef__":true,"id":24005},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24019":{"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":24020},"_Extent":{"__isSmartRef__":true,"id":24021},"_Fill":{"__isSmartRef__":true,"id":24022},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24032},"_BorderRadius":5,"renderContextTable":{"__isSmartRef__":true,"id":24033},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":24034},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24020":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24021":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24022":{"stops":[{"__isSmartRef__":true,"id":24023},{"__isSmartRef__":true,"id":24025},{"__isSmartRef__":true,"id":24027},{"__isSmartRef__":true,"id":24029}],"vector":{"__isSmartRef__":true,"id":24031},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24023":{"offset":0,"color":{"__isSmartRef__":true,"id":24024}},"24024":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24025":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24026}},"24026":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24027":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24028}},"24028":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24029":{"offset":1,"color":{"__isSmartRef__":true,"id":24030}},"24030":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24031":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24032":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24033":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24034":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24035":{"x":39.12381412396891,"y":10.000000000000057,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24036":{"stops":[{"__isSmartRef__":true,"id":24037},{"__isSmartRef__":true,"id":24039},{"__isSmartRef__":true,"id":24041},{"__isSmartRef__":true,"id":24043}],"vector":{"__isSmartRef__":true,"id":24031},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24037":{"offset":0,"color":{"__isSmartRef__":true,"id":24038}},"24038":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24039":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24040}},"24040":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24041":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24042}},"24042":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24043":{"offset":1,"color":{"__isSmartRef__":true,"id":24044}},"24044":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24045":{"x":5,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24046":{"partsSpaceName":"PartsBin/Inputs/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"24047":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24048":{"morph":{"__isSmartRef__":true,"id":24004},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24049":{"x":85.7442776093583,"y":-11.582832083333244,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24050":{"x":130,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24051":{"createListMorph":{"__isSmartRef__":true,"id":24052},"getList":{"__isSmartRef__":true,"id":24056},"removeList":{"__isSmartRef__":true,"id":24060},"reset":{"__isSmartRef__":true,"id":24064},"onMouseUp":{"__isSmartRef__":true,"id":24068},"onBlur":{"__isSmartRef__":true,"id":24076},"setTag":{"__isSmartRef__":true,"id":24084}},"24052":{"varMapping":{"__isSmartRef__":true,"id":24053},"source":"function createListMorph() {\n var items = this.getList();\n\n var height = Math.min(this.owner.getExtent().y, items.length * 17);\n var extent = new Rectangle(0, this.getExtent().y, this.getExtent().x, height);\n\n var listMorph = new lively.morphic.List(extent);\n listMorph.setList(items);\n listMorph.setFontSize(10);\n\n listMorph.disableGrabbing();\n listMorph.disableDragging();\n \n connect(listMorph, 'selection', this, 'setTag');\n \n return listMorph;\n}","funcProperties":{"__isSmartRef__":true,"id":24054},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24053":{"this":{"__isSmartRef__":true,"id":24004}},"24054":{"timestamp":{"__isSmartRef__":true,"id":24055},"user":"lauritz","categories":[]},"24055":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:35:59 GMT+0100 (CET)"},"24056":{"varMapping":{"__isSmartRef__":true,"id":24057},"source":"function getList() {\n if (!this.owner.target) return [''];\n\n var target = this.owner.target;\n\n var tags = Functions.own(target).collect(function (each) {\n return target[each].tags || [];\n }).flatten().uniq();\n\n var sortedTags = tags.sortBy(function(name) { \n return name.toLowerCase() \n });\n \n sortedTags.unshift('all'); \n return sortedTags;\n}","funcProperties":{"__isSmartRef__":true,"id":24058},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24057":{"this":{"__isSmartRef__":true,"id":24004}},"24058":{"timestamp":{"__isSmartRef__":true,"id":24059},"user":"lauritz","tags":[]},"24059":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:25 GMT+0100 (CET)"},"24060":{"varMapping":{"__isSmartRef__":true,"id":24061},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":24062},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24061":{"this":{"__isSmartRef__":true,"id":24004}},"24062":{"timestamp":{"__isSmartRef__":true,"id":24063},"user":"lauritz","categories":[]},"24063":{"isSerializedDate":true,"string":"Thu Nov 17 2011 19:06:51 GMT+0100 (CET)"},"24064":{"varMapping":{"__isSmartRef__":true,"id":24065},"source":"function reset() {\n this.list = [];\n this.setLabel('all');\n this.label.setAlign('left');\n this.removeList();\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'})\n}","funcProperties":{"__isSmartRef__":true,"id":24066},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24065":{"this":{"__isSmartRef__":true,"id":24004}},"24066":{"timestamp":{"__isSmartRef__":true,"id":24067},"user":"lauritz","tags":[]},"24067":{"isSerializedDate":true,"string":"Fri Dec 16 2011 20:27:53 GMT+0100 (CET)"},"24068":{"varMapping":{"__isSmartRef__":true,"id":24069},"source":"function onMouseUp(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) return $super(evt);\n if (this.listMorph) {\n this.removeList();\n return true;\n } \n if (this.getList().size() < 2) return;\n var list = this.createListMorph();\n this.addMorph(list);\n this.listMorph = list;\n return true;\n}","funcProperties":{"__isSmartRef__":true,"id":24074},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24069":{"this":{"__isSmartRef__":true,"id":24004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24070}},"24070":{"$super":{"__isSmartRef__":true,"id":24071}},"24071":{"varMapping":{"__isSmartRef__":true,"id":24072},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24073},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24072":{"obj":{"__isSmartRef__":true,"id":24004},"name":"onMouseUp"},"24073":{},"24074":{"timestamp":{"__isSmartRef__":true,"id":24075},"user":"lauritz","categories":[]},"24075":{"isSerializedDate":true,"string":"Thu Nov 17 2011 18:59:16 GMT+0100 (CET)"},"24076":{"varMapping":{"__isSmartRef__":true,"id":24077},"source":"function onBlur(evt) {\n $super(evt);\n \n // workaround - otherwise other morphs get this event\n var clickedMorph = evt && evt.world && evt.world.clickedOnMorph;\n if (clickedMorph && (clickedMorph !== this && clickedMorph !== this.listMorph)) {\n this.removeList();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24082},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24077":{"this":{"__isSmartRef__":true,"id":24004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24078}},"24078":{"$super":{"__isSmartRef__":true,"id":24079}},"24079":{"varMapping":{"__isSmartRef__":true,"id":24080},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24081},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24080":{"obj":{"__isSmartRef__":true,"id":24004},"name":"onBlur"},"24081":{},"24082":{"timestamp":{"__isSmartRef__":true,"id":24083},"user":"lauritz","categories":[]},"24083":{"isSerializedDate":true,"string":"Mon Nov 21 2011 23:10:03 GMT+0100 (CET)"},"24084":{"varMapping":{"__isSmartRef__":true,"id":24085},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":24086},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24085":{"this":{"__isSmartRef__":true,"id":24004}},"24086":{"timestamp":{"__isSmartRef__":true,"id":24087},"user":"lauritz","categories":[]},"24087":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:36:12 GMT+0100 (CET)"},"24088":{"submorphs":[{"__isSmartRef__":true,"id":24089}],"scripts":[],"id":"F9BB905A-A034-4265-9F73-BCA00F39351C","shape":{"__isSmartRef__":true,"id":24104},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":24108},"lighterFill":{"__isSmartRef__":true,"id":24120},"label":{"__isSmartRef__":true,"id":24089},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":24129},"attributeConnections":[{"__isSmartRef__":true,"id":24130}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":24166},"renderContextTable":{"__isSmartRef__":true,"id":24167},"eventHandler":{"__isSmartRef__":true,"id":24168},"distanceToDragEvent":{"__isSmartRef__":true,"id":24169},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","87E42FF6-3862-481D-97D6-643676E15F32","4F370A81-5A80-4821-8ECC-D52B56F31E15","1C6D1DC9-2F9B-4DC4-B453-1CA45B17C516","0E8EC0BF-934B-410B-AEC2-0ECA8C8F774D","97086CE7-CD46-4035-A371-02A41D555A66"],"_Position":{"__isSmartRef__":true,"id":24170},"owner":{"__isSmartRef__":true,"id":22652},"layout":{"__isSmartRef__":true,"id":24171},"_ClipMode":"visible","_Rotation":0,"_Scale":0.994014980014994,"__LivelyClassName__":"lively.morphic.Button"},"24089":{"submorphs":[],"scripts":[],"id":"A97522EB-5B29-4A42-8797-5018C6E9F5A3","shape":{"__isSmartRef__":true,"id":24090},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":24096},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":24097},"_Padding":{"__isSmartRef__":true,"id":24098},"owner":{"__isSmartRef__":true,"id":24088},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":24099},"textChunks":[{"__isSmartRef__":true,"id":24100}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":24102},"eventHandler":{"__isSmartRef__":true,"id":24103},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","BA4EC8D2-AB29-4F9F-B5A0-715A4746A4C4","56735895-BA99-4D98-9866-AA5DBD86237E","81041CF7-31DB-4F65-BB39-FE438A4F266F","D03829B3-268E-40A0-A440-3E4BAC344F30","714637F0-714A-4833-909B-BA4AF1B4628B"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"24090":{"position":{"__isSmartRef__":true,"id":24091},"_Extent":{"__isSmartRef__":true,"id":24092},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24093},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":24094},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":24095},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24091":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24092":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"24093":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24094":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24095":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24096":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24097":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24098":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24099":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24100":{"style":{"__isSmartRef__":true,"id":24101},"chunkOwner":{"__isSmartRef__":true,"id":24089},"storedString":"run","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"24101":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"24102":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"24103":{"morph":{"__isSmartRef__":true,"id":24089},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24104":{"position":{"__isSmartRef__":true,"id":24105},"_Extent":{"__isSmartRef__":true,"id":24106},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":24107},"_Fill":{"__isSmartRef__":true,"id":24108},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":24118},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":24119},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24105":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24106":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24107":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24108":{"stops":[{"__isSmartRef__":true,"id":24109},{"__isSmartRef__":true,"id":24111},{"__isSmartRef__":true,"id":24113},{"__isSmartRef__":true,"id":24115}],"vector":{"__isSmartRef__":true,"id":24117},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24109":{"offset":0,"color":{"__isSmartRef__":true,"id":24110}},"24110":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24111":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24112}},"24112":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24113":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24114}},"24114":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24115":{"offset":1,"color":{"__isSmartRef__":true,"id":24116}},"24116":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24117":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24118":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24119":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24120":{"stops":[{"__isSmartRef__":true,"id":24121},{"__isSmartRef__":true,"id":24123},{"__isSmartRef__":true,"id":24125},{"__isSmartRef__":true,"id":24127}],"vector":{"__isSmartRef__":true,"id":24117},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24121":{"offset":0,"color":{"__isSmartRef__":true,"id":24122}},"24122":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24123":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24124}},"24124":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24125":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24126}},"24126":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24127":{"offset":1,"color":{"__isSmartRef__":true,"id":24128}},"24128":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24129":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"24130":{"sourceObj":{"__isSmartRef__":true,"id":24088},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":22652},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":24131},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"24131":{"submorphs":[{"__isSmartRef__":true,"id":24132}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24147},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","renderContextTable":{"__isSmartRef__":true,"id":24154},"eventHandler":{"__isSmartRef__":true,"id":24155},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":24156},{"__isSmartRef__":true,"id":24157}],"con":{"__isSmartRef__":true,"id":24130},"showsMorphMenu":true,"showsHalos":false,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24158},"__LivelyClassName__":"lively.morphic.Path"},"24132":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":24133},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","renderContextTable":{"__isSmartRef__":true,"id":24144},"eventHandler":{"__isSmartRef__":true,"id":24145},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":24146},"owner":{"__isSmartRef__":true,"id":24131},"_Rotation":-3.130064002485303,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"24133":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":24134},{"__isSmartRef__":true,"id":24135},{"__isSmartRef__":true,"id":24136},{"__isSmartRef__":true,"id":24137}],"renderContextTable":{"__isSmartRef__":true,"id":24138},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":24139},"_Extent":{"__isSmartRef__":true,"id":24140},"_Padding":{"__isSmartRef__":true,"id":24141},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24142},"_Fill":{"__isSmartRef__":true,"id":24143},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"24134":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"24135":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24136":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24137":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24138":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"24139":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24140":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24141":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24142":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24143":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24144":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24145":{"morph":{"__isSmartRef__":true,"id":24132},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24146":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24147":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":24148},{"__isSmartRef__":true,"id":24149}],"renderContextTable":{"__isSmartRef__":true,"id":24150},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":24151},"_Extent":{"__isSmartRef__":true,"id":24152},"_Padding":{"__isSmartRef__":true,"id":24153},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24142},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"24148":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"24149":{"isAbsolute":true,"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24150":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"24151":{"x":-1,"y":-1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24152":{"x":831,"y":11,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24153":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24154":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24155":{"morph":{"__isSmartRef__":true,"id":24131},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24156":{"morph":{"__isSmartRef__":true,"id":24131},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"24157":{"morph":{"__isSmartRef__":true,"id":24131},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":24132},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"24158":{"morphMenuItems":{"__isSmartRef__":true,"id":24159}},"24159":{"varMapping":{"__isSmartRef__":true,"id":24160},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":24165},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24160":{"this":{"__isSmartRef__":true,"id":24131},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24161}},"24161":{"$super":{"__isSmartRef__":true,"id":24162}},"24162":{"varMapping":{"__isSmartRef__":true,"id":24163},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24164},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24163":{"obj":{"__isSmartRef__":true,"id":24131},"name":"morphMenuItems"},"24164":{},"24165":{},"24166":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24167":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24168":{"morph":{"__isSmartRef__":true,"id":24088},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24169":{"x":71.99397894387357,"y":-13.030105280631261,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24170":{"x":788.7426780861911,"y":9.508591852040126,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24171":{"centeredHorizontal":false,"moveHorizontal":true},"24172":{"submorphs":[{"__isSmartRef__":true,"id":24173}],"scripts":[],"id":"B1C58160-B894-4591-91C6-765EFA090D04","shape":{"__isSmartRef__":true,"id":24188},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":24192},"lighterFill":{"__isSmartRef__":true,"id":24204},"label":{"__isSmartRef__":true,"id":24173},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":24213},"attributeConnections":[{"__isSmartRef__":true,"id":24214}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":24250},"renderContextTable":{"__isSmartRef__":true,"id":24251},"eventHandler":{"__isSmartRef__":true,"id":24252},"distanceToDragEvent":{"__isSmartRef__":true,"id":24253},"derivationIds":[7251,"BE69DA70-C9C3-4495-A6B5-413BD2FFA0D1","79FE3D3F-77C4-4B39-8243-D672185B416D","A4D2FEDF-2654-4381-AB43-8F89B9CA2E86","D686F0CB-027B-4CA9-8B8D-9306389B219D","F51327CB-803E-4234-BFB3-6F5252D1C936","A79280E8-6AE3-4016-AF47-CE78F71924C6","B05829EB-D452-4D81-983B-E2CE425C8260","32B117E5-52D8-4843-B80E-090B9817E099","49AC923E-5272-4E3C-8F02-4F2AED2BC4E9"],"layout":{"__isSmartRef__":true,"id":24254},"_Position":{"__isSmartRef__":true,"id":24255},"owner":{"__isSmartRef__":true,"id":22652},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9880657804942089,"__LivelyClassName__":"lively.morphic.Button"},"24173":{"submorphs":[],"scripts":[],"id":"13C52969-01FF-4CB3-AAFF-6C24FBC0D19A","shape":{"__isSmartRef__":true,"id":24174},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":24180},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":24181},"_Padding":{"__isSmartRef__":true,"id":24182},"owner":{"__isSmartRef__":true,"id":24172},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":24183},"textChunks":[{"__isSmartRef__":true,"id":24184}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":24186},"eventHandler":{"__isSmartRef__":true,"id":24187},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"E0EF3EFE-3ADF-4E46-8705-7BF444E4BCED","307A3596-1175-4EA6-AA27-5BA4C9D95AB7","0EF99131-C569-4C2C-B613-E0D8423C1334","9AECBFB8-25A5-483F-86AD-D7CF9ABC9A25","918C6CC4-3540-4341-BAFD-B195F7807FEE","5AABB138-5EE8-40A5-AB3C-5A9625D0A353","4529D79B-4CC5-467E-91F8-661C3A5F49F8","1E5E570C-FD42-45E3-A7F6-768BB14ACD14","A13FB4E0-72F2-4E7C-A861-EDCBA1393860"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"24174":{"position":{"__isSmartRef__":true,"id":24175},"_Extent":{"__isSmartRef__":true,"id":24176},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24177},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":24178},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":24179},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24175":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24176":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"24177":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24178":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24179":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24180":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24181":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24182":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24183":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24184":{"style":{"__isSmartRef__":true,"id":24185},"chunkOwner":{"__isSmartRef__":true,"id":24173},"storedString":"save","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"24185":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"24186":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"24187":{"morph":{"__isSmartRef__":true,"id":24173},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24188":{"position":{"__isSmartRef__":true,"id":24189},"_Extent":{"__isSmartRef__":true,"id":24190},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":24191},"_Fill":{"__isSmartRef__":true,"id":24192},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":24202},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":24203},"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24189":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24190":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24191":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24192":{"stops":[{"__isSmartRef__":true,"id":24193},{"__isSmartRef__":true,"id":24195},{"__isSmartRef__":true,"id":24197},{"__isSmartRef__":true,"id":24199}],"vector":{"__isSmartRef__":true,"id":24201},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24193":{"offset":0,"color":{"__isSmartRef__":true,"id":24194}},"24194":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24195":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24196}},"24196":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24197":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24198}},"24198":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24199":{"offset":1,"color":{"__isSmartRef__":true,"id":24200}},"24200":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24201":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24202":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24203":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24204":{"stops":[{"__isSmartRef__":true,"id":24205},{"__isSmartRef__":true,"id":24207},{"__isSmartRef__":true,"id":24209},{"__isSmartRef__":true,"id":24211}],"vector":{"__isSmartRef__":true,"id":24201},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24205":{"offset":0,"color":{"__isSmartRef__":true,"id":24206}},"24206":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24207":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24208}},"24208":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24209":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24210}},"24210":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24211":{"offset":1,"color":{"__isSmartRef__":true,"id":24212}},"24212":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24213":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"24214":{"sourceObj":{"__isSmartRef__":true,"id":24172},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":23148},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":24215},"__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"24215":{"submorphs":[{"__isSmartRef__":true,"id":24216}],"scripts":[],"shape":{"__isSmartRef__":true,"id":24231},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","renderContextTable":{"__isSmartRef__":true,"id":24238},"eventHandler":{"__isSmartRef__":true,"id":24239},"droppingEnabled":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":24240},{"__isSmartRef__":true,"id":24241}],"con":{"__isSmartRef__":true,"id":24214},"showsMorphMenu":true,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24242},"__LivelyClassName__":"lively.morphic.Path"},"24216":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":24217},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","renderContextTable":{"__isSmartRef__":true,"id":24228},"eventHandler":{"__isSmartRef__":true,"id":24229},"droppingEnabled":true,"halosEnabled":true,"_Position":{"__isSmartRef__":true,"id":24230},"owner":{"__isSmartRef__":true,"id":24215},"_Rotation":3.077607197692381,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.Path"},"24217":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":24218},{"__isSmartRef__":true,"id":24219},{"__isSmartRef__":true,"id":24220},{"__isSmartRef__":true,"id":24221}],"renderContextTable":{"__isSmartRef__":true,"id":24222},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":24223},"_Extent":{"__isSmartRef__":true,"id":24224},"_Padding":{"__isSmartRef__":true,"id":24225},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24226},"_Fill":{"__isSmartRef__":true,"id":24227},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"24218":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"24219":{"isAbsolute":true,"x":-12,"y":6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24220":{"isAbsolute":true,"x":4,"y":0,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24221":{"isAbsolute":true,"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24222":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"24223":{"x":-12,"y":-6,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24224":{"x":16,"y":12,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24225":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24226":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24227":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24228":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24229":{"morph":{"__isSmartRef__":true,"id":24216},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24230":{"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24231":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":24232},{"__isSmartRef__":true,"id":24233}],"renderContextTable":{"__isSmartRef__":true,"id":24234},"_ClipMode":"visible","_Position":{"__isSmartRef__":true,"id":24235},"_Extent":{"__isSmartRef__":true,"id":24236},"_Padding":{"__isSmartRef__":true,"id":24237},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24226},"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.Path"},"24232":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.MoveTo"},"24233":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__SourceModuleName__":"Global.lively.morphic.PathShapes","__LivelyClassName__":"lively.morphic.Shapes.LineTo"},"24234":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML","setClipMode":"setClipModeHTML","getPathNode":"getPathNodeHTML","setPathElements":"setPathElementsHTML","getPathBounds":"getPathBoundsHTML","getTotalLength":"getTotalLengthHTML","getPointAtTotalLength":"getPointAtTotalLengthHTML"},"24235":{"x":200,"y":9,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24236":{"x":480,"y":32,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24237":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24238":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24239":{"morph":{"__isSmartRef__":true,"id":24215},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24240":{"morph":{"__isSmartRef__":true,"id":24215},"index":0,"connectedMagnet":null,"__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"24241":{"morph":{"__isSmartRef__":true,"id":24215},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":24216},"markerDirection":"prev","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","__LivelyClassName__":"lively.morphic.ControlPoint"},"24242":{"morphMenuItems":{"__isSmartRef__":true,"id":24243}},"24243":{"varMapping":{"__isSmartRef__":true,"id":24244},"source":"function morphMenuItems() {\n var visualConnector = this, con = this.con, world = this.world();\n var items = [\n ['edit converter', function() {\n var source = con.converterString ||\n 'function converter(value) {\\n return value\\n}',\n editor = new lively.morphic.Text(new Rectangle(0,0, 400, 200), source);\n editor.doitContext = con;\n connect(editor, 'savedTextString', con, 'converterString', {updater:\n function($upd, source) { this.targetObj.converter = null; $upd(source) }});\n connect(editor, 'savedTextString', world, 'alertOK', {converter:\n function() { return 'setting new converter' }})\n editor.applyStyle({syntaxHighlighting: true,\n fontFamily: 'Courier', resizeWidth: true, resizeHeight: true});\n var title = con.targetObj.name && con.sourceObj.name ?\n 'Editor for ' + con.targetObj.name + ' -> ' + con.sourceObj.name :\n 'Editor for converter function';\n var window = world.addFramedMorph(editor, title)\n window.align(window.bounds().topCenter(),\n visualConnector.bounds().bottomCenter())\n }],\n ['hide', function() {\n visualConnector.disconnectFromMagnets();\n visualConnector.remove();\n }],\n ['disconnect', function() {\n alertOK('Disconnected ' + visualConnector.con);\n visualConnector.con.visualDisconnect();\n }],\n ['cancel', function() {}],\n ];\n return items;\n }","funcProperties":{"__isSmartRef__":true,"id":24249},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24244":{"this":{"__isSmartRef__":true,"id":24215},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":24245}},"24245":{"$super":{"__isSmartRef__":true,"id":24246}},"24246":{"varMapping":{"__isSmartRef__":true,"id":24247},"source":"function () {\n try {\n return obj.constructor.prototype[name].apply(obj, arguments)\n } catch(e) {\n alert('Error in $super call: ' + e + '\\n' + e.stack);\n return null;\n }\n }","funcProperties":{"__isSmartRef__":true,"id":24248},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24247":{"obj":{"__isSmartRef__":true,"id":24215},"name":"morphMenuItems"},"24248":{},"24249":{},"24250":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24251":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24252":{"morph":{"__isSmartRef__":true,"id":24172},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24253":{"x":68.77671624028653,"y":-14.497241813457947,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24254":{"centeredHorizontal":false,"moveHorizontal":true},"24255":{"x":675.4189853444968,"y":9.53851695196505,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24256":{"submorphs":[{"__isSmartRef__":true,"id":24257}],"scripts":[],"id":"2A2E61B3-97F1-4A77-AF9A-2CE3BC550030","shape":{"__isSmartRef__":true,"id":24272},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":24288},"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":24276},"lighterFill":{"__isSmartRef__":true,"id":24289},"label":{"__isSmartRef__":true,"id":24257},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":24298},"attributeConnections":[{"__isSmartRef__":true,"id":24299}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"__SourceModuleName__":"Global.lively.morphic.Widgets","priorExtent":{"__isSmartRef__":true,"id":24300},"renderContextTable":{"__isSmartRef__":true,"id":24301},"eventHandler":{"__isSmartRef__":true,"id":24302},"distanceToDragEvent":{"__isSmartRef__":true,"id":24303},"derivationIds":[7251,"84054D2E-8176-440D-B413-279956A34FC2","79434046-F834-490E-B705-0CE871D9E8B3","FF38CA79-C0DF-4F2F-8FC3-407571EF6A54","B1D50332-9F4F-4F7C-AC3F-95DC6C73EAA4","5B8D7C39-987A-4849-BFFD-3F316CE03852"],"owner":{"__isSmartRef__":true,"id":22652},"_ClipMode":"visible","_Rotation":0,"_Scale":0.9940149800149939,"__LivelyClassName__":"lively.morphic.Button"},"24257":{"submorphs":[],"scripts":[],"id":"515F639D-AD66-487E-BC09-6BC03ABBF647","shape":{"__isSmartRef__":true,"id":24258},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":24264},"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"padding":{"__isSmartRef__":true,"id":24265},"_Padding":{"__isSmartRef__":true,"id":24266},"owner":{"__isSmartRef__":true,"id":24256},"isLabel":true,"eventsAreIgnored":true,"__SourceModuleName__":"Global.lively.morphic.TextCore","_ClipMode":"hidden","priorExtent":{"__isSmartRef__":true,"id":24267},"textChunks":[{"__isSmartRef__":true,"id":24268}],"_Align":"center","renderContextTable":{"__isSmartRef__":true,"id":24270},"eventHandler":{"__isSmartRef__":true,"id":24271},"_HandStyle":"default","_PointerEvents":"none","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[7252,"0A0A6CB1-BD92-4F39-A425-2EB3D2D4CBA2","CB475566-05CE-43E2-B04D-EE32BC4CB718","6BB077CE-92E6-47BE-BE88-9A48488562D1","9E359973-2FDB-417B-BB06-AB34D52BD310","58F098ED-A190-44F2-B73E-80802B2CF2F6"],"_MinTextWidth":97,"_MinTextHeight":null,"__LivelyClassName__":"lively.morphic.Text"},"24258":{"position":{"__isSmartRef__":true,"id":24259},"_Extent":{"__isSmartRef__":true,"id":24260},"_BorderWidth":0,"_BorderColor":{"__isSmartRef__":true,"id":24261},"_Fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":24262},"_ClipMode":"hidden","_Padding":{"__isSmartRef__":true,"id":24263},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24259":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24260":{"x":101,"y":21,"__LivelyClassName__":"Point","__SourceModuleName__":"Global.lively.morphic.Graphics"},"24261":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24262":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24263":{"x":2,"y":2,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24264":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24265":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24266":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24267":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24268":{"style":{"__isSmartRef__":true,"id":24269},"chunkOwner":{"__isSmartRef__":true,"id":24257},"storedString":"Tests","__SourceModuleName__":"Global.lively.morphic.TextCore","__LivelyClassName__":"lively.morphic.TextChunk"},"24269":{"__SourceModuleName__":"Global.lively.morphic.TextCore","textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis"},"24270":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","setMinTextWidth":"setMinTextWidthHTML","setMinTextHeight":"setMinTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","unignoreTextEvents":"unignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setFontWeight":"setFontWeightHTML","setFontStyle":"setFontStyleHTML","setTextDecoration":"setTextDecorationHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML","setInputAllowed":"setInputAllowedHTML"},"24271":{"morph":{"__isSmartRef__":true,"id":24257},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24272":{"position":{"__isSmartRef__":true,"id":24273},"_Extent":{"__isSmartRef__":true,"id":24274},"_BorderWidth":1.1840000000000002,"_BorderColor":{"__isSmartRef__":true,"id":24275},"_Fill":{"__isSmartRef__":true,"id":24276},"_BorderRadius":5.2,"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":24286},"_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":24287},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24273":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24274":{"x":101,"y":21,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24275":{"r":0.839,"g":0.839,"b":0.839,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24276":{"stops":[{"__isSmartRef__":true,"id":24277},{"__isSmartRef__":true,"id":24279},{"__isSmartRef__":true,"id":24281},{"__isSmartRef__":true,"id":24283}],"vector":{"__isSmartRef__":true,"id":24285},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24277":{"offset":0,"color":{"__isSmartRef__":true,"id":24278}},"24278":{"r":0.9600000000000001,"g":0.9600000000000001,"b":0.9600000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24279":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24280}},"24280":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24281":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24282}},"24282":{"r":0.8200000000000001,"g":0.8200000000000001,"b":0.8200000000000001,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24283":{"offset":1,"color":{"__isSmartRef__":true,"id":24284}},"24284":{"r":0.94,"g":0.94,"b":0.94,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24285":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24286":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24287":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24288":{"x":510,"y":10,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24289":{"stops":[{"__isSmartRef__":true,"id":24290},{"__isSmartRef__":true,"id":24292},{"__isSmartRef__":true,"id":24294},{"__isSmartRef__":true,"id":24296}],"vector":{"__isSmartRef__":true,"id":24285},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"24290":{"offset":0,"color":{"__isSmartRef__":true,"id":24291}},"24291":{"r":0.98,"g":0.98,"b":0.98,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24292":{"offset":0.4,"color":{"__isSmartRef__":true,"id":24293}},"24293":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24294":{"offset":0.6,"color":{"__isSmartRef__":true,"id":24295}},"24295":{"r":0.91,"g":0.91,"b":0.91,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24296":{"offset":1,"color":{"__isSmartRef__":true,"id":24297}},"24297":{"r":0.97,"g":0.97,"b":0.97,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24298":{"partsSpaceName":"PartsBin/Inputs","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"24299":{"sourceObj":{"__isSmartRef__":true,"id":24256},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":22652},"targetMethodName":"openPartTestRunner","__SourceModuleName__":"Global.lively.bindings","__LivelyClassName__":"AttributeConnection"},"24300":{"x":101,"y":20,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24301":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24302":{"morph":{"__isSmartRef__":true,"id":24256},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24303":{"x":65.95178327801523,"y":-8.024108360992386,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24304":{"target":{"__isSmartRef__":true,"id":22652},"selector":"update","args":[],"stopped":true,"tickTime":500,"currentTimeout":10395,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"24305":{"position":{"__isSmartRef__":true,"id":24306},"_Extent":{"__isSmartRef__":true,"id":24307},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":24308},"_Fill":{"__isSmartRef__":true,"id":24309},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":24310},"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","_Padding":{"__isSmartRef__":true,"id":24311},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"24306":{"x":0,"y":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24307":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24308":{"r":0.372,"g":0.369,"b":0.372,"a":1,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Color"},"24309":{"r":1,"g":1,"b":1,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global.lively.morphic.Graphics"},"24310":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setPadding":"setPaddingHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"24311":{"x":0,"y":0,"width":0,"height":0,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Rectangle"},"24312":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":24313}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"24313":{"date":{"__isSmartRef__":true,"id":24314},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"24314":{"isSerializedDate":true,"string":"Fri Oct 21 2011 00:39:30 GMT+0200 (CEST)"},"24315":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","onRenderFinished":"onRenderFinishedHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","adjustOrigin":"adjustOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","showsVerticalScrollBar":"showsVerticalScrollBarHTML","showsHorizontalScrollBar":"showsHorizontalScrollBarHTML","getScrollBarExtent":"getScrollBarExtentHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"24316":{"morph":{"__isSmartRef__":true,"id":22652},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"24317":{"x":909.0285365288845,"y":526.612532614436,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24318":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"24319":{"x":350.2386236582805,"y":-3.2455173507596555,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24320":{"x":0.971126750461849,"y":21.45669012569269,"__SourceModuleName__":"Global.lively.morphic.Graphics","__LivelyClassName__":"Point"},"24321":{},"24322":{"displayInitialScript":{"__isSmartRef__":true,"id":24323},"displayJavaScriptSource":{"__isSmartRef__":true,"id":24327},"displaySourceForConnection":{"__isSmartRef__":true,"id":24331},"displaySourceForScript":{"__isSmartRef__":true,"id":24335},"generateSourceForConnection":{"__isSmartRef__":true,"id":24339},"generateSourceForScript":{"__isSmartRef__":true,"id":24343},"generateTargetCode":{"__isSmartRef__":true,"id":24347},"newConnection":{"__isSmartRef__":true,"id":24351},"newScript":{"__isSmartRef__":true,"id":24355},"reset":{"__isSmartRef__":true,"id":24359},"selectChangedContent":{"__isSmartRef__":true,"id":24363},"setTarget":{"__isSmartRef__":true,"id":24367},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":24371},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":24375},"updateLists":{"__isSmartRef__":true,"id":24379},"onShutdown":{"__isSmartRef__":true,"id":24383},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":24387},"update":{"__isSmartRef__":true,"id":24391},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":24395},"migrateOldScriptAnnotations":{"__isSmartRef__":true,"id":24399},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":24403},"printTags":{"__isSmartRef__":true,"id":24411},"setTag":{"__isSmartRef__":true,"id":24415},"runScript":{"__isSmartRef__":true,"id":24419},"openPartTestRunner":{"__isSmartRef__":true,"id":24423}},"24323":{"varMapping":{"__isSmartRef__":true,"id":24324},"source":"function displayInitialScript() {\n if (this.scriptList.getList().size() > 1) {\n this.scriptList.preselectItem();\n } else if (this.connectionList.getList().size() > 1) {\n this.connectionList.preselectItem();\n } else {\n this.scriptList.selectAt(0);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24325},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24324":{"this":{"__isSmartRef__":true,"id":22652}},"24325":{"timestamp":{"__isSmartRef__":true,"id":24326},"user":"lauritz","tags":[]},"24326":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:13:43 GMT+0100 (CET)"},"24327":{"varMapping":{"__isSmartRef__":true,"id":24328},"source":"function displayJavaScriptSource(jsCode) {\n if (this.scriptPane.hasChanged()) {\n var that = this;\n var callback = function(confirmed) {\n if (confirmed) that.scriptPane.display(jsCode)\n };\n this.confirmUnsavedChanges(callback);\n } else {\n this.scriptPane.display(jsCode);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24329},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24328":{"this":{"__isSmartRef__":true,"id":22652}},"24329":{"timestamp":{"__isSmartRef__":true,"id":24330},"user":"lauritz","tags":[]},"24330":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"24331":{"varMapping":{"__isSmartRef__":true,"id":24332},"source":"function displaySourceForConnection(connection) {\n var code = \"\", that = this;\n if (connection === undefined) return;\n if (connection === null) {\n this.sortedConnectionNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForConnection(each[1])).concat(\"\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForConnection(connection);\n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":24333},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24332":{"this":{"__isSmartRef__":true,"id":22652}},"24333":{"timestamp":{"__isSmartRef__":true,"id":24334},"user":"conradcalmez","tags":[]},"24334":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:59:30 GMT+0100 (CET)"},"24335":{"varMapping":{"__isSmartRef__":true,"id":24336},"source":"function displaySourceForScript(scriptName) {\n var code = \"\",\n that = this;\n if (scriptName === null) {\n this.sortedScriptNamesOfObj(this.target).forEach(function(each) {\n code = code.concat(that.generateSourceForScript(each)).concat(\"\\n\\n\\n\");\n });\n code = code.substring(0, code.length - \"\\n\\n\\n\".length - 1);\n } else {\n code = this.generateSourceForScript(scriptName); \n }\n this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":24337},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24336":{"this":{"__isSmartRef__":true,"id":22652}},"24337":{"timestamp":{"__isSmartRef__":true,"id":24338},"user":"lauritz","tags":[]},"24338":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:51:37 GMT+0100 (CET)"},"24339":{"varMapping":{"__isSmartRef__":true,"id":24340},"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":24341},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24340":{"this":{"__isSmartRef__":true,"id":22652}},"24341":{"timestamp":{"__isSmartRef__":true,"id":24342},"user":"lauritz","tags":[]},"24342":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"24343":{"varMapping":{"__isSmartRef__":true,"id":24344},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (script.timestamp && script.user) \n annotation = Strings.format('// changed at %s by %s \\n', script.timestamp, script.user);\n scriptSource = Strings.format('this.addScript(%s)', script.getOriginal());\n tagScript = Strings.format('.tag(%s);', this.printTags(script));\n\n return annotation + scriptSource + tagScript;\n}","funcProperties":{"__isSmartRef__":true,"id":24345},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24344":{"this":{"__isSmartRef__":true,"id":22652}},"24345":{"timestamp":{"__isSmartRef__":true,"id":24346},"user":"lauritz","tags":[]},"24346":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:32:42 GMT+0100 (CET)"},"24347":{"varMapping":{"__isSmartRef__":true,"id":24348},"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":24349},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24348":{"this":{"__isSmartRef__":true,"id":22652}},"24349":{"timestamp":{"__isSmartRef__":true,"id":24350},"user":"lauritz","tags":[]},"24350":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"24351":{"varMapping":{"__isSmartRef__":true,"id":24352},"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":24353},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24352":{"this":{"__isSmartRef__":true,"id":22652}},"24353":{"timestamp":{"__isSmartRef__":true,"id":24354},"user":"lauritz","tags":[]},"24354":{"isSerializedDate":true,"string":"Thu Nov 17 2011 04:59:26 GMT+0100 (CET)"},"24355":{"varMapping":{"__isSmartRef__":true,"id":24356},"source":"function newScript() {\n if (this.target) {\n var code = \"this.addScript(function SCRIPTNAME() {\\n \\n}).tag([]);\";\n this.displayJavaScriptSource(code);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":24357},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24356":{"this":{"__isSmartRef__":true,"id":22652}},"24357":{"timestamp":{"__isSmartRef__":true,"id":24358},"user":"lauritz","tags":[]},"24358":{"isSerializedDate":true,"string":"Tue Nov 29 2011 04:24:25 GMT+0100 (CET)"},"24359":{"varMapping":{"__isSmartRef__":true,"id":24360},"source":"function reset() {\n this.scriptPane = this.get('ObjectEditorScriptPane')\n this.scriptList = this.get('ObjectEditorScriptList')\n this.connectionList = this.get('ObjectEditorConnectionList')\n this.morphSelector = this.get('ObjectEditorMorphSelector')\n this.target = null;\n this.scriptPane.reset();\n this.scriptList.setList();\n this.scriptList.selection = null;\n this.connectionList.setList();\n this.connectionList.selection = null;\n this.morphSelector.reset();\n this.tagChooser.reset();\n this.currentTag = null;\n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":24361},"__SourceModuleName__":"Global.lively.lang.Closure","__LivelyClassName__":"lively.Closure"},"24360":{"this":{"__isSmartRef__":true,"id":22652}},"24361":{"timestamp":{"__isSmartRef__":true,"id":24362},"user":"conradcalmez","tags":[]},"24362":{"isSerializedDate":true,"string":"Thu Feb 02 2012 14:57:50 GMT+0100 (CET)"},"24363":{"varMapping":{"__isSmartRef__":true,"id":24364},"source":"function selectChangedContent(source) {\n\n var addScriptRegex = /this\\.addScript\\s*\\(\\s*function\\s*([^\\(]*)/g;\n var addScriptMatches = [];\n var addScriptMatch = addScriptRegex.exec(source);\n while (addScriptMatch) {\n addScriptMatches.push(addScriptMatch[1]);\n addScriptMatch = addScriptRegex.exec(source);\n }\n \n // if scripts were added, select either a specific one or all\n if (addScriptMatches.length > 0) { \n if (addScriptMatches.length === 1) {\n return this.scriptList.selectAddedScript(addScriptMatches[0]);\n }\n return this.scriptList.selectAt(0);\n }\n\n var connectionRegex = \n /connect\\(\\s*([^,]*)\\s*,\\s*\"([^,]*)\"\\s*,\\s*([^,]*)\\s*,\\s*\"([^,]*)\"/g;\n var connectionMatches = [];\n var connectionMatch = connectionRegex.exec(source);\n while (connectionMatch) {\n connectionMatches.push(connectionMatch);\n connectionMatch = connectionRegex.exec(source);\n }\n\n // if connections were made, select either a specific one or all\n if (connectionMatches.length > 0) {\n if (connectionMatches.length === 1) {\n var match = connectionMatches[0];\n for (var i=0; i