{"id":0,"registry":{"0":{"submorphs":[{"__isSmartRef__":true,"id":1}],"scripts":[],"id":4560,"shape":{"__isSmartRef__":true,"id":15},"droppingEnabled":true,"halosEnabled":true,"registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":26},"showsHalos":false,"name":"Iterator","partsBinMetaInfo":{"__isSmartRef__":true,"id":27},"__SourceModuleName__":"Global.lively.morphic.Core","renderContextTable":{"__isSmartRef__":true,"id":28},"eventHandler":{"__isSmartRef__":true,"id":29},"attributeConnections":[],"doNotSerialize":["output"],"doNotCopyProperties":[],"priorExtent":{"__isSmartRef__":true,"id":30},"layout":{"__isSmartRef__":true,"id":31},"isBeingDragged":false,"connections":{"__isSmartRef__":true,"id":32},"scriptAnnotations":{"__isSmartRef__":true,"id":35},"_Rotation":0,"_Scale":1.0060210561262526,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":38},"__LivelyClassName__":"lively.morphic.Box"},"1":{"submorphs":[],"scripts":[],"id":4561,"shape":{"__isSmartRef__":true,"id":2},"grabbingEnabled":false,"droppingEnabled":false,"halosEnabled":true,"fixedWidth":false,"fixedHeight":true,"allowsInput":true,"_OverflowMode":"visible","_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_Position":{"__isSmartRef__":true,"id":7},"_MaxTextWidth":null,"_MaxTextHeight":47,"textColor":{"__isSmartRef__":true,"id":5},"showsHalos":false,"_FontSize":14,"__SourceModuleName__":"Global.lively.morphic.TextCore","name":"Text","partsBinMetaInfo":{"__isSmartRef__":true,"id":8},"textChunks":[{"__isSmartRef__":true,"id":9}],"charsReplaced":"some text ","lastFindLoc":-10,"priorSelectionRange":[1,1],"prevScroll":[0,0],"priorExtent":{"__isSmartRef__":true,"id":11},"renderContextTable":{"__isSmartRef__":true,"id":12},"eventHandler":{"__isSmartRef__":true,"id":13},"attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"_Padding":{"__isSmartRef__":true,"id":14},"owner":{"__isSmartRef__":true,"id":0},"_WhiteSpaceHandling":"pre","isLabel":true,"_ClipMode":"hidden","_HandStyle":"default","allowInput":false,"eventsAreIgnored":true,"_PointerEvents":"none","_Rotation":0,"_Scale":1,"__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},"_Fill":null,"__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"3":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"4":{"x":29,"y":47,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"5":{"r":0,"g":0,"b":0,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"6":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"7":{"x":5,"y":-2,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"8":{"partsSpaceName":"PartsBin/Basic","__SourceModuleName__":"Global.lively.PartsBin","migrationLevel":4,"comment":"a simple text morph","partName":"Text","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"9":{"style":{"__isSmartRef__":true,"id":10},"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.TextCore","chunkOwner":{"__isSmartRef__":true,"id":1},"storedString":"<","__LivelyClassName__":"lively.morphic.TextChunk"},"10":{"__SourceModuleName__":"Global.lively.morphic.TextCore","fontSize":24,"__LivelyClassName__":"lively.morphic.TextEmphasis"},"11":{"x":29,"y":47,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"12":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML","updateText":"updateTextHTML","setTextExtent":"setTextExtentHTML","setMaxTextWidth":"setMaxTextWidthHTML","setMaxTextHeight":"setMaxTextHeightHTML","getTextExtent":"getTextExtentHTML","getTextString":"getTextStringHTML","ignoreTextEvents":"ignoreTextEventsHTML","enableTextEvents":"enableTextEventsHTML","setFontFamily":"setFontFamilyHTML","setFontSize":"setFontSizeHTML","setTextColor":"setTextColorHTML","setPadding":"setPaddingHTML","setAlign":"setAlignHTML","setVerticalAlign":"setVerticalAlignHTML","setDisplay":"setDisplayHTML","setWhiteSpaceHandling":"setWhiteSpaceHandlingHTML","focusMorph":"focusMorphHTML"},"13":{"morph":{"__isSmartRef__":true,"id":1},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"14":{"x":5,"y":5,"width":0,"height":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"15":{"position":{"__isSmartRef__":true,"id":16},"_Extent":{"__isSmartRef__":true,"id":17},"_BorderWidth":1,"_BorderColor":{"__isSmartRef__":true,"id":18},"_Fill":{"__isSmartRef__":true,"id":19},"__SourceModuleName__":"Global.lively.morphic.Shapes","renderContextTable":{"__isSmartRef__":true,"id":25},"_BorderRadius":5,"_Opacity":1,"_BorderStyle":"solid","__LivelyClassName__":"lively.morphic.Shapes.Rectangle"},"16":{"x":0,"y":0,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"17":{"x":40,"y":40,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"18":{"r":0.753,"g":0.753,"b":0.753,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"19":{"stops":[{"__isSmartRef__":true,"id":20},{"__isSmartRef__":true,"id":22}],"vector":{"__isSmartRef__":true,"id":24},"__SourceModuleName__":"Global.lively.morphic.Shapes","__LivelyClassName__":"lively.morphic.LinearGradient"},"20":{"offset":0,"color":{"__isSmartRef__":true,"id":21}},"21":{"r":1,"g":1,"b":1,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"22":{"offset":1,"color":{"__isSmartRef__":true,"id":23}},"23":{"r":0.8,"g":0.8,"b":0.8,"a":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Color"},"24":{"x":0,"y":0,"width":0,"height":1,"__SourceModuleName__":"Global","__LivelyClassName__":"Rectangle"},"25":{"init":"initHTML","appendShape":"renderHTML","setPosition":"setPositionHTML","setExtent":"setExtentHTML","setFill":"setFillHTML","setBorderColor":"setBorderColorHTML","setBorderWidth":"setBorderWidthHTML","setStrokeOpacity":"setStrokeOpacityHTML","setBorderRadius":"setBorderRadiusHTML","setBorderStyle":"setBorderStyleHTML","setOpacity":"setOpacityHTML"},"26":{"x":0,"y":0,"__LivelyClassName__":"Point","__SourceModuleName__":"Global"},"27":{"partsSpaceName":"PartsBin/Scripting/","__SourceModuleName__":"Global.lively.PartsBin","comment":"A (data) iterator. Visually Connect a thing that emits an array to the \"input\" and it will iterate over the array putting every element into \"output\".\nAlso works for an object given to the \"input\" and it will iterate over the (own) properties of this object and put those values in the \"output\".","migrationLevel":4,"partName":"Iterator","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo"},"28":{"replaceRenderContext":"replaceRenderContextHTML","init":"initHTML","append":"appendHTML","remove":"removeHTML","triggerEvent":"triggerEventHTML","setTransform":"setTransformHTML","setPosition":"setPositionHTML","setRotation":"setRotationHTML","setExtent":"setExtentHTML","setScale":"setScaleHTML","setVisible":"setVisibleHTML","setOrigin":"setOriginHTML","setPivotPoint":"setPivotPointHTML","setClipMode":"setClipModeHTML","setHandStyle":"setHandStyleHTML","setPointerEvents":"setPointerEventsHTML","setToolTip":"setToolTipHTML","focus":"focusHTML","blur":"blurHTML","setFocusable":"setFocusableHTML"},"29":{"morph":{"__isSmartRef__":true,"id":0},"__SourceModuleName__":"Global.lively.morphic.Events","__LivelyClassName__":"lively.morphic.EventHandler"},"30":{"x":30,"y":30,"__SourceModuleName__":"Global","__LivelyClassName__":"Point"},"31":{},"32":{"input":{"__isSmartRef__":true,"id":33},"output":{"__isSmartRef__":true,"id":34}},"33":{},"34":{},"35":{"input":{"__isSmartRef__":true,"id":36}},"36":{"time":{"__isSmartRef__":true,"id":37},"user":"markoroeder"},"37":{"isSerializedDate":true,"string":"Wed Aug 31 2011 13:14:57 GMT-0700 (PDT)"},"38":{"input":{"__isSmartRef__":true,"id":39}},"39":{"varMapping":{"__isSmartRef__":true,"id":40},"source":"function input(obj) {\n    if (obj instanceof Array) {\n        obj.each(function(ea) {\n            this.output = ea;\n        }, this);\n    } else if (typeof obj == 'object') {\n        Properties.own(obj).each(function(prop) {\n            this.output = obj[prop];\n        }, this);\n    }\n}","funcProperties":{"__isSmartRef__":true,"id":41},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global"},"40":{"this":{"__isSmartRef__":true,"id":0}},"41":{},"isSimplifiedRegistry":true}}