{"id":0,"registry":{"0":{"submorphs":[],"scripts":[],"id":2544,"shape":{"__isSmartRef__":true,"id":1},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":430,"_MaxTextHeight":null,"textColor":{"__isSmartRef__":true,"id":7},"showsHalos":false,"_FontSize":11,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"JSONPrinter","partsBinMetaInfo":{"__isSmartRef__":true,"id":8},"textChunks":[{"__isSmartRef__":true,"id":9}],"charsReplaced":"1","lastFindLoc":2,"priorSelectionRange":[0,0],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":11},"renderContextTable":{"__isSmartRef__":true,"id":12},"eventHandler":{"__isSmartRef__":true,"id":13},"magnets":[{"__isSmartRef__":true,"id":14}],"attributeConnections":[{"__isSmartRef__":true,"id":16}],"doNotSerialize":["$$value"],"doNotCopyProperties":["$$value"],"layout":{"__isSmartRef__":true,"id":21},"savedTextString":"[1,2]\n","_Padding":{"__isSmartRef__":true,"id":22},"connections":{"__isSmartRef__":true,"id":23},"value":[1,2],"_Position":{"__isSmartRef__":true,"id":25},"_Scale":1,"_Rotation":0,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":26},"__LivelyClassName__":"lively.morphic.Text"},"1":{"fill":null,"__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":{"__isSmartRef__":true,"id":2},"_Extent":{"__isSmartRef__":true,"id":3},"_BorderWidth":1.778,"_BorderColor":{"__isSmartRef__":true,"id":4},"renderContextTable":{"__isSmartRef__":true,"id":5},"_BorderRadius":16.67,"_Opacity":1,"_BorderStyle":"solid","_Fill":{"__isSmartRef__":true,"id":6},"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"2":{"x":-221,"y":-1,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"3":{"x":430,"y":32,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"4":{"r":0.619,"g":0,"b":0,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"5":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"6":{"r":1,"g":0.8164152534959416,"b":0.6715685727679689,"a":1,"__LivelyClassName__":"Color","__SourceModuleName__":"Global"},"7":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"8":{"partsSpaceName":"PartsBin/Basic/","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":2,"comment":"a simple text morph","partName":"JSONPrinter","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"9":{"style":{"__isSmartRef__":true,"id":10},"chunkOwner":{"__isSmartRef__":true,"id":0},"storedString":"\n","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"10":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"11":{"x":430,"y":202,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12":{"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","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML"},"13":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14":{"morph":{"__isSmartRef__":true,"id":0},"position":{"__isSmartRef__":true,"id":15},"connectedControlPoints":[],"__LivelyClassName__":"lively.morphic.Magnet","__SourceModuleName__":"Global.lively.morphic.Connectors"},"15":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"16":{"sourceObj":{"__isSmartRef__":true,"id":0},"sourceAttrName":"value","targetObj":{"__isSmartRef__":true,"id":0},"targetMethodName":"setTextString","converterString":"function (v) {\n                    try {\n                        return JSON.serialize(v)\n                    } catch(e) {\n                        return \"\"\n                    }\n            }","updater":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":17},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":18},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings"},"17":{"source":{"__isSmartRef__":true,"id":0},"target":{"__isSmartRef__":true,"id":0}},"18":{"converter":{"__isSmartRef__":true,"id":19}},"19":{"originalFunc":null,"varMapping":{"__isSmartRef__":true,"id":17},"source":"function (v) {\n                    try {\n                        return JSON.serialize(v)\n                    } catch(e) {\n                        return \"\"\n                    }\n            }","funcProperties":{"__isSmartRef__":true,"id":20},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"20":{},"21":{},"22":{"x":5,"y":5,"width":5,"height":5,"__LivelyClassName__":"Rectangle","__SourceModuleName__":"Global"},"23":{"value":{"__isSmartRef__":true,"id":24}},"24":{},"25":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"26":{"reset":{"__isSmartRef__":true,"id":27}},"27":{"varMapping":{"__isSmartRef__":true,"id":28},"source":"function reset() {\n\tthis.connections = {\n            value: {}\n        };\n        connect(this, 'value', this, 'setTextString', {\n            converter: function(v) {\n                    try {\n                        return JSON.serialize(v)\n                    } catch(e) {\n                        return \"\"\n                    }\n            }\n        })\n}","funcProperties":{"__isSmartRef__":true,"id":29},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"28":{"this":{"__isSmartRef__":true,"id":0}},"29":{},"isSimplifiedRegistry":true}}