-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":602},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"601":{"this":{"__isSmartRef__":true,"id":144}},"602":{},"603":{"varMapping":{"__isSmartRef__":true,"id":604},"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":605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"604":{"this":{"__isSmartRef__":true,"id":144}},"605":{},"606":{"varMapping":{"__isSmartRef__":true,"id":607},"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":608},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"607":{"this":{"__isSmartRef__":true,"id":144}},"608":{},"609":{"varMapping":{"__isSmartRef__":true,"id":610},"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":611},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"610":{"this":{"__isSmartRef__":true,"id":144}},"611":{},"612":{"varMapping":{"__isSmartRef__":true,"id":613},"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":705},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"704":{"this":{"__isSmartRef__":true,"id":680}},"705":{"timestamp":{"__isSmartRef__":true,"id":706},"user":"lauritz","categories":[]},"706":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"707":{"submorphs":[{"__isSmartRef__":true,"id":708}],"scripts":[],"id":"ACD27947-82D6-4834-9AC2-FF4803512147","shape":{"__isSmartRef__":true,"id":713},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":719},"lighterFill":{"__isSmartRef__":true,"id":724},"label":{"__isSmartRef__":true,"id":708},"attributeConnections":[{"__isSmartRef__":true,"id":729}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":731},"owner":{"__isSmartRef__":true,"id":137},"eventHandler":{"__isSmartRef__":true,"id":732},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":137},"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","10F3E467-6BB8-4D07-BD17-8C50593FD6B8","7260818C-6472-4288-8BDD-1E7798A543F3","DEBB5BDB-018D-4BA1-9FB9-73DC84C51D89","D75BCAED-3029-46EB-B944-4A102BB1BC0F","9A977DA2-B325-4DFA-9683-3DC9ECEFAAC0","48A5078F-B4A5-4F4E-884D-84CCDFFBE6F0","33905494-AA01-4311-8398-1F6C3D4F1BAC","5D7201A7-1374-49AD-851F-E3167EFED99E","9B69B6C6-71F2-402E-89D1-E97FC2D3AE13","DA1B3A74-F4A6-427B-8FBD-3D2E9D8CD866","DBFC4A4F-8601-4C32-9460-53902C3B0F37","ED51CA7C-CE32-4CF5-9398-0BA9B791FF5E","4F7A7C1A-3788-478C-AFF5-BA62C7FCB01D","FCEFF15E-E5B8-4C7E-A139-302649441119","3674B8DC-F4E5-4A5C-ACEC-96D743BB6050","33E0336F-FD6A-4AAB-AECB-B7D6C7C80631","761015EE-47CF-40F6-A403-8A959B2DB0A6","361B531D-7A1C-441A-BE8B-0B503543FF6C","E283DDFD-1D8F-4E3D-A0BC-40C30221FFDC","0EC23EA3-7B34-429A-922D-5D139F127D1E","7E51F443-B27F-4B6F-8AC0-51D08D8FB329","C5835A07-8E3F-4921-8BC1-4276E9238910","0017ED41-DAB7-480B-A311-3C022294A412","6EA796F9-3CAC-410F-AF6E-4A9F01DCA995","149502EC-4525-42A7-AF15-33F0D67A1427"],"_ClipMode":"visible","isPressed":false,"_PreviousBorderWidth":1,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":733},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(160.0,40.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(33.4,-21.3)"},"708":{"submorphs":[],"scripts":[],"id":"21885885-5643-443D-A0DC-CB74BBAC2763","shape":{"__isSmartRef__":true,"id":709},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":707},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":710}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":712},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":25,"_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","88F1581A-7AEF-4646-B7F9-3890CDDB8494","DC577877-7F00-4238-9246-08C2A10C0CC9","818C9467-71A2-44D6-B01F-1523A0CD5476","C0CF3DDB-AA12-49E0-B12A-6B620552BB47","853E19A1-E97D-463D-A24F-0148671EB696","0203CA4C-E523-4F7D-824B-F09BA3914BDD","18B98A59-6C8E-4386-B3EF-A17259C51C0F","24D84E0A-FA16-47DE-934D-E60729EEB227","7035F1EB-4B8C-4F20-B3AC-966403F55C0A","69831817-0662-4848-8481-44558987D21D","BA13E4C6-DF2A-4059-9174-7725FA3FE514","3E989A29-2A8F-4AFE-B312-A0852B746605","7B675033-945D-4AE1-B85F-DBD35C7B02AA","E0D76A08-70F9-4710-907E-B2D83D60D29A","495F5D43-B450-45B7-B238-FC12AA8F6488","B551041D-4E6E-44F3-8405-1DCE5344BCCD","0A287650-EC32-45AA-8504-0513B196727F","717B0EFA-1422-4224-9A53-5A494F6191A4","C86C167E-8A7D-43BE-AFED-AAEDA70B95EE","97247E8A-2818-4B44-BCDD-348126BD380C","DBD12A55-8830-4DAC-9B09-56E72668513C","695750EC-6C32-48F3-BA0D-8645F5C9C6D7","368C8CDF-CBB5-4518-9940-89109B759FF9","0E77AB29-331E-4E32-8950-2C381F077101","F6F72A0B-C0D9-40CC-BA23-4FC7BCDE3413"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"709":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"710":{"style":{"__isSmartRef__":true,"id":711},"chunkOwner":{"__isSmartRef__":true,"id":708},"storedString":"-","_id":"_1363","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"711":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"712":{"morph":{"__isSmartRef__":true,"id":708},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"713":{"_Fill":{"__isSmartRef__":true,"id":714},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"714":{"stops":[{"__isSmartRef__":true,"id":715},{"__isSmartRef__":true,"id":716},{"__isSmartRef__":true,"id":717},{"__isSmartRef__":true,"id":718}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"715":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"716":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"717":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"718":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"719":{"stops":[{"__isSmartRef__":true,"id":720},{"__isSmartRef__":true,"id":721},{"__isSmartRef__":true,"id":722},{"__isSmartRef__":true,"id":723}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"720":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"721":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"722":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"723":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"724":{"stops":[{"__isSmartRef__":true,"id":725},{"__isSmartRef__":true,"id":726},{"__isSmartRef__":true,"id":727},{"__isSmartRef__":true,"id":728}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"725":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"726":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"727":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"728":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"729":{"sourceObj":{"__isSmartRef__":true,"id":707},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":707},"targetMethodName":"deleteSelectedScript","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":730},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"730":{"source":{"__isSmartRef__":true,"id":707},"target":{"__isSmartRef__":true,"id":707}},"731":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"732":{"morph":{"__isSmartRef__":true,"id":707},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"733":{"deleteSelectedScript":{"__isSmartRef__":true,"id":734}},"734":{"varMapping":{"__isSmartRef__":true,"id":735},"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":736},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"735":{"this":{"__isSmartRef__":true,"id":707}},"736":{"timestamp":{"__isSmartRef__":true,"id":737},"user":"lauritz"},"737":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"738":{"submorphs":[{"__isSmartRef__":true,"id":739}],"scripts":[],"id":"1C1FD29B-DABA-4E71-B961-E7C07EF26433","shape":{"__isSmartRef__":true,"id":745},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":746},"lighterFill":{"__isSmartRef__":true,"id":751},"label":{"__isSmartRef__":true,"id":739},"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":756},"list":[],"eventHandler":{"__isSmartRef__":true,"id":757},"owner":{"__isSmartRef__":true,"id":137},"textString":"","selection":{"__isSmartRef__":true,"id":758},"_ClipMode":"visible","prevScroll":[0,0],"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","672DEFAB-2BE5-4C60-9779-3B44694FBEB1","E3476213-5872-492C-BE29-0C6A5A150ED8","AA2F6ABE-1CCB-403D-94DD-8FB371F3DDCE","54B67D51-AB19-40A0-A2A6-EC51F3171CAC","1CF44342-896F-4ACB-847F-7CB3CD10ED5A","279A9257-1667-4E0C-844B-A4E0D02462F0","DDCBD835-4B3F-4B8F-9623-696DA76C3A2C","D2CB17F3-5DD0-4E97-BF99-40A95ABF976B","FA519665-2394-43D3-8DCF-802A158F3291","90519BB5-7419-46E0-B7E3-4C26304F3414","0B7FC23C-C63C-4F20-8BAF-1BD1B7205762","B54FAD70-E598-4B06-8F41-00843A06D4B0","5A8ECBD6-ADDE-43FA-8D9E-BC483898DF8A","69DD3160-FAD3-4AD8-9B1C-CB9229AD8034","2C8AD368-8815-41D5-8C8D-CD36ECCF4A96","80C5655D-B03D-413B-A84C-D59A60D8EEEC","BA8066E4-5B8E-4048-97C5-332953805999","E27E2CB2-789E-4269-B5E8-2631B5D2840B","0EDAA37B-E8BA-4DE7-820A-17A44E299F5C","81F15272-5E6E-4544-B6FE-96BDD357A17C","1ED99A20-94B6-4F1F-9524-CBBCEADB0A79","49EB3FB8-F23A-412C-B150-C30E92294AB5","737AC59E-32F0-4E47-95BC-205D3A151AEA","83D5F3BE-D631-4F4E-AB90-EA22B6D19D81","766D79B2-671B-4F0B-9E03-6ED6530532FF"],"isPressed":false,"_PreviousBorderWidth":1,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":764},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(200.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"739":{"submorphs":[],"scripts":[],"id":"552EBC55-CE27-41D6-9ADD-335DCBAE9308","shape":{"__isSmartRef__":true,"id":740},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":738},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":741}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":743}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":744},"_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","2459D1F0-E49C-4882-AB4C-D78C1A496962","3D8D3B02-0459-45C1-A606-D0DB4B07958C","78AAE288-D261-4BEA-9436-C8C31B890B44","2E10F795-9892-4BF7-9A46-BCB90FD6112E","DE32EFA9-C920-42F6-9F2E-7EDABEC006AF","23FBFC79-1927-48FD-8C1C-09FFD7539784","3409506C-9BAE-43DA-BCAF-94392F9646DF","ED94289E-98FC-4126-9EED-25FDC98D5BFC","63C2F1D8-3A1B-464B-9945-1F661D4CFE26","782AAB82-32E9-4A37-9DC0-3118636C2CCE","D564B3C8-D9B5-4D7D-80DD-16715ED878F6","D9344242-9F26-4A5D-B86D-6FAEA43B439C","E7E3A5EE-8F82-4F04-9E65-771E2E4AC9D1","55BF0D1C-FCDF-4D8B-9E42-8EF0F36074A3","B3BE05E0-5704-45B4-8B1D-E7FDA5CE6235","9A503124-0F1D-4390-B668-E4457CBC1376","26D1AD85-C129-4C24-A16A-B6863FC35F41","7425ED3B-1418-47C8-A2EE-52CDF3C4D860","C4B9C269-4F6E-4EA2-A6EA-38C21A011591","952BC06E-5007-4618-9289-931E66292E9D","BB2E676F-0EE9-4AD1-8108-34E3EE9902CA","6CC7E1BE-92FC-45F0-818A-23D12CD52810","1BE7546E-798F-44DE-A7CE-38AD4B1BC093","3AE1BF24-F153-4077-B7DF-3847E802B72F","866B094F-35BD-40A3-9816-53873865AD18"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"740":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"741":{"style":{"__isSmartRef__":true,"id":742},"chunkOwner":{"__isSmartRef__":true,"id":739},"_id":"_553","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"742":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"743":{"sourceObj":{"__isSmartRef__":true,"id":739},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":738},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"744":{"morph":{"__isSmartRef__":true,"id":739},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"745":{"_Fill":{"__isSmartRef__":true,"id":746},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"746":{"stops":[{"__isSmartRef__":true,"id":747},{"__isSmartRef__":true,"id":748},{"__isSmartRef__":true,"id":749},{"__isSmartRef__":true,"id":750}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"747":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"748":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"749":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"750":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"751":{"stops":[{"__isSmartRef__":true,"id":752},{"__isSmartRef__":true,"id":753},{"__isSmartRef__":true,"id":754},{"__isSmartRef__":true,"id":755}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"752":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"753":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"754":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"755":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"756":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"757":{"morph":{"__isSmartRef__":true,"id":738},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"758":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":759},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":760},"textChunks":[{"__isSmartRef__":true,"id":761}],"eventHandler":{"__isSmartRef__":true,"id":763},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"759":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"760":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"761":{"style":{"__isSmartRef__":true,"id":762},"chunkOwner":{"__isSmartRef__":true,"id":758},"storedString":"","_id":"_1365","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"762":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"763":{"morph":{"__isSmartRef__":true,"id":758},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"764":{"reset":{"__isSmartRef__":true,"id":765},"onMouseDown":{"__isSmartRef__":true,"id":769},"onBlur":{"__isSmartRef__":true,"id":777},"createScenePresentation":{"__isSmartRef__":true,"id":785},"presentTargetChooser":{"__isSmartRef__":true,"id":789},"removeTargetChooser":{"__isSmartRef__":true,"id":793},"removeHighlight":{"__isSmartRef__":true,"id":797},"highlightCurrentTarget":{"__isSmartRef__":true,"id":801},"updateTargetFromSelection":{"__isSmartRef__":true,"id":805},"currentMorphicScene":{"__isSmartRef__":true,"id":809},"highlightTarget":{"__isSmartRef__":true,"id":813},"setLabel":{"__isSmartRef__":true,"id":817},"updateTargetFromOwner":{"__isSmartRef__":true,"id":825}},"765":{"varMapping":{"__isSmartRef__":true,"id":766},"source":"function reset() {\n this.removeTargetChooser();\n this.setLabel('empty');\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"766":{"this":{"__isSmartRef__":true,"id":738}},"767":{"timestamp":{"__isSmartRef__":true,"id":768},"user":"lauritz","tags":[]},"768":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"769":{"varMapping":{"__isSmartRef__":true,"id":770},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) {\n return $super(evt);\n }\n \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.removeTargetChooser();\n } else {\n this.presentTargetChooser();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"770":{"this":{"__isSmartRef__":true,"id":738},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":771}},"771":{"$super":{"__isSmartRef__":true,"id":772}},"772":{"varMapping":{"__isSmartRef__":true,"id":773},"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":774},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"773":{"obj":{"__isSmartRef__":true,"id":738},"name":"onMouseDown"},"774":{},"775":{"timestamp":{"__isSmartRef__":true,"id":776},"user":"lauritz","tags":[]},"776":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"777":{"varMapping":{"__isSmartRef__":true,"id":778},"source":"function onBlur(evt) {\n $super(evt);\n \n // remove the scene presentation when clicked elsewhere\n var target = evt.world.clickedOnMorph;\n if (!this.listMorph || !this.listMorph.isAncestorOf(target)) {\n this.removeTargetChooser();\n } else {\n this.focus();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"778":{"this":{"__isSmartRef__":true,"id":738},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":779}},"779":{"$super":{"__isSmartRef__":true,"id":780}},"780":{"varMapping":{"__isSmartRef__":true,"id":781},"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":782},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"781":{"obj":{"__isSmartRef__":true,"id":738},"name":"onBlur"},"782":{},"783":{"timestamp":{"__isSmartRef__":true,"id":784},"user":"lauritz","tags":[]},"784":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"785":{"varMapping":{"__isSmartRef__":true,"id":786},"source":"function createScenePresentation() {\n var that = this,\n items = this.currentMorphicScene(),\n height = this.owner.getExtent().y,\n bounds = new Rectangle(0, this.getExtent().y, this.getExtent().x * 2, height),\n treeMorph = new lively.morphic.Tree(),\n rect = lively.morphic.Morph.makeRectangle(bounds),\n currentTarget = null;\n \n treeMorph.childrenPerPage = 10000;\n treeMorph.setName(\"MorphSelectorTree\");\n treeMorph.getLayouter().defer();\n treeMorph.setItem(items);\n treeMorph.childNodes.each(function (n) {\n n.expand();\n })\n \n currentTarget = this.highlightCurrentTarget(treeMorph);\n \n rect.setFill(Color.white);\n rect.beClip(true);\n rect.disableGrabbing();\n rect.disableDragging();\n rect.setBorderWidth(1);\n rect.setBorderColor(Color.rgb(150,150,150));\n rect.addMorph(treeMorph);\n rect.treeMorph = treeMorph;\n rect.currentTarget = currentTarget;\n\n return rect;\n}","funcProperties":{"__isSmartRef__":true,"id":787},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"786":{"this":{"__isSmartRef__":true,"id":738}},"787":{"timestamp":{"__isSmartRef__":true,"id":788},"user":"lauritz","tags":[]},"788":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"789":{"varMapping":{"__isSmartRef__":true,"id":790},"source":"function presentTargetChooser() {\n var list = this.createScenePresentation(),\n tree = list.treeMorph,\n target = list.currentTarget\n \n list.setVisible(false)\n this.addMorph(list)\n this.listMorph = list\n list.focus()\n\n // need temp here, doesn't work otherwise, strange errors... Javascript WAT\n var layouting = function() {\n list.setVisible(true)\n \n if (target) {\n var globalTransform = new lively.morphic.Similitude()\n for (var morph = target; (morph != list) && \n (morph != undefined); morph = morph.owner) {\n globalTransform.preConcatenate(morph.getTransform());\n } \n \n list.scrollRectIntoView(target.getBounds().\n translatedBy(globalTransform.getTranslation()));\n tree.getLayouter().resume();\n }\n }\n layouting.morphicDelay(1);\n}","funcProperties":{"__isSmartRef__":true,"id":791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"790":{"this":{"__isSmartRef__":true,"id":738}},"791":{"timestamp":{"__isSmartRef__":true,"id":792},"user":"lauritz","tags":[]},"792":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"793":{"varMapping":{"__isSmartRef__":true,"id":794},"source":"function removeTargetChooser() {\n if (this.listMorph) {\n this.listMorph.remove();\n delete this.listMorph; \n }\n}","funcProperties":{"__isSmartRef__":true,"id":795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"794":{"this":{"__isSmartRef__":true,"id":738}},"795":{"timestamp":{"__isSmartRef__":true,"id":796},"user":"lauritz","tags":[]},"796":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"797":{"varMapping":{"__isSmartRef__":true,"id":798},"source":"function removeHighlight(node) {\n node.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":799},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"798":{"this":{"__isSmartRef__":true,"id":738}},"799":{"timestamp":{"__isSmartRef__":true,"id":800},"user":"lauritz","tags":[]},"800":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"801":{"varMapping":{"__isSmartRef__":true,"id":802},"source":"function highlightCurrentTarget(tree) {\n var target = this.owner.target,\n nodes = tree.childNodes,\n highlightNode;\n\n if (!target) {\n return\n } else if (target.isMorph) {\n var expandables = [target],\n nextOwner = target,\n currentNode\n while (nextOwner.owner) {\n expandables.push(nextOwner.owner)\n nextOwner = nextOwner.owner\n }\n expandables.reverse().each(function (m) {\n currentNode = nodes.detect(function (n) {\n return n.item.value === m;\n })\n if (currentNode) {\n nodes = currentNode.childNodes\n if (!nodes && currentNode.item.children) {\n currentNode.expand();\n nodes = currentNode.childNodes;\n }\n } else {\n return;\n }\n })\n if (currentNode && currentNode.item.value === target) {\n highlightNode = currentNode;\n }\n } else {\n var groupNodes = nodes.detect(function (n) {\n return n.item.value === 'groups';\n }).childNodes\n highlightNode = groupNodes.detect(function (n) {\n // group names are unique\n return n.item.value.name === target.name;\n })\n }\n\n if (highlightNode) {\n this.highlightTarget(highlightNode);\n }\n return highlightNode;\n}","funcProperties":{"__isSmartRef__":true,"id":803},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"802":{"this":{"__isSmartRef__":true,"id":738}},"803":{"timestamp":{"__isSmartRef__":true,"id":804},"user":"lauritz","tags":[]},"804":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"805":{"varMapping":{"__isSmartRef__":true,"id":806},"source":"function updateTargetFromSelection(selection) { \n var that = this;\n var update = function(confirmed) {\n if (confirmed) {\n that.owner.setTarget(selection);\n that.setLabel(selection.getName() || selection.toString());\n }\n }\n \n this.removeTargetChooser();\n if (this.owner.hasUnsavedChanges && this.owner.hasUnsavedChanges()) {\n this.owner.confirmUnsavedChanges(update);\n } else {\n update(true);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":807},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"806":{"this":{"__isSmartRef__":true,"id":738}},"807":{"timestamp":{"__isSmartRef__":true,"id":808},"user":"lauritz","tags":[]},"808":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"809":{"varMapping":{"__isSmartRef__":true,"id":810},"source":"function currentMorphicScene() {\n var onSelect = function onSelect(tree) {\n this.selector.updateTargetFromSelection(this.value);\n }\n var properties = {\n editorPane: this.owner,\n selector: this\n }\n \n return {children: [{ \n name: 'World',\n value: this.world(),\n selector: this,\n onSelect: onSelect,\n children: this.world().submorphs.invoke('treeItemsOfMorphNames',\n {scripts: [onSelect],\n properties: properties,\n showUnnamed: true}).compact()\n }]};\n}","funcProperties":{"__isSmartRef__":true,"id":811},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"810":{"this":{"__isSmartRef__":true,"id":738}},"811":{"timestamp":{"__isSmartRef__":true,"id":812},"user":"lauritz","tags":[]},"812":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"813":{"varMapping":{"__isSmartRef__":true,"id":814},"source":"function highlightTarget(node) {\n node.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":815},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"814":{"this":{"__isSmartRef__":true,"id":738}},"815":{"timestamp":{"__isSmartRef__":true,"id":816},"user":"lauritz","tags":[]},"816":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"817":{"varMapping":{"__isSmartRef__":true,"id":818},"source":"function setLabel(label) {\n this.label.setTextString(label);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":823},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"818":{"this":{"__isSmartRef__":true,"id":738},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":819}},"819":{"$super":{"__isSmartRef__":true,"id":820}},"820":{"varMapping":{"__isSmartRef__":true,"id":821},"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":822},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"821":{"obj":{"__isSmartRef__":true,"id":738},"name":"setLabel"},"822":{},"823":{"timestamp":{"__isSmartRef__":true,"id":824},"user":"lauritz","tags":[]},"824":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"825":{"varMapping":{"__isSmartRef__":true,"id":826},"source":"function updateTargetFromOwner() {\n this.setLabel(this.owner.target);\n}","funcProperties":{"__isSmartRef__":true,"id":827},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"826":{"this":{"__isSmartRef__":true,"id":738}},"827":{"timestamp":{"__isSmartRef__":true,"id":828},"user":"lauritz","tags":[]},"828":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"829":{"submorphs":[],"scripts":[],"id":"56350EB4-0DE1-499E-9A4B-837516926C4C","shape":{"__isSmartRef__":true,"id":830},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":831},"textChunks":[{"__isSmartRef__":true,"id":832}],"charsReplaced":"Scripts","lastFindLoc":-7,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":834},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":64.8979476392384,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":137},"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","8E4A5937-D1FA-4AF7-BD8D-B542C636CEF9","DDB23EF0-540C-4046-AD4D-C001E8A5F20C","FF45AAB3-E5C7-42A0-A704-F068DB2E2AF9","52850E3E-BE46-467C-A381-902F5E4859FD","147F9160-7168-44A4-9EA4-A36466EE1F52","8E4FB238-FC20-4DA7-AC9F-6921EBBD5609","3D09A998-5E60-4E94-9C6A-B08E7D98F02A","B8986B95-68A4-4212-8560-C86C8F7B3B3C","81BAFCDC-090F-4A92-8AD6-C3127620CCF4","3663625F-2BB0-494C-A467-04148A441F42","8F0EE2A4-3C90-4F71-A04E-2B285D2543CD","B5F10B61-9C89-4903-BD4C-DF3B9D283432","7005184B-8CE8-4DB8-82D8-D75E16ADE428","B8106E33-B470-45C3-916E-6E92CAFDD854","3013F6C8-9D86-49F3-9EB0-AA42B27F1DC6","A49BA117-B9D4-43F4-82EA-458B9D16FDBA","9FB9DF10-FCEC-44FE-9614-6DFC4B814576","54F9AFFD-B235-48AC-85E0-57921251546E","7A472A4B-7292-49B5-9F03-DE2E3A096714","C8629DF3-424B-47D3-A3FD-68201FFFC455","2CE99CF4-87BB-479D-BC02-FBE7F5E3C283","A5751D1D-692C-4032-AEA7-95530C88F730","E2D3E224-09CB-4417-AF01-22F5923D0FEB","8B049C2C-4BCB-4CA1-8BFA-99E996D355A7","032B13C4-444B-4C0A-9BA2-CE19A29996BC"],"_MaxTextHeight":null,"_MinTextHeight":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"830":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"831":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"832":{"style":{"__isSmartRef__":true,"id":833},"chunkOwner":{"__isSmartRef__":true,"id":829},"storedString":"Tag:","_id":"_1367","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"833":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"834":{"morph":{"__isSmartRef__":true,"id":829},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"835":{"submorphs":[{"__isSmartRef__":true,"id":836}],"scripts":[],"id":"CA4F6F74-573F-48DD-BC79-09EC0E5C01FE","shape":{"__isSmartRef__":true,"id":842},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":848},"lighterFill":{"__isSmartRef__":true,"id":853},"label":{"__isSmartRef__":true,"id":836},"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":858},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":859},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":137},"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","1BD989CB-146C-431F-8B15-9199C4CD5D32","42172AA4-1B06-4C5B-9BB7-FAED1206CF34","32DFAF99-E6F8-426B-829D-FD6C2BCB8FAA","9B4BF2BE-49D5-4B9D-8F38-1692443069A9","FCAB3690-731A-45E7-984F-843DFE705AF1","94B10A66-8219-43AD-B902-DA999A66222D","BB0E2EB7-ABCE-44C7-96E7-6679FB2981D1","2FCEE551-302B-46C9-B646-3B9BE9187182","B4267F52-1ACC-42A1-904D-E9F7D485D8AB","14770110-045A-4BE4-BCF2-7C886DF70F7D","5387EA76-6B03-426A-B385-9C4231B66352","23545203-A969-439B-8761-E83A810696D0","C5467F6E-CBD7-4AF4-94BE-D0D62E4F7DDD","2FC5F9D1-B611-4273-BD5B-107350364579","318398B6-6689-4DE7-88FD-636BD968773D","3241459F-2019-4BD2-A0CF-BD2A174DDA76","69022916-A511-4A6C-8220-5B4CCD34FCEF","E772C128-C42D-4B13-A3DB-3EC0DFDC9FC5","4DD223AA-79FC-4FB3-9301-F197D9D6B358","46929EDB-248B-41D6-AC15-410A659C24A5","1B002698-D346-4EF1-9F48-E74D4EC3C948","5380D1B8-4B6A-4E2A-8414-6D6858D31FFD","A865E534-7B3D-487A-81D1-D97394749423","B47D2FF5-786E-4CA6-BA90-7CCBE4761B7C","ACAE1081-3E3B-4604-B2A9-CFC4484D7B74"],"isPressed":false,"_PreviousBorderWidth":1,"_StyleClassNames":["toggled"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":860},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"836":{"submorphs":[],"scripts":[],"id":"B4877F5A-FFBA-400B-95C1-2EEC2D123A98","shape":{"__isSmartRef__":true,"id":837},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":835},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":838}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":840}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":841},"_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","696C3A2A-C695-4D17-A044-41A73436AB8D","206A0BFD-6997-4E0E-9193-089D1F66B22A","F2F1F966-6C41-4EBA-AFCE-FAE8C79AA696","64A754E9-7083-4CAE-B5C2-7B436EFFE4BA","64737503-A352-42CC-A249-667DA2B42746","9218F1CA-E23F-4E1A-89C3-DB19DE720861","CF7EAC38-1041-4B83-B087-359885B8528B","84469C7C-C93D-4F16-ACAA-0045A4A37FCA","9D3DD447-66A0-4B4A-B378-FB864D8C1468","163D1C2B-EDE9-4F8F-B466-EF9F4CB14384","50DCF8C9-23AA-4241-AC5B-724CC11950DA","CCACCC51-0109-4F73-B122-AA60E40EC54B","285D1797-A21F-4439-81AD-932B45F54879","7354C28D-A54E-48B6-913E-4949B5F4625E","68EAB78C-AAA8-4EC3-8493-CFD23672B5B3","2AD9DBC6-BDBD-4022-AFE1-B6D94D6860BF","5D634617-10A2-45FE-A453-D3452456AB07","EE3AF0A1-F42E-4AE8-A115-3458AA56DAF3","D8A87F07-FBE8-4C1E-ADE9-3AF6EE15FCD3","72270145-A97E-4B0C-BA7D-1B68CE1A0841","85F71043-A168-4F84-95DC-DD0392FD2935","03D2C78C-52CB-4093-96E0-2A4608208045","B5928DA6-A3E1-413E-B96E-87C4454017D5","3A1A5AF0-9573-4D44-823A-50C41F02A60A","F4E163ED-7A6F-4DB2-B22C-0C1350310701"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"837":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"838":{"style":{"__isSmartRef__":true,"id":839},"chunkOwner":{"__isSmartRef__":true,"id":836},"_id":"_17847","storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"839":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"840":{"sourceObj":{"__isSmartRef__":true,"id":836},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":835},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"841":{"morph":{"__isSmartRef__":true,"id":836},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"842":{"_Fill":{"__isSmartRef__":true,"id":843},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"843":{"stops":[{"__isSmartRef__":true,"id":844},{"__isSmartRef__":true,"id":845},{"__isSmartRef__":true,"id":846},{"__isSmartRef__":true,"id":847}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"844":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(230,243,253)"},"845":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"846":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"847":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(157,198,229)"},"848":{"stops":[{"__isSmartRef__":true,"id":849},{"__isSmartRef__":true,"id":850},{"__isSmartRef__":true,"id":851},{"__isSmartRef__":true,"id":852}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"849":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"850":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"851":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"852":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"853":{"stops":[{"__isSmartRef__":true,"id":854},{"__isSmartRef__":true,"id":855},{"__isSmartRef__":true,"id":856},{"__isSmartRef__":true,"id":857}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"854":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"855":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"856":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"857":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"858":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"859":{"morph":{"__isSmartRef__":true,"id":835},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"860":{"createListMorph":{"__isSmartRef__":true,"id":861},"getList":{"__isSmartRef__":true,"id":865},"removeList":{"__isSmartRef__":true,"id":869},"reset":{"__isSmartRef__":true,"id":873},"onMouseUp":{"__isSmartRef__":true,"id":877},"onBlur":{"__isSmartRef__":true,"id":885},"setTag":{"__isSmartRef__":true,"id":893}},"861":{"varMapping":{"__isSmartRef__":true,"id":862},"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":863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"862":{"this":{"__isSmartRef__":true,"id":835}},"863":{"timestamp":{"__isSmartRef__":true,"id":864},"user":"lauritz","categories":[]},"864":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"865":{"varMapping":{"__isSmartRef__":true,"id":866},"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":867},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"866":{"this":{"__isSmartRef__":true,"id":835}},"867":{"timestamp":{"__isSmartRef__":true,"id":868},"user":"lauritz","tags":[]},"868":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"869":{"varMapping":{"__isSmartRef__":true,"id":870},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":871},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"870":{"this":{"__isSmartRef__":true,"id":835}},"871":{"timestamp":{"__isSmartRef__":true,"id":872},"user":"lauritz","categories":[]},"872":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"873":{"varMapping":{"__isSmartRef__":true,"id":874},"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":875},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"874":{"this":{"__isSmartRef__":true,"id":835}},"875":{"timestamp":{"__isSmartRef__":true,"id":876},"user":"lauritz","tags":[]},"876":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"877":{"varMapping":{"__isSmartRef__":true,"id":878},"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":883},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"878":{"this":{"__isSmartRef__":true,"id":835},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":879}},"879":{"$super":{"__isSmartRef__":true,"id":880}},"880":{"varMapping":{"__isSmartRef__":true,"id":881},"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":882},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"881":{"obj":{"__isSmartRef__":true,"id":835},"name":"onMouseUp"},"882":{},"883":{"timestamp":{"__isSmartRef__":true,"id":884},"user":"lauritz","categories":[]},"884":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"885":{"varMapping":{"__isSmartRef__":true,"id":886},"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":891},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"886":{"this":{"__isSmartRef__":true,"id":835},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":887}},"887":{"$super":{"__isSmartRef__":true,"id":888}},"888":{"varMapping":{"__isSmartRef__":true,"id":889},"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":890},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"889":{"obj":{"__isSmartRef__":true,"id":835},"name":"onBlur"},"890":{},"891":{"timestamp":{"__isSmartRef__":true,"id":892},"user":"lauritz","categories":[]},"892":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"893":{"varMapping":{"__isSmartRef__":true,"id":894},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":895},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"894":{"this":{"__isSmartRef__":true,"id":835}},"895":{"timestamp":{"__isSmartRef__":true,"id":896},"user":"lauritz","categories":[]},"896":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"897":{"submorphs":[{"__isSmartRef__":true,"id":898}],"scripts":[],"id":"B5DE2E84-32F4-4064-A077-AFE50BCC84B8","shape":{"__isSmartRef__":true,"id":903},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":904},"lighterFill":{"__isSmartRef__":true,"id":909},"label":{"__isSmartRef__":true,"id":898},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":914},"attributeConnections":[{"__isSmartRef__":true,"id":915}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":938},"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","E342B91D-F54B-4DA8-8AE7-10C59CE22B41","A838C48E-4033-4688-8DCF-20659BD824FF","E9BBC453-FFF6-4EE8-BDB0-605D5D4557AE","B6FB81D1-145B-40F9-ACF1-17276DA45EBA","09C79781-5461-4815-88DE-22FB67558136","85A5FA10-01D9-4051-8D56-29DB02CF8817","6E2F44D0-D69A-4DD7-91AD-0B0E1E871633","66FB4A47-82E6-417D-8248-4038D0CBBF5A","3CDC67E7-CAC7-4636-B7FF-50D008C6EB0D","4475CB12-8CFB-41DB-9399-EC6B68E18BA3","6175C505-1BCA-42E9-9C4C-07A4A309A245","B4FEE8FD-E680-459F-A82E-7606A48170D5","AC0B6630-E189-474B-A5E2-13726C1E0E6A","B5559DA4-1483-446C-8332-23DC886B44A5","955AF1F4-5BF5-4129-BA11-0DC54E21E510","6646015F-BD0A-4FEB-85F0-557FB8EC655A","A5682378-2307-447E-AD50-1DEC1AAC9FCB","1A04209F-A70E-4385-A6E2-D508EABC2DFC","EDA53C4F-765D-4424-9DBF-C62388440C46","C877D292-B4FE-42F3-AD5D-11AC5F084977","6791D186-00FB-4A9A-8C8E-DF0B3FBB7F70","1C0AB4C3-29AE-49E6-A440-525C98C25EA9","A88E7536-4C14-422D-985B-824F3E0ECD2A","B53678BD-0843-4A57-8779-2306603CE0C8","DB0426FF-8D96-4D9B-8EEE-DC0AE0A12305"],"owner":{"__isSmartRef__":true,"id":137},"layout":{"__isSmartRef__":true,"id":939},"_ClipMode":"visible","isPressed":false,"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.994014980014994,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(40.1,-17.1)","_Position":"lively.pt(785.7,7.4)"},"898":{"submorphs":[],"scripts":[],"id":"084141ED-D619-4D33-B7E5-AFB248841E14","shape":{"__isSmartRef__":true,"id":899},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":897},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":900}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":902},"_HandStyle":"default","_PointerEvents":"none","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","DC956E73-7398-4CAF-B6F2-9A226E344396","C1F72D31-1F49-4C0C-ACF3-C3AD7E698D2F","39386C7E-9099-4159-BFE9-80AD37319211","2764FB6E-70D1-4BC5-B3CB-9979A48B8205","C55C8A7C-412C-453E-A99F-CE78C2AADB94","4BD9A8D4-2EC1-40AC-A1CE-5F1347B0152D","3450EAEB-E3D2-4FAF-98DF-354B3B8715D6","C906736E-48DF-4054-BA5A-A089610456D7","DE5C59FB-90A6-4DD4-AC39-5CC8B3912969","5830FB93-49A1-4A31-A687-69C4579D5FA7","AE9038D5-0EBD-40A0-8043-9689D163D108","13E47AE3-8FA4-4D33-B6D0-DC9AB9E63590","330AAB8C-6D17-4763-AACC-669FC5DD3A91","CA04BB7A-205C-412D-9900-C2DE7C5FAD36","37AADE55-77DE-4E93-9A3E-241BB5002F88","60EB450E-29D4-42B9-8FF7-CA138515052E","7D5C0196-98BF-4CCD-9142-3D29E68EE180","0F70CA1F-07A9-4EFA-872A-3255F9C850DC","7A2FAFFA-9A09-40FB-B04A-80B0B34C696B","85768439-7424-4BFE-8191-BCA51F70FE26","926F3B6F-1286-4B95-AAB5-B4F4D49434DF","99FC3D6F-CDBB-44EB-AB9B-0E3B56302130","A50C4AC5-8394-4695-B3C9-CF421262F380","9E430F5B-2C3C-450C-A894-12E446B1CD18","8B9EC4F6-DC1A-4ECC-A7B8-40673F4BE006"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"899":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"900":{"style":{"__isSmartRef__":true,"id":901},"chunkOwner":{"__isSmartRef__":true,"id":898},"storedString":"run","_id":"_1369","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"901":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"902":{"morph":{"__isSmartRef__":true,"id":898},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"903":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":904},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"904":{"stops":[{"__isSmartRef__":true,"id":905},{"__isSmartRef__":true,"id":906},{"__isSmartRef__":true,"id":907},{"__isSmartRef__":true,"id":908}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"905":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"906":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"907":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"908":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"909":{"stops":[{"__isSmartRef__":true,"id":910},{"__isSmartRef__":true,"id":911},{"__isSmartRef__":true,"id":912},{"__isSmartRef__":true,"id":913}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"910":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"911":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"912":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"913":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"914":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"915":{"sourceObj":{"__isSmartRef__":true,"id":897},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":137},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":916},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"916":{"submorphs":[{"__isSmartRef__":true,"id":917}],"scripts":[],"shape":{"__isSmartRef__":true,"id":924},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","eventHandler":{"__isSmartRef__":true,"id":927},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":928},{"__isSmartRef__":true,"id":929}],"con":{"__isSmartRef__":true,"id":915},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":930},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"917":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":918},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","eventHandler":{"__isSmartRef__":true,"id":923},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":916},"_Rotation":-3.130064002485303,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"918":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":919},{"__isSmartRef__":true,"id":920},{"__isSmartRef__":true,"id":921},{"__isSmartRef__":true,"id":922}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"919":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"920":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"921":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"922":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"923":{"morph":{"__isSmartRef__":true,"id":917},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"924":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":925},{"__isSmartRef__":true,"id":926}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(831.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"925":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"926":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"927":{"morph":{"__isSmartRef__":true,"id":916},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"928":{"morph":{"__isSmartRef__":true,"id":916},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"929":{"morph":{"__isSmartRef__":true,"id":916},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":917},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"930":{"morphMenuItems":{"__isSmartRef__":true,"id":931}},"931":{"varMapping":{"__isSmartRef__":true,"id":932},"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":937},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"932":{"this":{"__isSmartRef__":true,"id":916},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":933}},"933":{"$super":{"__isSmartRef__":true,"id":934}},"934":{"varMapping":{"__isSmartRef__":true,"id":935},"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":936},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"935":{"obj":{"__isSmartRef__":true,"id":916},"name":"morphMenuItems"},"936":{},"937":{},"938":{"morph":{"__isSmartRef__":true,"id":897},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"939":{"centeredHorizontal":false,"moveHorizontal":true},"940":{"submorphs":[{"__isSmartRef__":true,"id":941}],"scripts":[],"id":"69581E41-448E-4482-8154-39EDB242581C","shape":{"__isSmartRef__":true,"id":946},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":947},"lighterFill":{"__isSmartRef__":true,"id":952},"label":{"__isSmartRef__":true,"id":941},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":957},"attributeConnections":[{"__isSmartRef__":true,"id":958}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":981},"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","85AAEA9C-5E12-4DEC-8994-9A5FE655A740","2A7FF9BF-85D3-4962-8EB4-0F7016C672EB","3BB17748-B91B-43F5-84BE-2537402A6382","8BA10BD3-43C5-4A41-B9D9-DCD8C74EA208","8BADA640-EDC1-41B2-BEF3-0F2520EA25DD","CAFB5342-EFD3-483E-AE4A-343D211653EF","C3DC8C6F-A36C-4456-AF34-B0A318C1AAD8","88093937-29BB-43FC-AD82-4A0A4BDC349F","27E1FA12-CE4A-4C1F-891F-EEEF92BD672F","A12311D6-23C1-4711-9271-5B582F89F15B","F615015A-8BAE-4FC4-B9A4-D1D1122AC0A2","77333AB0-F43F-45D7-BAEE-8B9FF7865CAF","6A0E622E-4C99-42C1-8EEE-E659BFC2996E","D0264D42-222E-4900-908B-4EA13729B6AA","CC6A8A07-5A2D-407A-B540-6BA0C73356C5","FA68B30F-8583-41B2-898D-8DAFE1A75F15","D5C01E0F-F7DF-4896-8CEF-099C9F3E6CB8","B521A25F-FA55-4F6B-BAC1-0B2544DF98C1","C567F039-E57C-4C5E-AFAA-D05B2C481A69","3D4A4A11-9E45-4C87-9398-C3EBD8A53468","E0FE37EB-5354-489E-A5E9-99AB7E1974E9","4F89AD76-5AD7-4CE1-B8DB-D40EBC94617A","8C36A7AB-91F8-4F55-BA2D-E3C8317B0DAC","796CE245-44F1-4586-94F6-5D9C2483185F","6EE9210D-C294-44D7-9D24-C0E256B321D2"],"layout":{"__isSmartRef__":true,"id":982},"owner":{"__isSmartRef__":true,"id":137},"_ClipMode":"visible","isPressed":false,"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.9880657804942089,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(38.5,-17.0)","_Position":"lively.pt(738.3,7.4)"},"941":{"submorphs":[],"scripts":[],"id":"624C4128-9D49-4CDB-8464-D154E76E12EE","shape":{"__isSmartRef__":true,"id":942},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":940},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":943}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":945},"_HandStyle":"default","_PointerEvents":"none","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","B8E4C964-4FFF-4A9F-B0A9-612546B1DC8C","002A2173-D26D-4EED-8906-A489C1E158C0","63362D04-B829-41E6-9E68-5B8DB03D382F","996B60A4-8698-448F-A35F-79C768B4976B","F0727398-A1F0-47F5-92CF-BB9677FA05FA","38707063-D664-49A0-B2FB-F0666EC532D5","0402FB51-915F-4491-8FA1-553F0D8F7F35","5A35285D-C6A5-4830-97D9-0890A3F33F39","53121F0B-7DA5-4622-AC08-DD4805D53374","6C84E15D-112D-4C04-87C1-937691E296A7","4ECBD7E4-8B18-4331-8A37-07F4D8DCDCA0","3D4B43A2-AD74-4131-A939-D680216EDA6B","B22327BB-C876-4084-BEFA-4D06AE2B2849","2D34C2E9-76B8-49DC-9FCC-39B523CD0EF4","F098174A-AABC-4F95-8193-C29CA85D6188","714713CE-F5E8-4817-835F-99EA27075558","532DCEDE-C300-48C9-9DBA-58A1E02E1632","2F1C117F-2507-446D-8B43-9BD30AC726FB","74DABF7B-1E90-4D21-93D1-802BC208E9C7","4829579F-88C9-4E62-BE7F-E085AD1EC231","7732A951-B604-4901-B6F1-779441952E6A","6C03B7C3-D5C7-406E-BD14-BE51DE316982","50B4E4A0-912A-4DBC-A708-E66E1A64F6D3","CA92154F-07FD-4CB7-BDF0-0B8248FC1546","7BA7E167-A14B-4429-9559-6EA483AE3E58"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"942":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(43.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"943":{"style":{"__isSmartRef__":true,"id":944},"chunkOwner":{"__isSmartRef__":true,"id":941},"storedString":"save","_id":"_1370","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"944":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"945":{"morph":{"__isSmartRef__":true,"id":941},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"946":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":947},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(43.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"947":{"stops":[{"__isSmartRef__":true,"id":948},{"__isSmartRef__":true,"id":949},{"__isSmartRef__":true,"id":950},{"__isSmartRef__":true,"id":951}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"948":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"949":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"950":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"951":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"952":{"stops":[{"__isSmartRef__":true,"id":953},{"__isSmartRef__":true,"id":954},{"__isSmartRef__":true,"id":955},{"__isSmartRef__":true,"id":956}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"953":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"954":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"955":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"956":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"957":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"958":{"sourceObj":{"__isSmartRef__":true,"id":940},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":372},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":959},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"959":{"submorphs":[{"__isSmartRef__":true,"id":960}],"scripts":[],"shape":{"__isSmartRef__":true,"id":967},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","eventHandler":{"__isSmartRef__":true,"id":970},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":971},{"__isSmartRef__":true,"id":972}],"con":{"__isSmartRef__":true,"id":958},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":973},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"960":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":961},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","eventHandler":{"__isSmartRef__":true,"id":966},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":959},"_Rotation":3.077607197692381,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(201.2,40.2)"},"961":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":962},{"__isSmartRef__":true,"id":963},{"__isSmartRef__":true,"id":964},{"__isSmartRef__":true,"id":965}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"962":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"963":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"964":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"965":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"966":{"morph":{"__isSmartRef__":true,"id":960},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"967":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":968},{"__isSmartRef__":true,"id":969}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(200.0,9.0)","_Extent":"lively.pt(480.0,32.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"968":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"969":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"970":{"morph":{"__isSmartRef__":true,"id":959},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"971":{"morph":{"__isSmartRef__":true,"id":959},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"972":{"morph":{"__isSmartRef__":true,"id":959},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":960},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"973":{"morphMenuItems":{"__isSmartRef__":true,"id":974}},"974":{"varMapping":{"__isSmartRef__":true,"id":975},"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":980},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"975":{"this":{"__isSmartRef__":true,"id":959},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":976}},"976":{"$super":{"__isSmartRef__":true,"id":977}},"977":{"varMapping":{"__isSmartRef__":true,"id":978},"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":979},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"978":{"obj":{"__isSmartRef__":true,"id":959},"name":"morphMenuItems"},"979":{},"980":{},"981":{"morph":{"__isSmartRef__":true,"id":940},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"982":{"centeredHorizontal":false,"moveHorizontal":true},"983":{"submorphs":[{"__isSmartRef__":true,"id":984}],"scripts":[],"id":"EE4E27CF-EACC-4458-AA48-C6D8E90A7337","shape":{"__isSmartRef__":true,"id":989},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":990},"lighterFill":{"__isSmartRef__":true,"id":995},"label":{"__isSmartRef__":true,"id":984},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1000},"attributeConnections":[{"__isSmartRef__":true,"id":1001}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":1002},"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","F7C30F5C-7270-44B1-ADFF-7473F2012DB0","5142302E-3E9A-476B-AB24-B2448DA6D3E4","FEA3C508-593D-4BC7-B645-8B5630CF2EDE","34DBC442-E1DE-42D7-8C63-BA9A1890C994","4F9067A3-5A5C-4637-A76F-7E590CEE2BDA","ADF74818-537A-4669-A455-9509BA7BD7E5","AFCD7FA7-5429-4B1A-B8B8-AB03C18ABA08","604C352D-0347-4329-A299-EAA3FF90B543","46C5ED11-DE03-428F-A758-5308B3D323B5","7C978B2A-9109-42E1-95C5-A59CC74BD31B","2D34E370-3EA6-48DD-B3A7-FE7EB1CCD78D","A0B7F880-0D72-475C-A002-2EAA7D20C004","1146967F-5295-4931-9637-CF72A6A6D724","775F3066-BB4B-4673-B529-500522EF5165","F01F4895-6DEF-4C26-9CEC-A569AEDD22E6","DDD1C856-9C9F-4CB1-A795-E083B7214E82","51E21302-B2D2-49D0-82D9-D964A6B3C54F","BC9DA8C7-933D-4140-96D3-1E7ADEEC8D69","26FA6101-FD83-4A6D-BA08-839ADCA2E33A","43BD3A17-F549-4B6B-8D78-0F84AFE3A168","00F383AA-5D1B-4E2E-AE7D-233CB4D63E9B","A76C27D4-E4A8-4692-B8F7-96F70237F3EF","E71B74B8-91A8-4053-B9BC-D28F0CA04E2F","EBF007DD-804A-4E98-BDE1-826BD5D80393","C2572146-C746-492B-83ED-359D00C8E8F2"],"owner":{"__isSmartRef__":true,"id":137},"_ClipMode":"visible","isPressed":false,"layout":{"__isSmartRef__":true,"id":1003},"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.9940149800149939,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(688.5,7.4)","distanceToDragEvent":"lively.pt(42.7,-10.0)"},"984":{"submorphs":[],"scripts":[],"id":"AE34CADB-C81B-4D26-9991-EDD131478BCE","shape":{"__isSmartRef__":true,"id":985},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":983},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":986}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":988},"_HandStyle":"default","_PointerEvents":"none","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","AEA84B35-B349-4307-92C6-8F229705DFC2","A677CADF-24FF-4177-9A3A-FE9AAE7D60FE","0F875AD9-E54C-4735-9BA9-7B89574233A1","840EBE92-3BC2-42EC-819E-3CD002576490","78C4969D-2C33-4B17-9027-89B411B9F496","C9A3D112-C2BC-43A3-A3CA-A68F41A0E4CF","78CF2F1A-6697-4D03-AB2B-CAF862B4EDD6","8B416918-CA4B-46D1-8A3C-40F8A754E44D","01510710-A85B-4054-B0ED-7F2F02434806","8ABD23FB-E90C-4EEB-BF53-DF3C6ACF2BD4","87607080-4A72-484D-A5BD-5F67D468505F","F0E39FE9-F71C-4587-B25A-C4D2C29FE579","BA2AB73A-3967-4F9E-8828-8A638E521B31","5ECC4D2F-4996-403F-AF14-BD1F4BB720F6","54B08934-6893-4B80-8625-B60ABCE9CBC6","4808CF23-17EA-43D8-AE10-DAB21C642FA8","0813DF8A-CC9E-435B-B5A1-DF68BF226F37","047C4EE2-26A1-4AA7-9CE9-E8FF9A9D863B","728334BD-34B0-44FA-A778-2696AA82FEFA","7354635C-DC38-4BE3-9F56-070CE37B65EF","91627811-FB7C-4011-A0C4-7E94EE5DEBC6","EC4F18F6-7A30-4E9F-AEEE-127EF9677D14","164E5DC6-84C2-4EF2-A7E5-B758382B34B3","15E59EFD-EA71-480F-8491-7DE1B0342B56","E33B4ED0-51ED-43EE-843D-A3940502770F"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"985":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(45.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"986":{"style":{"__isSmartRef__":true,"id":987},"chunkOwner":{"__isSmartRef__":true,"id":984},"storedString":"Tests","_id":"_1371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"987":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"988":{"morph":{"__isSmartRef__":true,"id":984},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"989":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":990},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(45.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"990":{"stops":[{"__isSmartRef__":true,"id":991},{"__isSmartRef__":true,"id":992},{"__isSmartRef__":true,"id":993},{"__isSmartRef__":true,"id":994}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"991":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"992":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"993":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"994":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"995":{"stops":[{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":997},{"__isSmartRef__":true,"id":998},{"__isSmartRef__":true,"id":999}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"996":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"997":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"998":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"999":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"1000":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1001":{"sourceObj":{"__isSmartRef__":true,"id":983},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":137},"targetMethodName":"openPartTestRunner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1002":{"morph":{"__isSmartRef__":true,"id":983},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1003":{"moveHorizontal":true},"1004":{"submorphs":[{"__isSmartRef__":true,"id":1005},{"__isSmartRef__":true,"id":1012}],"scripts":[],"id":"8B549E09-2E48-42A0-9661-A8640BD718F8","shape":{"__isSmartRef__":true,"id":1015},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":1021},"lighterFill":{"__isSmartRef__":true,"id":1026},"label":{"__isSmartRef__":true,"id":1005},"name":"MagnifierButton2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":1031},"attributeConnections":[{"__isSmartRef__":true,"id":1037}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":1038},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC","81CB4C12-BCF0-4097-8B6D-D9419046367A","0767A57D-9BB2-48C6-9654-753D2B9D00A6","42871246-6725-4E41-A2C1-5A5BCF041097","BCE6E775-B5DF-4D6B-9F06-CDC02C1B1D0F","797EC165-A639-42D9-A059-669F6BEB92A7","FA498EFD-E50E-4CE0-9FA8-9AE2E8AE9580","4B68C371-CB37-45B4-910A-611E5FFC23DD","94E374B9-7ED4-4E39-96F1-6FD4E7AC3428","34D63515-7CC7-43FB-B7BB-87AFCA377D63","7E0B172C-0AF5-4C6E-B184-25A8FAE4FAB8","12239D52-D3D3-4713-BC3E-F0B95C488CB7","72559D92-4616-45A9-A0F2-72BA4147C0FB","E86C7328-AF24-4881-84AF-B7C7CEFEAE14","22D731CF-38F0-41CC-B125-74D2842ED847","B58A1A30-782E-4675-A276-2C01D35BEC70","ACEABA6D-071C-46C2-A325-BE30189AA45F","686443AE-DCDC-4998-8A39-48BC57D64FDC","8D660766-7C93-404C-9D92-B12CBF59A3CE","20DF1A18-6F2B-4D66-9110-75EB343C3C61","6295FA32-B7AA-4C61-BF03-5E69084C8FE8","72BEBA6F-7C26-47B6-AED2-253F02E48DE5","0B7FD918-BB64-49EA-A26A-45D408FBF85D","6B96BB67-EBE4-46AC-97F3-73F209469E96","7D373E3D-8EBD-4E82-99C0-2ABA4154DDD2","6716E808-9BF0-471E-8BA5-0E0E4491D002","EAFDE782-D226-4904-895E-20E9734A876C","97AE5B68-0D45-427A-A045-FE1586A23E01","652E4BFA-858C-41A6-96C1-A6A02B5B6BC2","571C5728-BEA1-475C-A2E2-319031399278","9A32C14D-DDAE-4202-B6BE-255A165918B1","70667C6E-DE53-414E-839C-295CD7636FEF","372B33EB-6D49-41CF-9F68-5A0C31487B7F","6F3D7DC8-DF06-4F8A-9C43-3C28834A9FF2"],"_ClipMode":"visible","highlightRectangle":{"__isSmartRef__":true,"id":1039},"isPressed":false,"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":1115},"moved":true,"owner":{"__isSmartRef__":true,"id":137},"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.9822058852177662,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1116},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(657.8,7.4)","distanceToDragEvent":"lively.pt(24.9,-13.0)"},"1005":{"submorphs":[],"scripts":[],"id":"04496C68-6705-4ADE-B3DC-434D7A6D6A4F","shape":{"__isSmartRef__":true,"id":1006},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":1004},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":1007},{"__isSmartRef__":true,"id":1009}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":1011},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702","A2CC4D56-B9D8-4A48-B6FF-DDDD85ACDC2E","5AC5C4DE-00B0-43DB-B7F1-765674CE818B","750A11C6-766E-4B48-AE32-D71DE811EB4A","66A7B56E-A94E-44AE-8AED-C0C1B07554D4","CA8596D3-2D4F-453B-BE1B-DCEC8F85389B","4D7DC32F-79CB-4AF8-8B21-AB4F1809D4A8","439DE430-7651-470E-97D8-00E7F96B04DA","DAC920E6-217B-4515-AC09-2F9DCBA7375C","BD48C003-0502-451D-B6AA-7369FF3D1030","C3B8F4EA-3F44-47F4-B569-A0D5AB263BA0","BF7F0FA3-3F2A-4EEF-9687-BE2B0635DF13","3D7AEAC1-C9DD-4941-BA46-16F6783F5699","E04A78F9-3D6E-403F-BA8D-2583FCFFCE53","47E1F29B-6896-467D-8654-CA18929AE57A","509D86FF-5400-4374-BE79-90F0A7E3E90C","C7E53EE0-065A-4C59-8D13-311566722BB7","BA078BAC-7263-4B10-AFD3-3C4EA0DD8707","BCFE28D1-A115-453E-9116-EECC8FE1D50F","A354FF2E-BD85-429A-97C2-254D6033F50C","B26A73EB-9EB9-4CB0-89AF-FEE10445E3EA","ED910382-D586-4EC1-BD77-5E8DD759BDB4","05A48E42-A3E2-4C4A-8160-685CE469FD4E","732A3761-4FE1-4312-8EF7-E5ADF0D9E087","CDBDE5FF-3426-45BB-963D-51B2156D9C40","65B8E035-5DF8-4B88-B57A-99E2A738EFB4","1EF9DF4A-1629-4F03-B6E7-14756A1A5488","43372ED0-6C0B-4D2C-A07E-AA5F3D7320FE","78DB1195-6CA8-4CF6-9525-3A2EA5D8A837","9788DC31-5EDD-44E4-A2A1-BDA89C6E2416","FB8973CD-AF73-4B3F-ABE5-EC89A1EBBD7B","07EF819E-F89D-4212-8810-B3B862B847F7","0F1E5FC4-0E25-4E92-8E6C-96DE488CBE13","FD02FFDC-70FA-4E72-8DB0-716DE93F07C4"],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"1006":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(26.2,21.3)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"1007":{"style":{"__isSmartRef__":true,"id":1008},"chunkOwner":{"__isSmartRef__":true,"id":1005},"storedString":"","_id":"_1372","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1008":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1009":{"style":{"__isSmartRef__":true,"id":1010},"chunkOwner":{"__isSmartRef__":true,"id":1005},"storedString":"","_id":"_1373","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1010":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"1011":{"morph":{"__isSmartRef__":true,"id":1005},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1012":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":1013},"derivationIds":[null,"29E543E0-AE93-493A-A694-FC1C330D0544","F0366E4C-E97F-4C77-BEE4-340A0668ADD5","347F6028-5092-4F54-9A34-3EFF3FF0B815","BF7387E7-BCD7-4A5B-B9D2-C14ECF59EFCA","85BA370B-966E-41F7-8C2F-F3A926EC2AA2","1652172B-339A-43A1-9589-70E68B35A28E","705524F7-129B-4102-834E-2A1A45985BB5","5707DF70-CD77-4D53-96ED-5A0AEB227FB7","257E62CE-C668-4317-B5B7-8D394BDC3F6C","2DD4BEA5-E85A-4CD0-953E-9EB2E0735654","BB96B696-7BD4-44C4-9D60-B1551B89D6FA","FCAABC48-FBAF-4E12-8BC9-AC4ACB5A167B","EB81C4D7-5BD8-4DAC-BD70-8675E2338AAC","1DBAE3FF-B2F6-4348-8E06-81139C138D6E","49E7D450-EF74-4E94-B33B-B888D952F3BD","F0B267C4-54BA-4E6F-BFDD-4B047F4FF41A","36B8611D-B449-4F6E-8D0F-B5FD6406D45D","779DB518-01BD-4D32-AD65-BFED801E5D06","F47D501C-3750-4F0D-A2E1-E1B9CDA8368C","5DEBC468-2070-496D-A3DA-1A5C54BBBC41","1DB6E59C-CCC0-45D1-B3DA-6B2ECCE90296","B8001536-A62C-4660-90C2-B02509302EE5","F97079BD-335C-41D9-A5D5-782FB6FE21BD","E1543B0F-A69C-40F0-91C9-129DA75A82A6","2CABA960-211A-4573-BCDE-86E23BCAA797","2045A65C-ADD8-4283-9D5D-B7705B975C2F","9E13F1F3-B61E-4C65-9EDE-DA9F6CA27BCE","4BCDA60B-0BA1-4D18-8590-B2697CF0849D","7CDE8D5C-0AD1-4D02-AF2B-49C7E1A9FF10","1282AB88-1192-43DA-9616-A728DC5EE334","36B3E085-1BEF-4065-8456-88236271781E","7D28DCD1-92B2-480A-9083-3BFE5511B531","DF1BE49D-EE38-46C2-AB64-3CD38EAB11C0"],"id":"9B17F93E-18EB-43D5-950B-CA908F693165","eventHandler":{"__isSmartRef__":true,"id":1014},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":1004},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","#startLetters":"showH","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-7.0,3.0)","distanceToDragEvent":"lively.pt(37.9,-10.9)"},"1013":{"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAABAAAAAQBPJcTWAAAALnRFWHRUaXRsZQBMRUZULVBPSU5USU5HIE1BR05JRllJTkcgR0xBU1MgKFUrMUY1MEQpw88haQAAABV0RVh0QXV0aG9yAEFuZHJldyBNYXJjdXNl5zc3gwAAAC90RVh0U29mdHdhcmUAaW5mby5maWxlZm9ybWF0LmRhdGEuVW5pY29kZVBuZ1NlcnZsZXRoAX8wAAAAQ3RFWHREZXNjcmlwdGlvbgBodHRwOi8vd3d3LmZpbGVmb3JtYXQuaW5mby9pbmZvL3VuaWNvZGUvMWY1MGQvaW5kZXguaHRtk2hNQgAAADt0RVh0Q29weXJpZ2h0AGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzIuMC9siJKDAAAIDklEQVR42u1daWxVRRQeCi0tIqCAQCTIUtEIGlk0ilqEkEbiQhSKGAyCooIIggsiQuMWZNGwVMUFNIhKZBMobZClgK1FwAU3wIpSREDcUFZFEM/JOzf3vPHet9ze1/eYe77k+zNzl5nz3ZlzZntPKYFAcHojDXimmKH6cQbwZuBM4HLgx8A9wBPAU8BjwJ3ADcDFwMnArsCaYjr/0BB4DwlwjAwfL38DzgX2AdYWk3pDJnAM8E/NuN8BpwEHAq8DXgpsCswANgN2APak/BeBu7T7sQX1A9YQE8fuDwYAf2BG/JrEaefxmSjaeOAO9syNwBwxd2Q0o/7fMhr6h8Fx+oBIX346cATwF/aON6Qbc0ZH4G4y0lHgOGAdD8/Be/KAs4AFwKsdrqkHnAA8Tu8rAzYWCWz0Bh5hraKTT11fL+AH1FXlA8/SrsEu61fmW9qLFEqNAv5LRsEw9twEvKMzcAvwJ3LoHG2AW+n9B4HdgixGHhNjiccuKlbUp9aC7yoGnqflraa8A8C2QRTjMvIVaITyKI61BjnkqiILWEjvPAwcxvLqAj+nvAqH7s1oNAfupcpjeNskhnvQOQ/xYfxQCziHRVl3sjxsNfspvYSuNR4Ywn5ClT5CA7lYkUPRU0YVy4CivkVlOE7TKxa6AP+ivKlBEORe9nUO8XD/QhWay6oqmlK3dYoirTYs70FK/wd4ocli1KVIByu7XXmb9BsOPEmj76riSfZxbAM2oPQMmqLB9GUmC/I0M8AtHp9xCd3/rM8fCHISy+vH0ruaOi3Coyqv6ETPKPSpXEOZ4X9XoSl+y89sovTNJgoyklW8rw8+aKFP5apFo3SrbMNcWsnFpgmylkU19R3yY4mc0mk0j88Z62PZ5jHDV7DQugE5dkx/3CQxzlb2qt6aCF1HtJH6BHoGju4v97F8+Sp8zeRGlldCaZtMEmQAq+zICL5hpUvrwfXy19gzZvhcvj6aILNZ3ij2ETQzRZA3WWU7RrgOfQsu05YCnyLxcFS9h91fTlMgfqKdJsg6lteBpQ8wRZASVqmmUa7txvwEJ/qe8SoxGxYymK+wpnMsNGHpxviRbVShkzEatAb5iEHUSrqzQVuiUMkMf5IFGWnM/71giiAHqEL7U7iMf2gtkk/B7/M51E4qMlklvzwNymgxl+VvobQPTRCkMavkDpaelkJlbOkgyDUsv0LZu19Oe/A++BBLvyIB0ZJX9HIQhHdZBymt1BQfso9V1Jorag28PUXKN8tBkHqUV4elLTJFkM9YpVqzllOcAmXDiG6vJsZhlt+Kpc80RZBiF2eJK4fZSS5bd4fWUcTyc1n6Y6YIMpVVii+LTgFOTHLZNjoIMpTlT2fpXUwRpIcKn021gHuwcDN0ss525Cnn3fIt2DXfK3vPljGbHtK1gdcFmkNdkYTK4gz0Tgcxytg1fI6rUBkGvubA54Ta0lTFK9VYFhS/xKV18PEHX3MfYpogfPUND9DwuamFlP5oNZXlZRcxlmsDWutsCl/aNQYZWhfBnTlOceNsLq459E1wyyhwEeNvFb7ZusClrEbhNlbJoyp8Y3UejehxPWS08v/MBrbIlcr92BvfwZit7KMKOC3f3FRBcBC2mRlBnz0dpOzN17gvqrdP7+2p7PkoJz7Hrq2pCfeqMhzXasbI1/KHa/m4Y93reRFcU1mrIh8IXaLCJzpnsLyfKRozHrNZpbFF9NHyx2pGw2tWAZ8H3gW8UjmvvWdSlIQb3raq6Kdzp6vwBbOhWn5/FRCggy9lFcdN1521ax5Q0Y9B41o7nkn8Rv1/gSkS0T/crb0vV4Uv465UAUNjLerCkfAN2jUXKef19apwnYP4AynK4tfNU6m1ZlMtaK/stQZrLXu0Q6g6OIpTjoVfAK/Xnp1GDp1fhy0th1rwHLqmEbXYHkEQJYcGitwouG2onoPx0Ne8q+yDmtGIs8lPUFCgH/Q5R4XPQlt8nfKzKB9/ouNHLT/ddFEw7t+uGQbPko90GY+gOHgcoRc5+YeBj1DY3JPyGrq8qy6JdMhBDAyz8azhZLq2JRuP4HE3a6f8KhNH7k4Dt9UORqoE3qGqfiAUo7L7lX1kjfMd4H0UHGTTFMpLzH8VUAS3iN2znsQ1GugvprCvkvMYdSFouBYxPu98FdoKusblmZXUoiz0J1FuYgPUfCrXAof7S4MgimXIRVH8wwHq5vBLna9Cs8ULyEgVWrCg8zAJ79TtjGDXjSMx5kd4Fk7XB+a3uq5Sob1QfoW86JzxR2zcjjyj3/mKTafUpCAi2nPLVcB+QA379YdoGuWEBxEwars1hujIOpZQQS1jWhzvKXeIDAOBRhT+YgQ2kcYK71NLwgOauAKJ50jwpFW8J2jHKHvLKwYBuENmVxyibAiqKIlCOkVY1g8HZHkQ5SOXeTaBR9RW9vT7agp34xVlo4jiL7KoG0TjriCR4hVlk0r8EYrAtZQiZa+14wx1qzhF2Syi+C+K5VOWko8RUVJIlPc8irIhKCP6ZItSqeJbh8kSU/qHDCbKMuZT4hFlrpgxcaIUUcuJR5TdYsLEiFLIQuLMOESZJOZLnCjLyMhrabqkZRRR1qsArDQmW5SlZOxPVWhJ2E2UNRJlVQ/wi19CRv9WhXbJoCh8zb+IujVBNYqymIyPP55ZxsQoVvK78kkBrp28rXVThSJGcoE7YZ5RoTMlc8SBpw7kj2IEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgSAZ+A+0ucC4BysctgAAAABJRU5ErkJggg==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(21.0,21.0)","_Padding":"lively.rect(0,0,0,0)"},"1014":{"morph":{"__isSmartRef__":true,"id":1012},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1015":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":1016},"_BorderRadius":5.2,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(26.2,21.3)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"1016":{"stops":[{"__isSmartRef__":true,"id":1017},{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1019},{"__isSmartRef__":true,"id":1020}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1017":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"1018":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"1019":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"1020":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"1021":{"stops":[{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1023},{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1025}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1022":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"1023":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1024":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"1025":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"1026":{"stops":[{"__isSmartRef__":true,"id":1027},{"__isSmartRef__":true,"id":1028},{"__isSmartRef__":true,"id":1029},{"__isSmartRef__":true,"id":1030}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"1027":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"1028":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1029":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"1030":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"1031":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"MagnifierButton","comment":"A magnifier, which calls setTarget: on the owner","changes":[{"__isSmartRef__":true,"id":1032},{"__isSmartRef__":true,"id":1034}],"revisionOnLoad":203770,"lastModifiedDate":{"__isSmartRef__":true,"id":1036},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1032":{"date":{"__isSmartRef__":true,"id":1033},"author":"jenslincke","message":"no comment","id":"F343C38F-1923-4DD3-BF9B-4A4B6A7111D6"},"1033":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1034":{"date":{"__isSmartRef__":true,"id":1035},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"1035":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1036":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1037":{"sourceObj":{"__isSmartRef__":true,"id":1004},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1038":{"morph":{"__isSmartRef__":true,"id":1004},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1039":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":1040},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":1041},"eventHandler":{"__isSmartRef__":true,"id":1082},"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","6FECB598-D130-4242-BF1B-E18767608129","0B23F218-078F-4912-A262-31B957885F41","C56BA290-B836-4946-B4EF-DBB6FBA2368C","61176BAF-CFE6-4F2C-9F0A-971AAD6595A1","CB4127B2-0AA5-4B50-9978-F1FF39924A82","113050BB-CF0E-4193-91C6-9C25FC857EE8","EFF939E4-317B-4662-943F-77A6E6F65BD0","AA288E7F-3972-4F0D-87DD-61E4BD9C9C97","903E8C60-1158-42D5-85D2-DF134DA6CEC1","28FD6210-A549-4A11-9178-04E77FF556C0","B3312E29-D786-469F-865E-91FD69475A52","D947A1C1-DCBE-4485-A33D-DF549F6978E0","56CE0E60-45BE-43FF-9C6C-296D8AC326B6","CC61E3F8-8C8D-4F24-A591-023D3C88DEC8"],"partTests":{"__isSmartRef__":true,"id":1083},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":1004},"attributeConnections":[{"__isSmartRef__":true,"id":1088},{"__isSmartRef__":true,"id":1090},{"__isSmartRef__":true,"id":1092}],"isToolMorph":true,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1094},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(900.8,445.9)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"1040":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(1831.4,1913.5)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"1041":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":1042},{"__isSmartRef__":true,"id":1044},{"__isSmartRef__":true,"id":1046},{"__isSmartRef__":true,"id":1048},{"__isSmartRef__":true,"id":1050},{"__isSmartRef__":true,"id":1052},{"__isSmartRef__":true,"id":1054},{"__isSmartRef__":true,"id":1056},{"__isSmartRef__":true,"id":1058},{"__isSmartRef__":true,"id":1060},{"__isSmartRef__":true,"id":1062},{"__isSmartRef__":true,"id":1064},{"__isSmartRef__":true,"id":1066},{"__isSmartRef__":true,"id":1068},{"__isSmartRef__":true,"id":1070},{"__isSmartRef__":true,"id":1072},{"__isSmartRef__":true,"id":1074},{"__isSmartRef__":true,"id":1076},{"__isSmartRef__":true,"id":1078},{"__isSmartRef__":true,"id":1080}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1042":{"date":{"__isSmartRef__":true,"id":1043},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"1043":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1044":{"date":{"__isSmartRef__":true,"id":1045},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"1045":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1046":{"date":{"__isSmartRef__":true,"id":1047},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"1047":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1048":{"date":{"__isSmartRef__":true,"id":1049},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"1049":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1050":{"date":{"__isSmartRef__":true,"id":1051},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"1051":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1052":{"date":{"__isSmartRef__":true,"id":1053},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"1053":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1054":{"date":{"__isSmartRef__":true,"id":1055},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"1055":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1056":{"date":{"__isSmartRef__":true,"id":1057},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1057":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1058":{"date":{"__isSmartRef__":true,"id":1059},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1059":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1060":{"date":{"__isSmartRef__":true,"id":1061},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1061":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1062":{"date":{"__isSmartRef__":true,"id":1063},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1063":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1064":{"date":{"__isSmartRef__":true,"id":1065},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"1065":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1066":{"date":{"__isSmartRef__":true,"id":1067},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"1067":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1068":{"date":{"__isSmartRef__":true,"id":1069},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"1069":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1070":{"date":{"__isSmartRef__":true,"id":1071},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"1071":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1072":{"date":{"__isSmartRef__":true,"id":1073},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"1073":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1074":{"date":{"__isSmartRef__":true,"id":1075},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"1075":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1076":{"date":{"__isSmartRef__":true,"id":1077},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"1077":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1078":{"date":{"__isSmartRef__":true,"id":1079},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"1079":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1080":{"date":{"__isSmartRef__":true,"id":1081},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"1081":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1082":{"morph":{"__isSmartRef__":true,"id":1039},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1083":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1084}},"1084":{"test01IsMorph":{"__isSmartRef__":true,"id":1085}},"1085":{"varMapping":{"__isSmartRef__":true,"id":1086},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1086":{"this":{"__isSmartRef__":true,"id":1083}},"1087":{},"1088":{"sourceObj":{"__isSmartRef__":true,"id":1039},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":1039},"targetMethodName":"updateOnMove","varMapping":{"__isSmartRef__":true,"id":1089},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1089":{"source":{"__isSmartRef__":true,"id":1039},"target":{"__isSmartRef__":true,"id":1039}},"1090":{"sourceObj":{"__isSmartRef__":true,"id":1039},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"removeHighlighting","varMapping":{"__isSmartRef__":true,"id":1091},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1091":{"source":{"__isSmartRef__":true,"id":1039},"target":{"__isSmartRef__":true,"id":1004}},"1092":{"sourceObj":{"__isSmartRef__":true,"id":1039},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":1004},"targetMethodName":"setTarget","varMapping":{"__isSmartRef__":true,"id":1093},"converterString":"function () {\n return this.sourceObj.morphUnderCursor();\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1093":{"source":{"__isSmartRef__":true,"id":1039},"target":{"__isSmartRef__":true,"id":1004}},"1094":{"update":{"__isSmartRef__":true,"id":1095},"updateOnMove":{"__isSmartRef__":true,"id":1099},"bringToFront":{"__isSmartRef__":true,"id":1103},"morphUnderCursor":{"__isSmartRef__":true,"id":1111}},"1095":{"varMapping":{"__isSmartRef__":true,"id":1096},"source":"function update(morphUnderCursor) {\n if (morphUnderCursor === this.magnifierButton ||\n this.magnifierButton.submorphs.include(morphUnderCursor)) {\n morphToHighlight = this.magnifierButton.currentTarget();\n } else {\n morphToHighlight = morphUnderCursor;\n }\n\n if (morphToHighlight && morphToHighlight.world()) {\n this.setPosition(morphToHighlight.getPositionInWorld());\n this.setExtent(morphToHighlight.getExtent());\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1096":{"this":{"__isSmartRef__":true,"id":1039}},"1097":{"timestamp":{"__isSmartRef__":true,"id":1098},"user":"lauritz","tags":[]},"1098":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1099":{"varMapping":{"__isSmartRef__":true,"id":1100},"source":"function updateOnMove() {\n this.update(this.morphUnderCursor());\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":1101},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1100":{"this":{"__isSmartRef__":true,"id":1039}},"1101":{"timestamp":{"__isSmartRef__":true,"id":1102},"user":"lauritz","tags":[]},"1102":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1103":{"varMapping":{"__isSmartRef__":true,"id":1104},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000;\n}","funcProperties":{"__isSmartRef__":true,"id":1109},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1104":{"this":{"__isSmartRef__":true,"id":1039},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1105}},"1105":{"$super":{"__isSmartRef__":true,"id":1106}},"1106":{"varMapping":{"__isSmartRef__":true,"id":1107},"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":1108},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1107":{"obj":{"__isSmartRef__":true,"id":1039},"name":"bringToFront"},"1108":{},"1109":{"timestamp":{"__isSmartRef__":true,"id":1110},"user":"lauritz","tags":[]},"1110":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1111":{"varMapping":{"__isSmartRef__":true,"id":1112},"source":"function morphUnderCursor() {\n var that = this,\n world = lively.morphic.World.current(); \n \n return world.morphsContainingPoint(world.firstHand().getPosition()).detect(\n function(ea) {\n return !ea.isPlaceholder &&\n !ea.isHalo &&\n (!ea.owner || !ea.owner.isHalo) &&\n !(ea === that);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":1113},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1112":{"this":{"__isSmartRef__":true,"id":1039}},"1113":{"timestamp":{"__isSmartRef__":true,"id":1114},"user":"lauritz","tags":[]},"1114":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1115":{"moveHorizontal":true},"1116":{"onFire":{"__isSmartRef__":true,"id":1117},"removeHighlighting":{"__isSmartRef__":true,"id":1121},"onMouseMove":{"__isSmartRef__":true,"id":1125},"onMouseOut":{"__isSmartRef__":true,"id":1133},"reset":{"__isSmartRef__":true,"id":1141},"isTracking":{"__isSmartRef__":true,"id":1145},"isHighlighting":{"__isSmartRef__":true,"id":1149},"currentTarget":{"__isSmartRef__":true,"id":1153},"setupHighlightRectangle":{"__isSmartRef__":true,"id":1157},"setTarget":{"__isSmartRef__":true,"id":1161}},"1117":{"varMapping":{"__isSmartRef__":true,"id":1118},"source":"function onFire() {\n var hand = lively.morphic.World.current().firstHand(),\n highlight = this.highlightRectangle,\n that = this;\n\n if (this.isTracking()) {\n this.removeHighlighting();\n } else {\n this.world().addMorph(highlight);\n hand.highlightConnection = connect(hand, \"scrollFocusMorph\", highlight, \"update\");\n highlight.bringToFront();\n if (!this.currentTarget() || !this.currentTarget().world()) {\n highlight.setExtent(pt(0,0));\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1118":{"this":{"__isSmartRef__":true,"id":1004}},"1119":{"timestamp":{"__isSmartRef__":true,"id":1120},"user":"lauritz","tags":[]},"1120":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1121":{"varMapping":{"__isSmartRef__":true,"id":1122},"source":"function removeHighlighting() {\n var hand = this.world().firstHand();\n\n if (this.highlightRectangle) {\n this.highlightRectangle.remove();\n }\n\n hand.attributeConnections.removeAt(\n hand.attributeConnections.indexOf(hand.highlightConnection));\n hand.highlightConnection = null;\n}","funcProperties":{"__isSmartRef__":true,"id":1123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1122":{"this":{"__isSmartRef__":true,"id":1004}},"1123":{"timestamp":{"__isSmartRef__":true,"id":1124},"user":"jenslincke","tags":[]},"1124":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1125":{"varMapping":{"__isSmartRef__":true,"id":1126},"source":"function onMouseMove(evt) {\n var target = this.currentTarget();\n if (target && target.world() && !this.isHighlighting()) {\n this.highlightRectangle.update(target);\n this.world().addMorph(this.highlightRectangle);\n this.highlightRectangle.bringToFront();\n this.targetHighlight = this.highlightRectangle;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1126":{"this":{"__isSmartRef__":true,"id":1004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1127}},"1127":{"$super":{"__isSmartRef__":true,"id":1128}},"1128":{"varMapping":{"__isSmartRef__":true,"id":1129},"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":1130},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1129":{"obj":{"__isSmartRef__":true,"id":1004},"name":"onMouseMove"},"1130":{},"1131":{"timestamp":{"__isSmartRef__":true,"id":1132},"user":"lauritz","tags":[]},"1132":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1133":{"varMapping":{"__isSmartRef__":true,"id":1134},"source":"function onMouseOut() {\n if (this.isHighlighting()) {\n if (!this.isTracking()) {\n this.targetHighlight.remove();\n }\n delete this.targetHighlight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":1139},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1134":{"this":{"__isSmartRef__":true,"id":1004},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1135}},"1135":{"$super":{"__isSmartRef__":true,"id":1136}},"1136":{"varMapping":{"__isSmartRef__":true,"id":1137},"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":1138},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1137":{"obj":{"__isSmartRef__":true,"id":1004},"name":"onMouseOut"},"1138":{},"1139":{"timestamp":{"__isSmartRef__":true,"id":1140},"user":"lauritz","tags":[]},"1140":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1141":{"varMapping":{"__isSmartRef__":true,"id":1142},"source":"function reset() {\n this.highlightRectangle.attributeConnections = [];\n \n var r = this.highlightRectangle;\n r.isToolMorph = true\n disconnectAll(r)\n connect(r, \"onMouseMove\", this.highlightRectangle, \"updateOnMove\")\n connect(r, \"onMouseUp\", this, \"removeHighlighting\")\n connect(r, \"onMouseUp\", this, \"setTarget\",\n {converter: function () {\n return this.sourceObj.morphUnderCursor();\n }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":1143},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1142":{"this":{"__isSmartRef__":true,"id":1004}},"1143":{"timestamp":{"__isSmartRef__":true,"id":1144},"user":"jenslincke","tags":[]},"1144":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1145":{"varMapping":{"__isSmartRef__":true,"id":1146},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection;\n}","funcProperties":{"__isSmartRef__":true,"id":1147},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1146":{"this":{"__isSmartRef__":true,"id":1004}},"1147":{"timestamp":{"__isSmartRef__":true,"id":1148},"user":"lauritz","tags":[]},"1148":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1149":{"varMapping":{"__isSmartRef__":true,"id":1150},"source":"function isHighlighting() {\n return !!this.targetHighlight;\n}","funcProperties":{"__isSmartRef__":true,"id":1151},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1150":{"this":{"__isSmartRef__":true,"id":1004}},"1151":{"timestamp":{"__isSmartRef__":true,"id":1152},"user":"lauritz","tags":[]},"1152":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1153":{"varMapping":{"__isSmartRef__":true,"id":1154},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":1155},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1154":{"this":{"__isSmartRef__":true,"id":1004}},"1155":{"timestamp":{"__isSmartRef__":true,"id":1156},"user":"lauritz","tags":[]},"1156":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1157":{"varMapping":{"__isSmartRef__":true,"id":1158},"source":"function setupHighlightRectangle() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":1159},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1158":{"this":{"__isSmartRef__":true,"id":1004}},"1159":{"timestamp":{"__isSmartRef__":true,"id":1160},"user":"jenslincke","tags":[]},"1160":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1161":{"varMapping":{"__isSmartRef__":true,"id":1162},"source":"function setTarget(obj) {\n this.owner.setTarget(obj)\n}","funcProperties":{"__isSmartRef__":true,"id":1163},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1162":{"this":{"__isSmartRef__":true,"id":1004}},"1163":{"timestamp":{"__isSmartRef__":true,"id":1164},"user":"jenslincke","tags":[]},"1164":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1165":{"target":{"__isSmartRef__":true,"id":137},"selector":"update","args":[],"stopped":true,"tickTime":500,"suspended":true,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"1166":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(832.0,404.8)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"1167":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":1168}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1168":{"date":{"__isSmartRef__":true,"id":1169},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"1169":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1170":{"morph":{"__isSmartRef__":true,"id":137},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1171":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1172":{},"1173":{"displayInitialScript":{"__isSmartRef__":true,"id":1174},"displayJavaScriptSource":{"__isSmartRef__":true,"id":1178},"displaySourceForConnection":{"__isSmartRef__":true,"id":1182},"displaySourceForScript":{"__isSmartRef__":true,"id":1186},"generateSourceForConnection":{"__isSmartRef__":true,"id":1190},"generateSourceForScript":{"__isSmartRef__":true,"id":1194},"generateTargetCode":{"__isSmartRef__":true,"id":1198},"newConnection":{"__isSmartRef__":true,"id":1202},"newScript":{"__isSmartRef__":true,"id":1206},"reset":{"__isSmartRef__":true,"id":1210},"selectChangedContent":{"__isSmartRef__":true,"id":1214},"setTarget":{"__isSmartRef__":true,"id":1218},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":1222},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1226},"updateLists":{"__isSmartRef__":true,"id":1230},"onShutdown":{"__isSmartRef__":true,"id":1234},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":1238},"update":{"__isSmartRef__":true,"id":1242},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":1246},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":1250},"printTags":{"__isSmartRef__":true,"id":1258},"setTag":{"__isSmartRef__":true,"id":1262},"runScript":{"__isSmartRef__":true,"id":1266},"openPartTestRunner":{"__isSmartRef__":true,"id":1270},"hasUnsavedChanges":{"__isSmartRef__":true,"id":1274}},"1174":{"varMapping":{"__isSmartRef__":true,"id":1175},"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":1176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1175":{"this":{"__isSmartRef__":true,"id":137}},"1176":{"timestamp":{"__isSmartRef__":true,"id":1177},"user":"lauritz","tags":[]},"1177":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1178":{"varMapping":{"__isSmartRef__":true,"id":1179},"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":1180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1179":{"this":{"__isSmartRef__":true,"id":137}},"1180":{"timestamp":{"__isSmartRef__":true,"id":1181},"user":"lauritz","tags":[]},"1181":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1182":{"varMapping":{"__isSmartRef__":true,"id":1183},"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":1184},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1183":{"this":{"__isSmartRef__":true,"id":137}},"1184":{"timestamp":{"__isSmartRef__":true,"id":1185},"user":"conradcalmez","tags":[]},"1185":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1186":{"varMapping":{"__isSmartRef__":true,"id":1187},"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 if (code) this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":1188},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1187":{"this":{"__isSmartRef__":true,"id":137}},"1188":{"timestamp":{"__isSmartRef__":true,"id":1189},"user":"cschuster","tags":[]},"1189":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1190":{"varMapping":{"__isSmartRef__":true,"id":1191},"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":1192},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1191":{"this":{"__isSmartRef__":true,"id":137}},"1192":{"timestamp":{"__isSmartRef__":true,"id":1193},"user":"lauritz","tags":[]},"1193":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1194":{"varMapping":{"__isSmartRef__":true,"id":1195},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (!script) return;\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":1196},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1195":{"this":{"__isSmartRef__":true,"id":137}},"1196":{"timestamp":{"__isSmartRef__":true,"id":1197},"user":"cschuster","tags":[]},"1197":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1198":{"varMapping":{"__isSmartRef__":true,"id":1199},"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":1200},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1199":{"this":{"__isSmartRef__":true,"id":137}},"1200":{"timestamp":{"__isSmartRef__":true,"id":1201},"user":"lauritz","tags":[]},"1201":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1202":{"varMapping":{"__isSmartRef__":true,"id":1203},"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":1204},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1203":{"this":{"__isSmartRef__":true,"id":137}},"1204":{"timestamp":{"__isSmartRef__":true,"id":1205},"user":"lauritz","tags":[]},"1205":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1206":{"varMapping":{"__isSmartRef__":true,"id":1207},"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":1208},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1207":{"this":{"__isSmartRef__":true,"id":137}},"1208":{"timestamp":{"__isSmartRef__":true,"id":1209},"user":"lauritz","tags":[]},"1209":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1210":{"varMapping":{"__isSmartRef__":true,"id":1211},"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 \n this.target = null;\n this.currentTag = null;\n \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 \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":1212},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1211":{"this":{"__isSmartRef__":true,"id":137}},"1212":{"timestamp":{"__isSmartRef__":true,"id":1213},"user":"lauritz","tags":[]},"1213":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1214":{"varMapping":{"__isSmartRef__":true,"id":1215},"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":2088},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2087":{"this":{"__isSmartRef__":true,"id":1578}},"2088":{},"2089":{"varMapping":{"__isSmartRef__":true,"id":2090},"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":2091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2090":{"this":{"__isSmartRef__":true,"id":1578}},"2091":{},"2092":{"varMapping":{"__isSmartRef__":true,"id":2093},"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":2094},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2093":{"this":{"__isSmartRef__":true,"id":1578}},"2094":{},"2095":{"varMapping":{"__isSmartRef__":true,"id":2096},"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":2097},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2096":{"this":{"__isSmartRef__":true,"id":1578}},"2097":{},"2098":{"varMapping":{"__isSmartRef__":true,"id":2099},"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":2191},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2190":{"this":{"__isSmartRef__":true,"id":2166}},"2191":{"timestamp":{"__isSmartRef__":true,"id":2192},"user":"lauritz","categories":[]},"2192":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2193":{"submorphs":[{"__isSmartRef__":true,"id":2194}],"scripts":[],"id":"2162734A-DBC2-44B1-AB43-5C0AAB0033A2","shape":{"__isSmartRef__":true,"id":2199},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2205},"lighterFill":{"__isSmartRef__":true,"id":2210},"label":{"__isSmartRef__":true,"id":2194},"attributeConnections":[{"__isSmartRef__":true,"id":2215}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":2217},"owner":{"__isSmartRef__":true,"id":1571},"eventHandler":{"__isSmartRef__":true,"id":2218},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":1571},"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","10F3E467-6BB8-4D07-BD17-8C50593FD6B8","7260818C-6472-4288-8BDD-1E7798A543F3","DEBB5BDB-018D-4BA1-9FB9-73DC84C51D89","D75BCAED-3029-46EB-B944-4A102BB1BC0F","9A977DA2-B325-4DFA-9683-3DC9ECEFAAC0","48A5078F-B4A5-4F4E-884D-84CCDFFBE6F0","33905494-AA01-4311-8398-1F6C3D4F1BAC","5D7201A7-1374-49AD-851F-E3167EFED99E","9B69B6C6-71F2-402E-89D1-E97FC2D3AE13","DA1B3A74-F4A6-427B-8FBD-3D2E9D8CD866","DBFC4A4F-8601-4C32-9460-53902C3B0F37","ED51CA7C-CE32-4CF5-9398-0BA9B791FF5E","4F7A7C1A-3788-478C-AFF5-BA62C7FCB01D","FCEFF15E-E5B8-4C7E-A139-302649441119","3674B8DC-F4E5-4A5C-ACEC-96D743BB6050","33E0336F-FD6A-4AAB-AECB-B7D6C7C80631","761015EE-47CF-40F6-A403-8A959B2DB0A6","361B531D-7A1C-441A-BE8B-0B503543FF6C","E283DDFD-1D8F-4E3D-A0BC-40C30221FFDC","0EC23EA3-7B34-429A-922D-5D139F127D1E","7E51F443-B27F-4B6F-8AC0-51D08D8FB329","C5835A07-8E3F-4921-8BC1-4276E9238910","0017ED41-DAB7-480B-A311-3C022294A412","6EA796F9-3CAC-410F-AF6E-4A9F01DCA995","149502EC-4525-42A7-AF15-33F0D67A1427"],"_ClipMode":"visible","isPressed":false,"_PreviousBorderWidth":1,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2219},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(160.0,40.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(33.4,-21.3)"},"2194":{"submorphs":[],"scripts":[],"id":"42499C9A-E40E-4245-B9F9-CCEA66BDAE06","shape":{"__isSmartRef__":true,"id":2195},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":25,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":2193},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":2196}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2198},"_HandStyle":"default","_PointerEvents":"none","_MinTextWidth":25,"_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","88F1581A-7AEF-4646-B7F9-3890CDDB8494","DC577877-7F00-4238-9246-08C2A10C0CC9","818C9467-71A2-44D6-B01F-1523A0CD5476","C0CF3DDB-AA12-49E0-B12A-6B620552BB47","853E19A1-E97D-463D-A24F-0148671EB696","0203CA4C-E523-4F7D-824B-F09BA3914BDD","18B98A59-6C8E-4386-B3EF-A17259C51C0F","24D84E0A-FA16-47DE-934D-E60729EEB227","7035F1EB-4B8C-4F20-B3AC-966403F55C0A","69831817-0662-4848-8481-44558987D21D","BA13E4C6-DF2A-4059-9174-7725FA3FE514","3E989A29-2A8F-4AFE-B312-A0852B746605","7B675033-945D-4AE1-B85F-DBD35C7B02AA","E0D76A08-70F9-4710-907E-B2D83D60D29A","495F5D43-B450-45B7-B238-FC12AA8F6488","B551041D-4E6E-44F3-8405-1DCE5344BCCD","0A287650-EC32-45AA-8504-0513B196727F","717B0EFA-1422-4224-9A53-5A494F6191A4","C86C167E-8A7D-43BE-AFED-AAEDA70B95EE","97247E8A-2818-4B44-BCDD-348126BD380C","DBD12A55-8830-4DAC-9B09-56E72668513C","695750EC-6C32-48F3-BA0D-8645F5C9C6D7","368C8CDF-CBB5-4518-9940-89109B759FF9","0E77AB29-331E-4E32-8950-2C381F077101","F6F72A0B-C0D9-40CC-BA23-4FC7BCDE3413"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"2195":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"2196":{"style":{"__isSmartRef__":true,"id":2197},"chunkOwner":{"__isSmartRef__":true,"id":2194},"storedString":"-","_id":"_1363","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2197":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2198":{"morph":{"__isSmartRef__":true,"id":2194},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2199":{"_Fill":{"__isSmartRef__":true,"id":2200},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(25.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"2200":{"stops":[{"__isSmartRef__":true,"id":2201},{"__isSmartRef__":true,"id":2202},{"__isSmartRef__":true,"id":2203},{"__isSmartRef__":true,"id":2204}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2201":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2202":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"2203":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"2204":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"2205":{"stops":[{"__isSmartRef__":true,"id":2206},{"__isSmartRef__":true,"id":2207},{"__isSmartRef__":true,"id":2208},{"__isSmartRef__":true,"id":2209}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2206":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2207":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2208":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2209":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"2210":{"stops":[{"__isSmartRef__":true,"id":2211},{"__isSmartRef__":true,"id":2212},{"__isSmartRef__":true,"id":2213},{"__isSmartRef__":true,"id":2214}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2211":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"2212":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2213":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2214":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"2215":{"sourceObj":{"__isSmartRef__":true,"id":2193},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2193},"targetMethodName":"deleteSelectedScript","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":2216},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2216":{"source":{"__isSmartRef__":true,"id":2193},"target":{"__isSmartRef__":true,"id":2193}},"2217":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"comment":"Simple button. Connect to 'fire' to trigger actions when the button is pressed.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2218":{"morph":{"__isSmartRef__":true,"id":2193},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2219":{"deleteSelectedScript":{"__isSmartRef__":true,"id":2220}},"2220":{"varMapping":{"__isSmartRef__":true,"id":2221},"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":2222},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2221":{"this":{"__isSmartRef__":true,"id":2193}},"2222":{"timestamp":{"__isSmartRef__":true,"id":2223},"user":"lauritz"},"2223":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2224":{"submorphs":[{"__isSmartRef__":true,"id":2225}],"scripts":[],"id":"AA5D3605-3AFE-4385-B91A-5BBB6D71CB53","shape":{"__isSmartRef__":true,"id":2231},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2232},"lighterFill":{"__isSmartRef__":true,"id":2237},"label":{"__isSmartRef__":true,"id":2225},"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":2242},"list":[],"eventHandler":{"__isSmartRef__":true,"id":2243},"owner":{"__isSmartRef__":true,"id":1571},"textString":"","selection":{"__isSmartRef__":true,"id":2244},"_ClipMode":"visible","prevScroll":[0,0],"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","672DEFAB-2BE5-4C60-9779-3B44694FBEB1","E3476213-5872-492C-BE29-0C6A5A150ED8","AA2F6ABE-1CCB-403D-94DD-8FB371F3DDCE","54B67D51-AB19-40A0-A2A6-EC51F3171CAC","1CF44342-896F-4ACB-847F-7CB3CD10ED5A","279A9257-1667-4E0C-844B-A4E0D02462F0","DDCBD835-4B3F-4B8F-9623-696DA76C3A2C","D2CB17F3-5DD0-4E97-BF99-40A95ABF976B","FA519665-2394-43D3-8DCF-802A158F3291","90519BB5-7419-46E0-B7E3-4C26304F3414","0B7FC23C-C63C-4F20-8BAF-1BD1B7205762","B54FAD70-E598-4B06-8F41-00843A06D4B0","5A8ECBD6-ADDE-43FA-8D9E-BC483898DF8A","69DD3160-FAD3-4AD8-9B1C-CB9229AD8034","2C8AD368-8815-41D5-8C8D-CD36ECCF4A96","80C5655D-B03D-413B-A84C-D59A60D8EEEC","BA8066E4-5B8E-4048-97C5-332953805999","E27E2CB2-789E-4269-B5E8-2631B5D2840B","0EDAA37B-E8BA-4DE7-820A-17A44E299F5C","81F15272-5E6E-4544-B6FE-96BDD357A17C","1ED99A20-94B6-4F1F-9524-CBBCEADB0A79","49EB3FB8-F23A-412C-B150-C30E92294AB5","737AC59E-32F0-4E47-95BC-205D3A151AEA","83D5F3BE-D631-4F4E-AB90-EA22B6D19D81","766D79B2-671B-4F0B-9E03-6ED6530532FF"],"isPressed":false,"_PreviousBorderWidth":1,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2250},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(200.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(122.9,-11.6)"},"2225":{"submorphs":[],"scripts":[],"id":"CD5A465E-78B8-49BF-8839-BAC9CE92E249","shape":{"__isSmartRef__":true,"id":2226},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":220,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":2224},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":2227}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2229}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":2230},"_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","2459D1F0-E49C-4882-AB4C-D78C1A496962","3D8D3B02-0459-45C1-A606-D0DB4B07958C","78AAE288-D261-4BEA-9436-C8C31B890B44","2E10F795-9892-4BF7-9A46-BCB90FD6112E","DE32EFA9-C920-42F6-9F2E-7EDABEC006AF","23FBFC79-1927-48FD-8C1C-09FFD7539784","3409506C-9BAE-43DA-BCAF-94392F9646DF","ED94289E-98FC-4126-9EED-25FDC98D5BFC","63C2F1D8-3A1B-464B-9945-1F661D4CFE26","782AAB82-32E9-4A37-9DC0-3118636C2CCE","D564B3C8-D9B5-4D7D-80DD-16715ED878F6","D9344242-9F26-4A5D-B86D-6FAEA43B439C","E7E3A5EE-8F82-4F04-9E65-771E2E4AC9D1","55BF0D1C-FCDF-4D8B-9E42-8EF0F36074A3","B3BE05E0-5704-45B4-8B1D-E7FDA5CE6235","9A503124-0F1D-4390-B668-E4457CBC1376","26D1AD85-C129-4C24-A16A-B6863FC35F41","7425ED3B-1418-47C8-A2EE-52CDF3C4D860","C4B9C269-4F6E-4EA2-A6EA-38C21A011591","952BC06E-5007-4618-9289-931E66292E9D","BB2E676F-0EE9-4AD1-8108-34E3EE9902CA","6CC7E1BE-92FC-45F0-818A-23D12CD52810","1BE7546E-798F-44DE-A7CE-38AD4B1BC093","3AE1BF24-F153-4077-B7DF-3847E802B72F","866B094F-35BD-40A3-9816-53873865AD18"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"2226":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"2227":{"style":{"__isSmartRef__":true,"id":2228},"chunkOwner":{"__isSmartRef__":true,"id":2225},"_id":"_327","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2228":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2229":{"sourceObj":{"__isSmartRef__":true,"id":2225},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2224},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2230":{"morph":{"__isSmartRef__":true,"id":2225},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2231":{"_Fill":{"__isSmartRef__":true,"id":2232},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(220.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"2232":{"stops":[{"__isSmartRef__":true,"id":2233},{"__isSmartRef__":true,"id":2234},{"__isSmartRef__":true,"id":2235},{"__isSmartRef__":true,"id":2236}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2233":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2234":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2235":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2236":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"2237":{"stops":[{"__isSmartRef__":true,"id":2238},{"__isSmartRef__":true,"id":2239},{"__isSmartRef__":true,"id":2240},{"__isSmartRef__":true,"id":2241}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2238":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"2239":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2240":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2241":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"2242":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2243":{"morph":{"__isSmartRef__":true,"id":2224},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2244":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":2245},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":true,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":580,"_MaxTextHeight":null,"showsHalos":false,"_FontSize":28,"name":"Title","partsBinMetaInfo":{"__isSmartRef__":true,"id":2246},"textChunks":[{"__isSmartRef__":true,"id":2247}],"eventHandler":{"__isSmartRef__":true,"id":2249},"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,"_ClipMode":"visible","_WhiteSpaceHandling":"pre-wrap","isCopyMorphRef":true,"morphRefId":2,"prevScroll":[0,0],"__serializedExpressions__":["_Position","textColor","_TextColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(37.0,23.0)","textColor":"Color.rgb(0,0,0)","_TextColor":"Color.rgb(0,79,152)","distanceToDragEvent":"lively.pt(221.0,-12.0)"},"2245":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(580.0,43.0)","_BorderColor":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"2246":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2247":{"style":{"__isSmartRef__":true,"id":2248},"chunkOwner":{"__isSmartRef__":true,"id":2244},"storedString":"","_id":"_1365","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2248":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2249":{"morph":{"__isSmartRef__":true,"id":2244},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2250":{"reset":{"__isSmartRef__":true,"id":2251},"onMouseDown":{"__isSmartRef__":true,"id":2255},"onBlur":{"__isSmartRef__":true,"id":2263},"createScenePresentation":{"__isSmartRef__":true,"id":2271},"presentTargetChooser":{"__isSmartRef__":true,"id":2275},"removeTargetChooser":{"__isSmartRef__":true,"id":2279},"removeHighlight":{"__isSmartRef__":true,"id":2283},"highlightCurrentTarget":{"__isSmartRef__":true,"id":2287},"updateTargetFromSelection":{"__isSmartRef__":true,"id":2291},"currentMorphicScene":{"__isSmartRef__":true,"id":2295},"highlightTarget":{"__isSmartRef__":true,"id":2299},"setLabel":{"__isSmartRef__":true,"id":2303},"updateTargetFromOwner":{"__isSmartRef__":true,"id":2311}},"2251":{"varMapping":{"__isSmartRef__":true,"id":2252},"source":"function reset() {\n this.removeTargetChooser();\n this.setLabel('empty');\n this.applyStyle({fixedWidth: true, fixedHeight: true, borderWidth: 1, overflow: 'visible'});\n}","funcProperties":{"__isSmartRef__":true,"id":2253},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2252":{"this":{"__isSmartRef__":true,"id":2224}},"2253":{"timestamp":{"__isSmartRef__":true,"id":2254},"user":"lauritz","tags":[]},"2254":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2255":{"varMapping":{"__isSmartRef__":true,"id":2256},"source":"function onMouseDown(evt) {\n if (evt.isCommandKey() || evt.isRightMouseButtonDown()) {\n return $super(evt);\n }\n \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.removeTargetChooser();\n } else {\n this.presentTargetChooser();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2261},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2256":{"this":{"__isSmartRef__":true,"id":2224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2257}},"2257":{"$super":{"__isSmartRef__":true,"id":2258}},"2258":{"varMapping":{"__isSmartRef__":true,"id":2259},"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":2260},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2259":{"obj":{"__isSmartRef__":true,"id":2224},"name":"onMouseDown"},"2260":{},"2261":{"timestamp":{"__isSmartRef__":true,"id":2262},"user":"lauritz","tags":[]},"2262":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2263":{"varMapping":{"__isSmartRef__":true,"id":2264},"source":"function onBlur(evt) {\n $super(evt);\n \n // remove the scene presentation when clicked elsewhere\n var target = evt.world.clickedOnMorph;\n if (!this.listMorph || !this.listMorph.isAncestorOf(target)) {\n this.removeTargetChooser();\n } else {\n this.focus();\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2269},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2264":{"this":{"__isSmartRef__":true,"id":2224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2265}},"2265":{"$super":{"__isSmartRef__":true,"id":2266}},"2266":{"varMapping":{"__isSmartRef__":true,"id":2267},"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":2268},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2267":{"obj":{"__isSmartRef__":true,"id":2224},"name":"onBlur"},"2268":{},"2269":{"timestamp":{"__isSmartRef__":true,"id":2270},"user":"lauritz","tags":[]},"2270":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2271":{"varMapping":{"__isSmartRef__":true,"id":2272},"source":"function createScenePresentation() {\n var that = this,\n items = this.currentMorphicScene(),\n height = this.owner.getExtent().y,\n bounds = new Rectangle(0, this.getExtent().y, this.getExtent().x * 2, height),\n treeMorph = new lively.morphic.Tree(),\n rect = lively.morphic.Morph.makeRectangle(bounds),\n currentTarget = null;\n \n treeMorph.childrenPerPage = 10000;\n treeMorph.setName(\"MorphSelectorTree\");\n treeMorph.getLayouter().defer();\n treeMorph.setItem(items);\n treeMorph.childNodes.each(function (n) {\n n.expand();\n })\n \n currentTarget = this.highlightCurrentTarget(treeMorph);\n \n rect.setFill(Color.white);\n rect.beClip(true);\n rect.disableGrabbing();\n rect.disableDragging();\n rect.setBorderWidth(1);\n rect.setBorderColor(Color.rgb(150,150,150));\n rect.addMorph(treeMorph);\n rect.treeMorph = treeMorph;\n rect.currentTarget = currentTarget;\n\n return rect;\n}","funcProperties":{"__isSmartRef__":true,"id":2273},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2272":{"this":{"__isSmartRef__":true,"id":2224}},"2273":{"timestamp":{"__isSmartRef__":true,"id":2274},"user":"lauritz","tags":[]},"2274":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2275":{"varMapping":{"__isSmartRef__":true,"id":2276},"source":"function presentTargetChooser() {\n var list = this.createScenePresentation(),\n tree = list.treeMorph,\n target = list.currentTarget\n \n list.setVisible(false)\n this.addMorph(list)\n this.listMorph = list\n list.focus()\n\n // need temp here, doesn't work otherwise, strange errors... Javascript WAT\n var layouting = function() {\n list.setVisible(true)\n \n if (target) {\n var globalTransform = new lively.morphic.Similitude()\n for (var morph = target; (morph != list) && \n (morph != undefined); morph = morph.owner) {\n globalTransform.preConcatenate(morph.getTransform());\n } \n \n list.scrollRectIntoView(target.getBounds().\n translatedBy(globalTransform.getTranslation()));\n tree.getLayouter().resume();\n }\n }\n layouting.morphicDelay(1);\n}","funcProperties":{"__isSmartRef__":true,"id":2277},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2276":{"this":{"__isSmartRef__":true,"id":2224}},"2277":{"timestamp":{"__isSmartRef__":true,"id":2278},"user":"lauritz","tags":[]},"2278":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2279":{"varMapping":{"__isSmartRef__":true,"id":2280},"source":"function removeTargetChooser() {\n if (this.listMorph) {\n this.listMorph.remove();\n delete this.listMorph; \n }\n}","funcProperties":{"__isSmartRef__":true,"id":2281},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2280":{"this":{"__isSmartRef__":true,"id":2224}},"2281":{"timestamp":{"__isSmartRef__":true,"id":2282},"user":"lauritz","tags":[]},"2282":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2283":{"varMapping":{"__isSmartRef__":true,"id":2284},"source":"function removeHighlight(node) {\n node.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":2285},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2284":{"this":{"__isSmartRef__":true,"id":2224}},"2285":{"timestamp":{"__isSmartRef__":true,"id":2286},"user":"lauritz","tags":[]},"2286":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2287":{"varMapping":{"__isSmartRef__":true,"id":2288},"source":"function highlightCurrentTarget(tree) {\n var target = this.owner.target,\n nodes = tree.childNodes,\n highlightNode;\n\n if (!target) {\n return\n } else if (target.isMorph) {\n var expandables = [target],\n nextOwner = target,\n currentNode\n while (nextOwner.owner) {\n expandables.push(nextOwner.owner)\n nextOwner = nextOwner.owner\n }\n expandables.reverse().each(function (m) {\n currentNode = nodes.detect(function (n) {\n return n.item.value === m;\n })\n if (currentNode) {\n nodes = currentNode.childNodes\n if (!nodes && currentNode.item.children) {\n currentNode.expand();\n nodes = currentNode.childNodes;\n }\n } else {\n return;\n }\n })\n if (currentNode && currentNode.item.value === target) {\n highlightNode = currentNode;\n }\n } else {\n var groupNodes = nodes.detect(function (n) {\n return n.item.value === 'groups';\n }).childNodes\n highlightNode = groupNodes.detect(function (n) {\n // group names are unique\n return n.item.value.name === target.name;\n })\n }\n\n if (highlightNode) {\n this.highlightTarget(highlightNode);\n }\n return highlightNode;\n}","funcProperties":{"__isSmartRef__":true,"id":2289},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2288":{"this":{"__isSmartRef__":true,"id":2224}},"2289":{"timestamp":{"__isSmartRef__":true,"id":2290},"user":"lauritz","tags":[]},"2290":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2291":{"varMapping":{"__isSmartRef__":true,"id":2292},"source":"function updateTargetFromSelection(selection) { \n var that = this;\n var update = function(confirmed) {\n if (confirmed) {\n that.owner.setTarget(selection);\n that.setLabel(selection.getName() || selection.toString());\n }\n }\n \n this.removeTargetChooser();\n if (this.owner.hasUnsavedChanges && this.owner.hasUnsavedChanges()) {\n this.owner.confirmUnsavedChanges(update);\n } else {\n update(true);\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2293},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2292":{"this":{"__isSmartRef__":true,"id":2224}},"2293":{"timestamp":{"__isSmartRef__":true,"id":2294},"user":"lauritz","tags":[]},"2294":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2295":{"varMapping":{"__isSmartRef__":true,"id":2296},"source":"function currentMorphicScene() {\n var onSelect = function onSelect(tree) {\n this.selector.updateTargetFromSelection(this.value);\n }\n var properties = {\n editorPane: this.owner,\n selector: this\n }\n \n return {children: [{ \n name: 'World',\n value: this.world(),\n selector: this,\n onSelect: onSelect,\n children: this.world().submorphs.invoke('treeItemsOfMorphNames',\n {scripts: [onSelect],\n properties: properties,\n showUnnamed: true}).compact()\n }]};\n}","funcProperties":{"__isSmartRef__":true,"id":2297},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2296":{"this":{"__isSmartRef__":true,"id":2224}},"2297":{"timestamp":{"__isSmartRef__":true,"id":2298},"user":"lauritz","tags":[]},"2298":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2299":{"varMapping":{"__isSmartRef__":true,"id":2300},"source":"function highlightTarget(node) {\n node.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":2301},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2300":{"this":{"__isSmartRef__":true,"id":2224}},"2301":{"timestamp":{"__isSmartRef__":true,"id":2302},"user":"lauritz","tags":[]},"2302":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2303":{"varMapping":{"__isSmartRef__":true,"id":2304},"source":"function setLabel(label) {\n this.label.setTextString(label);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":2309},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2304":{"this":{"__isSmartRef__":true,"id":2224},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2305}},"2305":{"$super":{"__isSmartRef__":true,"id":2306}},"2306":{"varMapping":{"__isSmartRef__":true,"id":2307},"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":2308},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2307":{"obj":{"__isSmartRef__":true,"id":2224},"name":"setLabel"},"2308":{},"2309":{"timestamp":{"__isSmartRef__":true,"id":2310},"user":"lauritz","tags":[]},"2310":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2311":{"varMapping":{"__isSmartRef__":true,"id":2312},"source":"function updateTargetFromOwner() {\n this.setLabel(this.owner.target);\n}","funcProperties":{"__isSmartRef__":true,"id":2313},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2312":{"this":{"__isSmartRef__":true,"id":2224}},"2313":{"timestamp":{"__isSmartRef__":true,"id":2314},"user":"lauritz","tags":[]},"2314":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2315":{"submorphs":[],"scripts":[],"id":"38A3F5B9-5702-44CC-B6CA-2FAAD29289A6","shape":{"__isSmartRef__":true,"id":2316},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"fixedHeight":false,"allowsInput":false,"_FontFamily":"Arial, sans-serif","registeredForMouseEvents":true,"_MaxTextWidth":64.8979476392384,"showsHalos":false,"_FontSize":9,"name":"ObjectEditorScriptsText2","partsBinMetaInfo":{"__isSmartRef__":true,"id":2317},"textChunks":[{"__isSmartRef__":true,"id":2318}],"charsReplaced":"Scripts","lastFindLoc":-7,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":2320},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":64.8979476392384,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":1571},"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","8E4A5937-D1FA-4AF7-BD8D-B542C636CEF9","DDB23EF0-540C-4046-AD4D-C001E8A5F20C","FF45AAB3-E5C7-42A0-A704-F068DB2E2AF9","52850E3E-BE46-467C-A381-902F5E4859FD","147F9160-7168-44A4-9EA4-A36466EE1F52","8E4FB238-FC20-4DA7-AC9F-6921EBBD5609","3D09A998-5E60-4E94-9C6A-B08E7D98F02A","B8986B95-68A4-4212-8560-C86C8F7B3B3C","81BAFCDC-090F-4A92-8AD6-C3127620CCF4","3663625F-2BB0-494C-A467-04148A441F42","8F0EE2A4-3C90-4F71-A04E-2B285D2543CD","B5F10B61-9C89-4903-BD4C-DF3B9D283432","7005184B-8CE8-4DB8-82D8-D75E16ADE428","B8106E33-B470-45C3-916E-6E92CAFDD854","3013F6C8-9D86-49F3-9EB0-AA42B27F1DC6","A49BA117-B9D4-43F4-82EA-458B9D16FDBA","9FB9DF10-FCEC-44FE-9614-6DFC4B814576","54F9AFFD-B235-48AC-85E0-57921251546E","7A472A4B-7292-49B5-9F03-DE2E3A096714","C8629DF3-424B-47D3-A3FD-68201FFFC455","2CE99CF4-87BB-479D-BC02-FBE7F5E3C283","A5751D1D-692C-4032-AEA7-95530C88F730","E2D3E224-09CB-4417-AF01-22F5923D0FEB","8B049C2C-4BCB-4CA1-8BFA-99E996D355A7","032B13C4-444B-4C0A-9BA2-CE19A29996BC"],"_MaxTextHeight":null,"_MinTextHeight":null,"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","textColor","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(10.0,12.9)","textColor":"Color.rgb(0,0,0)","distanceToDragEvent":"lively.pt(45.8,-27.8)"},"2316":{"fill":null,"_BorderWidth":0,"_ClipMode":"visible","__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(64.9,14.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2317":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2318":{"style":{"__isSmartRef__":true,"id":2319},"chunkOwner":{"__isSmartRef__":true,"id":2315},"storedString":"Tag:","_id":"_1367","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2319":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2320":{"morph":{"__isSmartRef__":true,"id":2315},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2321":{"submorphs":[{"__isSmartRef__":true,"id":2322}],"scripts":[],"id":"5552E179-BFC9-4D06-B22D-CFBF796A57C5","shape":{"__isSmartRef__":true,"id":2328},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2334},"lighterFill":{"__isSmartRef__":true,"id":2339},"label":{"__isSmartRef__":true,"id":2322},"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":2344},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":2345},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":1571},"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","1BD989CB-146C-431F-8B15-9199C4CD5D32","42172AA4-1B06-4C5B-9BB7-FAED1206CF34","32DFAF99-E6F8-426B-829D-FD6C2BCB8FAA","9B4BF2BE-49D5-4B9D-8F38-1692443069A9","FCAB3690-731A-45E7-984F-843DFE705AF1","94B10A66-8219-43AD-B902-DA999A66222D","BB0E2EB7-ABCE-44C7-96E7-6679FB2981D1","2FCEE551-302B-46C9-B646-3B9BE9187182","B4267F52-1ACC-42A1-904D-E9F7D485D8AB","14770110-045A-4BE4-BCF2-7C886DF70F7D","5387EA76-6B03-426A-B385-9C4231B66352","23545203-A969-439B-8761-E83A810696D0","C5467F6E-CBD7-4AF4-94BE-D0D62E4F7DDD","2FC5F9D1-B611-4273-BD5B-107350364579","318398B6-6689-4DE7-88FD-636BD968773D","3241459F-2019-4BD2-A0CF-BD2A174DDA76","69022916-A511-4A6C-8220-5B4CCD34FCEF","E772C128-C42D-4B13-A3DB-3EC0DFDC9FC5","4DD223AA-79FC-4FB3-9301-F197D9D6B358","46929EDB-248B-41D6-AC15-410A659C24A5","1B002698-D346-4EF1-9F48-E74D4EC3C948","5380D1B8-4B6A-4E2A-8414-6D6858D31FFD","A865E534-7B3D-487A-81D1-D97394749423","B47D2FF5-786E-4CA6-BA90-7CCBE4761B7C","ACAE1081-3E3B-4604-B2A9-CFC4484D7B74"],"isPressed":false,"_PreviousBorderWidth":1,"_StyleClassNames":["toggled"],"_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","padding","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2346},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(39.1,10.0)","padding":"lively.rect(5,0,0,0)","distanceToDragEvent":"lively.pt(85.7,-11.6)"},"2322":{"submorphs":[],"scripts":[],"id":"CDD4E2E2-3EEA-43B5-967D-592C48E26AB7","shape":{"__isSmartRef__":true,"id":2323},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":false,"halosEnabled":true,"fixedWidth":true,"_MaxTextWidth":130,"_MaxTextHeight":null,"fixedHeight":true,"allowsInput":false,"registeredForMouseEvents":true,"owner":{"__isSmartRef__":true,"id":2321},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":2324}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":2326}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":2327},"_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","696C3A2A-C695-4D17-A044-41A73436AB8D","206A0BFD-6997-4E0E-9193-089D1F66B22A","F2F1F966-6C41-4EBA-AFCE-FAE8C79AA696","64A754E9-7083-4CAE-B5C2-7B436EFFE4BA","64737503-A352-42CC-A249-667DA2B42746","9218F1CA-E23F-4E1A-89C3-DB19DE720861","CF7EAC38-1041-4B83-B087-359885B8528B","84469C7C-C93D-4F16-ACAA-0045A4A37FCA","9D3DD447-66A0-4B4A-B378-FB864D8C1468","163D1C2B-EDE9-4F8F-B466-EF9F4CB14384","50DCF8C9-23AA-4241-AC5B-724CC11950DA","CCACCC51-0109-4F73-B122-AA60E40EC54B","285D1797-A21F-4439-81AD-932B45F54879","7354C28D-A54E-48B6-913E-4949B5F4625E","68EAB78C-AAA8-4EC3-8493-CFD23672B5B3","2AD9DBC6-BDBD-4022-AFE1-B6D94D6860BF","5D634617-10A2-45FE-A453-D3452456AB07","EE3AF0A1-F42E-4AE8-A115-3458AA56DAF3","D8A87F07-FBE8-4C1E-ADE9-3AF6EE15FCD3","72270145-A97E-4B0C-BA7D-1B68CE1A0841","85F71043-A168-4F84-95DC-DD0392FD2935","03D2C78C-52CB-4093-96E0-2A4608208045","B5928DA6-A3E1-413E-B96E-87C4454017D5","3A1A5AF0-9573-4D44-823A-50C41F02A60A","F4E163ED-7A6F-4DB2-B22C-0C1350310701"],"_WordBreak":"break-all","_Scale":1,"__serializedExpressions__":["_Position","textColor","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(2.0,1.0)","textColor":"Color.rgb(0,0,0)","padding":"lively.rect(5,0,0,0)","_Padding":"lively.rect(5,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"2323":{"borderWidth":0,"fill":null,"_ClipMode":"hidden","_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"2324":{"style":{"__isSmartRef__":true,"id":2325},"chunkOwner":{"__isSmartRef__":true,"id":2322},"_id":"_17847","storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2325":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2326":{"sourceObj":{"__isSmartRef__":true,"id":2322},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":2321},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2327":{"morph":{"__isSmartRef__":true,"id":2322},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2328":{"_Fill":{"__isSmartRef__":true,"id":2329},"_BorderWidth":1,"_BorderRadius":5,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["_Position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(130.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"2329":{"stops":[{"__isSmartRef__":true,"id":2330},{"__isSmartRef__":true,"id":2331},{"__isSmartRef__":true,"id":2332},{"__isSmartRef__":true,"id":2333}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2330":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(230,243,253)"},"2331":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"2332":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"2333":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(157,198,229)"},"2334":{"stops":[{"__isSmartRef__":true,"id":2335},{"__isSmartRef__":true,"id":2336},{"__isSmartRef__":true,"id":2337},{"__isSmartRef__":true,"id":2338}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2335":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2336":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2337":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2338":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"2339":{"stops":[{"__isSmartRef__":true,"id":2340},{"__isSmartRef__":true,"id":2341},{"__isSmartRef__":true,"id":2342},{"__isSmartRef__":true,"id":2343}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2340":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"2341":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2342":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2343":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"2344":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":2,"partName":"ChoiceButton","comment":"Click on it and you get a list of things to choose from.","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2345":{"morph":{"__isSmartRef__":true,"id":2321},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2346":{"createListMorph":{"__isSmartRef__":true,"id":2347},"getList":{"__isSmartRef__":true,"id":2351},"removeList":{"__isSmartRef__":true,"id":2355},"reset":{"__isSmartRef__":true,"id":2359},"onMouseUp":{"__isSmartRef__":true,"id":2363},"onBlur":{"__isSmartRef__":true,"id":2371},"setTag":{"__isSmartRef__":true,"id":2379}},"2347":{"varMapping":{"__isSmartRef__":true,"id":2348},"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":2349},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2348":{"this":{"__isSmartRef__":true,"id":2321}},"2349":{"timestamp":{"__isSmartRef__":true,"id":2350},"user":"lauritz","categories":[]},"2350":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2351":{"varMapping":{"__isSmartRef__":true,"id":2352},"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":2353},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2352":{"this":{"__isSmartRef__":true,"id":2321}},"2353":{"timestamp":{"__isSmartRef__":true,"id":2354},"user":"lauritz","tags":[]},"2354":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2355":{"varMapping":{"__isSmartRef__":true,"id":2356},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":2357},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2356":{"this":{"__isSmartRef__":true,"id":2321}},"2357":{"timestamp":{"__isSmartRef__":true,"id":2358},"user":"lauritz","categories":[]},"2358":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2359":{"varMapping":{"__isSmartRef__":true,"id":2360},"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":2361},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2360":{"this":{"__isSmartRef__":true,"id":2321}},"2361":{"timestamp":{"__isSmartRef__":true,"id":2362},"user":"lauritz","tags":[]},"2362":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2363":{"varMapping":{"__isSmartRef__":true,"id":2364},"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":2369},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2364":{"this":{"__isSmartRef__":true,"id":2321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2365}},"2365":{"$super":{"__isSmartRef__":true,"id":2366}},"2366":{"varMapping":{"__isSmartRef__":true,"id":2367},"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":2368},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2367":{"obj":{"__isSmartRef__":true,"id":2321},"name":"onMouseUp"},"2368":{},"2369":{"timestamp":{"__isSmartRef__":true,"id":2370},"user":"lauritz","categories":[]},"2370":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2371":{"varMapping":{"__isSmartRef__":true,"id":2372},"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":2377},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2372":{"this":{"__isSmartRef__":true,"id":2321},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2373}},"2373":{"$super":{"__isSmartRef__":true,"id":2374}},"2374":{"varMapping":{"__isSmartRef__":true,"id":2375},"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":2376},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2375":{"obj":{"__isSmartRef__":true,"id":2321},"name":"onBlur"},"2376":{},"2377":{"timestamp":{"__isSmartRef__":true,"id":2378},"user":"lauritz","categories":[]},"2378":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2379":{"varMapping":{"__isSmartRef__":true,"id":2380},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":2381},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2380":{"this":{"__isSmartRef__":true,"id":2321}},"2381":{"timestamp":{"__isSmartRef__":true,"id":2382},"user":"lauritz","categories":[]},"2382":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2383":{"submorphs":[{"__isSmartRef__":true,"id":2384}],"scripts":[],"id":"FD73E715-314C-4C3F-BF7E-4306855F9A17","shape":{"__isSmartRef__":true,"id":2389},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2390},"lighterFill":{"__isSmartRef__":true,"id":2395},"label":{"__isSmartRef__":true,"id":2384},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2400},"attributeConnections":[{"__isSmartRef__":true,"id":2401}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":2424},"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","E342B91D-F54B-4DA8-8AE7-10C59CE22B41","A838C48E-4033-4688-8DCF-20659BD824FF","E9BBC453-FFF6-4EE8-BDB0-605D5D4557AE","B6FB81D1-145B-40F9-ACF1-17276DA45EBA","09C79781-5461-4815-88DE-22FB67558136","85A5FA10-01D9-4051-8D56-29DB02CF8817","6E2F44D0-D69A-4DD7-91AD-0B0E1E871633","66FB4A47-82E6-417D-8248-4038D0CBBF5A","3CDC67E7-CAC7-4636-B7FF-50D008C6EB0D","4475CB12-8CFB-41DB-9399-EC6B68E18BA3","6175C505-1BCA-42E9-9C4C-07A4A309A245","B4FEE8FD-E680-459F-A82E-7606A48170D5","AC0B6630-E189-474B-A5E2-13726C1E0E6A","B5559DA4-1483-446C-8332-23DC886B44A5","955AF1F4-5BF5-4129-BA11-0DC54E21E510","6646015F-BD0A-4FEB-85F0-557FB8EC655A","A5682378-2307-447E-AD50-1DEC1AAC9FCB","1A04209F-A70E-4385-A6E2-D508EABC2DFC","EDA53C4F-765D-4424-9DBF-C62388440C46","C877D292-B4FE-42F3-AD5D-11AC5F084977","6791D186-00FB-4A9A-8C8E-DF0B3FBB7F70","1C0AB4C3-29AE-49E6-A440-525C98C25EA9","A88E7536-4C14-422D-985B-824F3E0ECD2A","B53678BD-0843-4A57-8779-2306603CE0C8","DB0426FF-8D96-4D9B-8EEE-DC0AE0A12305"],"owner":{"__isSmartRef__":true,"id":1571},"layout":{"__isSmartRef__":true,"id":2425},"_ClipMode":"visible","isPressed":false,"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.994014980014994,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(40.1,-17.1)","_Position":"lively.pt(785.7,7.4)"},"2384":{"submorphs":[],"scripts":[],"id":"F2A3AFF4-C7EB-4944-B922-66BE2FB832DF","shape":{"__isSmartRef__":true,"id":2385},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":2383},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":2386}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2388},"_HandStyle":"default","_PointerEvents":"none","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","DC956E73-7398-4CAF-B6F2-9A226E344396","C1F72D31-1F49-4C0C-ACF3-C3AD7E698D2F","39386C7E-9099-4159-BFE9-80AD37319211","2764FB6E-70D1-4BC5-B3CB-9979A48B8205","C55C8A7C-412C-453E-A99F-CE78C2AADB94","4BD9A8D4-2EC1-40AC-A1CE-5F1347B0152D","3450EAEB-E3D2-4FAF-98DF-354B3B8715D6","C906736E-48DF-4054-BA5A-A089610456D7","DE5C59FB-90A6-4DD4-AC39-5CC8B3912969","5830FB93-49A1-4A31-A687-69C4579D5FA7","AE9038D5-0EBD-40A0-8043-9689D163D108","13E47AE3-8FA4-4D33-B6D0-DC9AB9E63590","330AAB8C-6D17-4763-AACC-669FC5DD3A91","CA04BB7A-205C-412D-9900-C2DE7C5FAD36","37AADE55-77DE-4E93-9A3E-241BB5002F88","60EB450E-29D4-42B9-8FF7-CA138515052E","7D5C0196-98BF-4CCD-9142-3D29E68EE180","0F70CA1F-07A9-4EFA-872A-3255F9C850DC","7A2FAFFA-9A09-40FB-B04A-80B0B34C696B","85768439-7424-4BFE-8191-BCA51F70FE26","926F3B6F-1286-4B95-AAB5-B4F4D49434DF","99FC3D6F-CDBB-44EB-AB9B-0E3B56302130","A50C4AC5-8394-4695-B3C9-CF421262F380","9E430F5B-2C3C-450C-A894-12E446B1CD18","8B9EC4F6-DC1A-4ECC-A7B8-40673F4BE006"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2385":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"2386":{"style":{"__isSmartRef__":true,"id":2387},"chunkOwner":{"__isSmartRef__":true,"id":2384},"storedString":"run","_id":"_1369","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2387":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2388":{"morph":{"__isSmartRef__":true,"id":2384},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2389":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":2390},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(35.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"2390":{"stops":[{"__isSmartRef__":true,"id":2391},{"__isSmartRef__":true,"id":2392},{"__isSmartRef__":true,"id":2393},{"__isSmartRef__":true,"id":2394}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2391":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2392":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2393":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2394":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"2395":{"stops":[{"__isSmartRef__":true,"id":2396},{"__isSmartRef__":true,"id":2397},{"__isSmartRef__":true,"id":2398},{"__isSmartRef__":true,"id":2399}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2396":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"2397":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2398":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2399":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"2400":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2401":{"sourceObj":{"__isSmartRef__":true,"id":2383},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1571},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":2402},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2402":{"submorphs":[{"__isSmartRef__":true,"id":2403}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2410},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","eventHandler":{"__isSmartRef__":true,"id":2413},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":2414},{"__isSmartRef__":true,"id":2415}],"con":{"__isSmartRef__":true,"id":2401},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2416},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2403":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2404},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","eventHandler":{"__isSmartRef__":true,"id":2409},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2402},"_Rotation":-3.130064002485303,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"2404":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2405},{"__isSmartRef__":true,"id":2406},{"__isSmartRef__":true,"id":2407},{"__isSmartRef__":true,"id":2408}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"2405":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2406":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2407":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2408":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2409":{"morph":{"__isSmartRef__":true,"id":2403},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2410":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2411},{"__isSmartRef__":true,"id":2412}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-1.0,-1.0)","_Extent":"lively.pt(831.0,11.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2411":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2412":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2413":{"morph":{"__isSmartRef__":true,"id":2402},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2414":{"morph":{"__isSmartRef__":true,"id":2402},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2415":{"morph":{"__isSmartRef__":true,"id":2402},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":2403},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2416":{"morphMenuItems":{"__isSmartRef__":true,"id":2417}},"2417":{"varMapping":{"__isSmartRef__":true,"id":2418},"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":2423},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2418":{"this":{"__isSmartRef__":true,"id":2402},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2419}},"2419":{"$super":{"__isSmartRef__":true,"id":2420}},"2420":{"varMapping":{"__isSmartRef__":true,"id":2421},"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":2422},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2421":{"obj":{"__isSmartRef__":true,"id":2402},"name":"morphMenuItems"},"2422":{},"2423":{},"2424":{"morph":{"__isSmartRef__":true,"id":2383},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2425":{"centeredHorizontal":false,"moveHorizontal":true},"2426":{"submorphs":[{"__isSmartRef__":true,"id":2427}],"scripts":[],"id":"2AE5BE18-F427-41D2-9B27-CBD22EDDFAF9","shape":{"__isSmartRef__":true,"id":2432},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2433},"lighterFill":{"__isSmartRef__":true,"id":2438},"label":{"__isSmartRef__":true,"id":2427},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2443},"attributeConnections":[{"__isSmartRef__":true,"id":2444}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":2467},"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","85AAEA9C-5E12-4DEC-8994-9A5FE655A740","2A7FF9BF-85D3-4962-8EB4-0F7016C672EB","3BB17748-B91B-43F5-84BE-2537402A6382","8BA10BD3-43C5-4A41-B9D9-DCD8C74EA208","8BADA640-EDC1-41B2-BEF3-0F2520EA25DD","CAFB5342-EFD3-483E-AE4A-343D211653EF","C3DC8C6F-A36C-4456-AF34-B0A318C1AAD8","88093937-29BB-43FC-AD82-4A0A4BDC349F","27E1FA12-CE4A-4C1F-891F-EEEF92BD672F","A12311D6-23C1-4711-9271-5B582F89F15B","F615015A-8BAE-4FC4-B9A4-D1D1122AC0A2","77333AB0-F43F-45D7-BAEE-8B9FF7865CAF","6A0E622E-4C99-42C1-8EEE-E659BFC2996E","D0264D42-222E-4900-908B-4EA13729B6AA","CC6A8A07-5A2D-407A-B540-6BA0C73356C5","FA68B30F-8583-41B2-898D-8DAFE1A75F15","D5C01E0F-F7DF-4896-8CEF-099C9F3E6CB8","B521A25F-FA55-4F6B-BAC1-0B2544DF98C1","C567F039-E57C-4C5E-AFAA-D05B2C481A69","3D4A4A11-9E45-4C87-9398-C3EBD8A53468","E0FE37EB-5354-489E-A5E9-99AB7E1974E9","4F89AD76-5AD7-4CE1-B8DB-D40EBC94617A","8C36A7AB-91F8-4F55-BA2D-E3C8317B0DAC","796CE245-44F1-4586-94F6-5D9C2483185F","6EE9210D-C294-44D7-9D24-C0E256B321D2"],"layout":{"__isSmartRef__":true,"id":2468},"owner":{"__isSmartRef__":true,"id":1571},"_ClipMode":"visible","isPressed":false,"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.9880657804942089,"__serializedExpressions__":["distanceToDragEvent","_Position"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","distanceToDragEvent":"lively.pt(38.5,-17.0)","_Position":"lively.pt(738.3,7.4)"},"2427":{"submorphs":[],"scripts":[],"id":"B8874F4F-8E42-48F1-A72F-4AED3D1F1903","shape":{"__isSmartRef__":true,"id":2428},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":2426},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":2429}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2431},"_HandStyle":"default","_PointerEvents":"none","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","B8E4C964-4FFF-4A9F-B0A9-612546B1DC8C","002A2173-D26D-4EED-8906-A489C1E158C0","63362D04-B829-41E6-9E68-5B8DB03D382F","996B60A4-8698-448F-A35F-79C768B4976B","F0727398-A1F0-47F5-92CF-BB9677FA05FA","38707063-D664-49A0-B2FB-F0666EC532D5","0402FB51-915F-4491-8FA1-553F0D8F7F35","5A35285D-C6A5-4830-97D9-0890A3F33F39","53121F0B-7DA5-4622-AC08-DD4805D53374","6C84E15D-112D-4C04-87C1-937691E296A7","4ECBD7E4-8B18-4331-8A37-07F4D8DCDCA0","3D4B43A2-AD74-4131-A939-D680216EDA6B","B22327BB-C876-4084-BEFA-4D06AE2B2849","2D34C2E9-76B8-49DC-9FCC-39B523CD0EF4","F098174A-AABC-4F95-8193-C29CA85D6188","714713CE-F5E8-4817-835F-99EA27075558","532DCEDE-C300-48C9-9DBA-58A1E02E1632","2F1C117F-2507-446D-8B43-9BD30AC726FB","74DABF7B-1E90-4D21-93D1-802BC208E9C7","4829579F-88C9-4E62-BE7F-E085AD1EC231","7732A951-B604-4901-B6F1-779441952E6A","6C03B7C3-D5C7-406E-BD14-BE51DE316982","50B4E4A0-912A-4DBC-A708-E66E1A64F6D3","CA92154F-07FD-4CB7-BDF0-0B8248FC1546","7BA7E167-A14B-4429-9559-6EA483AE3E58"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2428":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(43.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"2429":{"style":{"__isSmartRef__":true,"id":2430},"chunkOwner":{"__isSmartRef__":true,"id":2427},"storedString":"save","_id":"_1370","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2430":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2431":{"morph":{"__isSmartRef__":true,"id":2427},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2432":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":2433},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(43.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"2433":{"stops":[{"__isSmartRef__":true,"id":2434},{"__isSmartRef__":true,"id":2435},{"__isSmartRef__":true,"id":2436},{"__isSmartRef__":true,"id":2437}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2434":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2435":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2436":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2437":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"2438":{"stops":[{"__isSmartRef__":true,"id":2439},{"__isSmartRef__":true,"id":2440},{"__isSmartRef__":true,"id":2441},{"__isSmartRef__":true,"id":2442}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2439":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"2440":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2441":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2442":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"2443":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2444":{"sourceObj":{"__isSmartRef__":true,"id":2426},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1806},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":2445},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2445":{"submorphs":[{"__isSmartRef__":true,"id":2446}],"scripts":[],"shape":{"__isSmartRef__":true,"id":2453},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","eventHandler":{"__isSmartRef__":true,"id":2456},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":2457},{"__isSmartRef__":true,"id":2458}],"con":{"__isSmartRef__":true,"id":2444},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2459},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2446":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2447},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","eventHandler":{"__isSmartRef__":true,"id":2452},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2445},"_Rotation":3.077607197692381,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(201.2,40.2)"},"2447":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2448},{"__isSmartRef__":true,"id":2449},{"__isSmartRef__":true,"id":2450},{"__isSmartRef__":true,"id":2451}],"_ClipMode":"visible","_BorderWidth":0,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor","_Fill"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(-12.0,-6.0)","_Extent":"lively.pt(16.0,12.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)","_Fill":"Color.rgb(0,0,0)"},"2448":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2449":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2450":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2451":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2452":{"morph":{"__isSmartRef__":true,"id":2446},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2453":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":2454},{"__isSmartRef__":true,"id":2455}],"_ClipMode":"visible","_BorderWidth":1,"__serializedExpressions__":["_Position","_Extent","_Padding","_BorderColor"],"__LivelyClassName__":"lively.morphic.Shapes.Path","__SourceModuleName__":"Global.lively.morphic.PathShapes","_Position":"lively.pt(200.0,9.0)","_Extent":"lively.pt(480.0,32.0)","_Padding":"lively.rect(0,0,0,0)","_BorderColor":"Color.rgb(0,0,0)"},"2454":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2455":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"2456":{"morph":{"__isSmartRef__":true,"id":2445},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2457":{"morph":{"__isSmartRef__":true,"id":2445},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2458":{"morph":{"__isSmartRef__":true,"id":2445},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":2446},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"2459":{"morphMenuItems":{"__isSmartRef__":true,"id":2460}},"2460":{"varMapping":{"__isSmartRef__":true,"id":2461},"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":2466},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2461":{"this":{"__isSmartRef__":true,"id":2445},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2462}},"2462":{"$super":{"__isSmartRef__":true,"id":2463}},"2463":{"varMapping":{"__isSmartRef__":true,"id":2464},"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":2465},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2464":{"obj":{"__isSmartRef__":true,"id":2445},"name":"morphMenuItems"},"2465":{},"2466":{},"2467":{"morph":{"__isSmartRef__":true,"id":2426},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2468":{"centeredHorizontal":false,"moveHorizontal":true},"2469":{"submorphs":[{"__isSmartRef__":true,"id":2470}],"scripts":[],"id":"F18F204C-7EA7-4C37-93BB-96CFB2EC9153","shape":{"__isSmartRef__":true,"id":2475},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2476},"lighterFill":{"__isSmartRef__":true,"id":2481},"label":{"__isSmartRef__":true,"id":2470},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2486},"attributeConnections":[{"__isSmartRef__":true,"id":2487}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":2488},"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","F7C30F5C-7270-44B1-ADFF-7473F2012DB0","5142302E-3E9A-476B-AB24-B2448DA6D3E4","FEA3C508-593D-4BC7-B645-8B5630CF2EDE","34DBC442-E1DE-42D7-8C63-BA9A1890C994","4F9067A3-5A5C-4637-A76F-7E590CEE2BDA","ADF74818-537A-4669-A455-9509BA7BD7E5","AFCD7FA7-5429-4B1A-B8B8-AB03C18ABA08","604C352D-0347-4329-A299-EAA3FF90B543","46C5ED11-DE03-428F-A758-5308B3D323B5","7C978B2A-9109-42E1-95C5-A59CC74BD31B","2D34E370-3EA6-48DD-B3A7-FE7EB1CCD78D","A0B7F880-0D72-475C-A002-2EAA7D20C004","1146967F-5295-4931-9637-CF72A6A6D724","775F3066-BB4B-4673-B529-500522EF5165","F01F4895-6DEF-4C26-9CEC-A569AEDD22E6","DDD1C856-9C9F-4CB1-A795-E083B7214E82","51E21302-B2D2-49D0-82D9-D964A6B3C54F","BC9DA8C7-933D-4140-96D3-1E7ADEEC8D69","26FA6101-FD83-4A6D-BA08-839ADCA2E33A","43BD3A17-F549-4B6B-8D78-0F84AFE3A168","00F383AA-5D1B-4E2E-AE7D-233CB4D63E9B","A76C27D4-E4A8-4692-B8F7-96F70237F3EF","E71B74B8-91A8-4053-B9BC-D28F0CA04E2F","EBF007DD-804A-4E98-BDE1-826BD5D80393","C2572146-C746-492B-83ED-359D00C8E8F2"],"owner":{"__isSmartRef__":true,"id":1571},"_ClipMode":"visible","isPressed":false,"layout":{"__isSmartRef__":true,"id":2489},"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.9940149800149939,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(688.5,7.4)","distanceToDragEvent":"lively.pt(42.7,-10.0)"},"2470":{"submorphs":[],"scripts":[],"id":"0C57A560-8FC1-4100-9646-398659549948","shape":{"__isSmartRef__":true,"id":2471},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":97,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":2469},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":2472}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2474},"_HandStyle":"default","_PointerEvents":"none","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","AEA84B35-B349-4307-92C6-8F229705DFC2","A677CADF-24FF-4177-9A3A-FE9AAE7D60FE","0F875AD9-E54C-4735-9BA9-7B89574233A1","840EBE92-3BC2-42EC-819E-3CD002576490","78C4969D-2C33-4B17-9027-89B411B9F496","C9A3D112-C2BC-43A3-A3CA-A68F41A0E4CF","78CF2F1A-6697-4D03-AB2B-CAF862B4EDD6","8B416918-CA4B-46D1-8A3C-40F8A754E44D","01510710-A85B-4054-B0ED-7F2F02434806","8ABD23FB-E90C-4EEB-BF53-DF3C6ACF2BD4","87607080-4A72-484D-A5BD-5F67D468505F","F0E39FE9-F71C-4587-B25A-C4D2C29FE579","BA2AB73A-3967-4F9E-8828-8A638E521B31","5ECC4D2F-4996-403F-AF14-BD1F4BB720F6","54B08934-6893-4B80-8625-B60ABCE9CBC6","4808CF23-17EA-43D8-AE10-DAB21C642FA8","0813DF8A-CC9E-435B-B5A1-DF68BF226F37","047C4EE2-26A1-4AA7-9CE9-E8FF9A9D863B","728334BD-34B0-44FA-A778-2696AA82FEFA","7354635C-DC38-4BE3-9F56-070CE37B65EF","91627811-FB7C-4011-A0C4-7E94EE5DEBC6","EC4F18F6-7A30-4E9F-AEEE-127EF9677D14","164E5DC6-84C2-4EF2-A7E5-B758382B34B3","15E59EFD-EA71-480F-8491-7DE1B0342B56","E33B4ED0-51ED-43EE-843D-A3940502770F"],"_MinTextWidth":97,"_MinTextHeight":null,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)"},"2471":{"_BorderWidth":0,"_Fill":null,"_ClipMode":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(45.0,20.0)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(2,2,0,0)"},"2472":{"style":{"__isSmartRef__":true,"id":2473},"chunkOwner":{"__isSmartRef__":true,"id":2470},"storedString":"Tests","_id":"_1371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2473":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2474":{"morph":{"__isSmartRef__":true,"id":2470},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2475":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":2476},"_BorderRadius":5.2,"_ClipMode":"visible","_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(45.0,20.0)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"2476":{"stops":[{"__isSmartRef__":true,"id":2477},{"__isSmartRef__":true,"id":2478},{"__isSmartRef__":true,"id":2479},{"__isSmartRef__":true,"id":2480}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2477":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2478":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2479":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2480":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"2481":{"stops":[{"__isSmartRef__":true,"id":2482},{"__isSmartRef__":true,"id":2483},{"__isSmartRef__":true,"id":2484},{"__isSmartRef__":true,"id":2485}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2482":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"2483":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2484":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2485":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"2486":{"partsSpaceName":"PartsBin/Inputs","migrationLevel":4,"partName":"Button","comment":"Has a script that is called on button press","__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2487":{"sourceObj":{"__isSmartRef__":true,"id":2469},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":1571},"targetMethodName":"openPartTestRunner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2488":{"morph":{"__isSmartRef__":true,"id":2469},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2489":{"moveHorizontal":true},"2490":{"submorphs":[{"__isSmartRef__":true,"id":2491},{"__isSmartRef__":true,"id":2498}],"scripts":[],"id":"7FD24F33-30A4-42C1-9582-F042B4AF280C","shape":{"__isSmartRef__":true,"id":2501},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":2507},"lighterFill":{"__isSmartRef__":true,"id":2512},"label":{"__isSmartRef__":true,"id":2491},"name":"MagnifierButton2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":2517},"attributeConnections":[{"__isSmartRef__":true,"id":2523}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":2524},"derivationIds":[2588,"22797D34-67DE-4A06-81F0-4DF0A87ADBBC","81CB4C12-BCF0-4097-8B6D-D9419046367A","0767A57D-9BB2-48C6-9654-753D2B9D00A6","42871246-6725-4E41-A2C1-5A5BCF041097","BCE6E775-B5DF-4D6B-9F06-CDC02C1B1D0F","797EC165-A639-42D9-A059-669F6BEB92A7","FA498EFD-E50E-4CE0-9FA8-9AE2E8AE9580","4B68C371-CB37-45B4-910A-611E5FFC23DD","94E374B9-7ED4-4E39-96F1-6FD4E7AC3428","34D63515-7CC7-43FB-B7BB-87AFCA377D63","7E0B172C-0AF5-4C6E-B184-25A8FAE4FAB8","12239D52-D3D3-4713-BC3E-F0B95C488CB7","72559D92-4616-45A9-A0F2-72BA4147C0FB","E86C7328-AF24-4881-84AF-B7C7CEFEAE14","22D731CF-38F0-41CC-B125-74D2842ED847","B58A1A30-782E-4675-A276-2C01D35BEC70","ACEABA6D-071C-46C2-A325-BE30189AA45F","686443AE-DCDC-4998-8A39-48BC57D64FDC","8D660766-7C93-404C-9D92-B12CBF59A3CE","20DF1A18-6F2B-4D66-9110-75EB343C3C61","6295FA32-B7AA-4C61-BF03-5E69084C8FE8","72BEBA6F-7C26-47B6-AED2-253F02E48DE5","0B7FD918-BB64-49EA-A26A-45D408FBF85D","6B96BB67-EBE4-46AC-97F3-73F209469E96","7D373E3D-8EBD-4E82-99C0-2ABA4154DDD2","6716E808-9BF0-471E-8BA5-0E0E4491D002","EAFDE782-D226-4904-895E-20E9734A876C","97AE5B68-0D45-427A-A045-FE1586A23E01","652E4BFA-858C-41A6-96C1-A6A02B5B6BC2","571C5728-BEA1-475C-A2E2-319031399278","9A32C14D-DDAE-4202-B6BE-255A165918B1","70667C6E-DE53-414E-839C-295CD7636FEF","372B33EB-6D49-41CF-9F68-5A0C31487B7F","6F3D7DC8-DF06-4F8A-9C43-3C28834A9FF2"],"_ClipMode":"visible","highlightRectangle":{"__isSmartRef__":true,"id":2525},"isPressed":false,"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":2601},"moved":true,"owner":{"__isSmartRef__":true,"id":1571},"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.9822058852177662,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2602},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(657.8,7.4)","distanceToDragEvent":"lively.pt(24.9,-13.0)"},"2491":{"submorphs":[],"scripts":[],"id":"BA847F19-0640-40E9-9CF9-DD9C94E1FBD1","shape":{"__isSmartRef__":true,"id":2492},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"fixedWidth":true,"_WhiteSpaceHandling":"pre-wrap","fixedHeight":true,"allowInput":false,"_FontFamily":"Helvetica","registeredForMouseEvents":true,"_MaxTextWidth":24,"_MaxTextHeight":null,"textStyle":null,"owner":{"__isSmartRef__":true,"id":2490},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":2493},{"__isSmartRef__":true,"id":2495}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":2497},"_HandStyle":"default","_PointerEvents":"none","derivationIds":[2589,"024C5ADE-C4CF-4E8E-BEC5-F93AD4839702","A2CC4D56-B9D8-4A48-B6FF-DDDD85ACDC2E","5AC5C4DE-00B0-43DB-B7F1-765674CE818B","750A11C6-766E-4B48-AE32-D71DE811EB4A","66A7B56E-A94E-44AE-8AED-C0C1B07554D4","CA8596D3-2D4F-453B-BE1B-DCEC8F85389B","4D7DC32F-79CB-4AF8-8B21-AB4F1809D4A8","439DE430-7651-470E-97D8-00E7F96B04DA","DAC920E6-217B-4515-AC09-2F9DCBA7375C","BD48C003-0502-451D-B6AA-7369FF3D1030","C3B8F4EA-3F44-47F4-B569-A0D5AB263BA0","BF7F0FA3-3F2A-4EEF-9687-BE2B0635DF13","3D7AEAC1-C9DD-4941-BA46-16F6783F5699","E04A78F9-3D6E-403F-BA8D-2583FCFFCE53","47E1F29B-6896-467D-8654-CA18929AE57A","509D86FF-5400-4374-BE79-90F0A7E3E90C","C7E53EE0-065A-4C59-8D13-311566722BB7","BA078BAC-7263-4B10-AFD3-3C4EA0DD8707","BCFE28D1-A115-453E-9116-EECC8FE1D50F","A354FF2E-BD85-429A-97C2-254D6033F50C","B26A73EB-9EB9-4CB0-89AF-FEE10445E3EA","ED910382-D586-4EC1-BD77-5E8DD759BDB4","05A48E42-A3E2-4C4A-8160-685CE469FD4E","732A3761-4FE1-4312-8EF7-E5ADF0D9E087","CDBDE5FF-3426-45BB-963D-51B2156D9C40","65B8E035-5DF8-4B88-B57A-99E2A738EFB4","1EF9DF4A-1629-4F03-B6E7-14756A1A5488","43372ED0-6C0B-4D2C-A07E-AA5F3D7320FE","78DB1195-6CA8-4CF6-9525-3A2EA5D8A837","9788DC31-5EDD-44E4-A2A1-BDA89C6E2416","FB8973CD-AF73-4B3F-ABE5-EC89A1EBBD7B","07EF819E-F89D-4212-8810-B3B862B847F7","0F1E5FC4-0E25-4E92-8E6C-96DE488CBE13","FD02FFDC-70FA-4E72-8DB0-716DE93F07C4"],"_MinTextWidth":24,"_MinTextHeight":null,"_FontSize":10,"_WordBreak":"break-all","__serializedExpressions__":["_Position","padding","_Padding","_TextColor"],"__LivelyClassName__":"lively.morphic.Text","__SourceModuleName__":"Global.lively.morphic.TextCore","_Position":"lively.pt(0.0,0.0)","padding":"lively.rect(5,5,0,0)","_Padding":"lively.rect(0,0,0,0)","_TextColor":"Color.rgb(0,0,0)"},"2492":{"_BorderWidth":0,"_Fill":null,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(26.2,21.3)","_BorderColor":"Color.rgb(0,0,0)","_Padding":"lively.rect(0,3,0,0)"},"2493":{"style":{"__isSmartRef__":true,"id":2494},"chunkOwner":{"__isSmartRef__":true,"id":2491},"storedString":"","_id":"_1372","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2494":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2495":{"style":{"__isSmartRef__":true,"id":2496},"chunkOwner":{"__isSmartRef__":true,"id":2491},"storedString":"","_id":"_1373","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2496":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"2497":{"morph":{"__isSmartRef__":true,"id":2491},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2498":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":2499},"derivationIds":[null,"29E543E0-AE93-493A-A694-FC1C330D0544","F0366E4C-E97F-4C77-BEE4-340A0668ADD5","347F6028-5092-4F54-9A34-3EFF3FF0B815","BF7387E7-BCD7-4A5B-B9D2-C14ECF59EFCA","85BA370B-966E-41F7-8C2F-F3A926EC2AA2","1652172B-339A-43A1-9589-70E68B35A28E","705524F7-129B-4102-834E-2A1A45985BB5","5707DF70-CD77-4D53-96ED-5A0AEB227FB7","257E62CE-C668-4317-B5B7-8D394BDC3F6C","2DD4BEA5-E85A-4CD0-953E-9EB2E0735654","BB96B696-7BD4-44C4-9D60-B1551B89D6FA","FCAABC48-FBAF-4E12-8BC9-AC4ACB5A167B","EB81C4D7-5BD8-4DAC-BD70-8675E2338AAC","1DBAE3FF-B2F6-4348-8E06-81139C138D6E","49E7D450-EF74-4E94-B33B-B888D952F3BD","F0B267C4-54BA-4E6F-BFDD-4B047F4FF41A","36B8611D-B449-4F6E-8D0F-B5FD6406D45D","779DB518-01BD-4D32-AD65-BFED801E5D06","F47D501C-3750-4F0D-A2E1-E1B9CDA8368C","5DEBC468-2070-496D-A3DA-1A5C54BBBC41","1DB6E59C-CCC0-45D1-B3DA-6B2ECCE90296","B8001536-A62C-4660-90C2-B02509302EE5","F97079BD-335C-41D9-A5D5-782FB6FE21BD","E1543B0F-A69C-40F0-91C9-129DA75A82A6","2CABA960-211A-4573-BCDE-86E23BCAA797","2045A65C-ADD8-4283-9D5D-B7705B975C2F","9E13F1F3-B61E-4C65-9EDE-DA9F6CA27BCE","4BCDA60B-0BA1-4D18-8590-B2697CF0849D","7CDE8D5C-0AD1-4D02-AF2B-49C7E1A9FF10","1282AB88-1192-43DA-9616-A728DC5EE334","36B3E085-1BEF-4065-8456-88236271781E","7D28DCD1-92B2-480A-9083-3BFE5511B531","DF1BE49D-EE38-46C2-AB64-3CD38EAB11C0"],"id":"B49725EB-9A8F-4DB2-BE33-41E18FEAC1A4","eventHandler":{"__isSmartRef__":true,"id":2500},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":2490},"name":"leftpointing_magnifying_glass.png","isBeingDragged":false,"showsHalos":false,"eventsAreDisabled":true,"_HandStyle":"default","_PointerEvents":"none","#startLetters":"showH","_Rotation":0,"_Scale":1,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__LivelyClassName__":"lively.morphic.Image","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(-7.0,3.0)","distanceToDragEvent":"lively.pt(37.9,-10.9)"},"2499":{"_ImageURL":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAABkCAYAAABw4pVUAAAACXBIWXMAAAABAAAAAQBPJcTWAAAALnRFWHRUaXRsZQBMRUZULVBPSU5USU5HIE1BR05JRllJTkcgR0xBU1MgKFUrMUY1MEQpw88haQAAABV0RVh0QXV0aG9yAEFuZHJldyBNYXJjdXNl5zc3gwAAAC90RVh0U29mdHdhcmUAaW5mby5maWxlZm9ybWF0LmRhdGEuVW5pY29kZVBuZ1NlcnZsZXRoAX8wAAAAQ3RFWHREZXNjcmlwdGlvbgBodHRwOi8vd3d3LmZpbGVmb3JtYXQuaW5mby9pbmZvL3VuaWNvZGUvMWY1MGQvaW5kZXguaHRtk2hNQgAAADt0RVh0Q29weXJpZ2h0AGh0dHA6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzIuMC9siJKDAAAIDklEQVR42u1daWxVRRQeCi0tIqCAQCTIUtEIGlk0ilqEkEbiQhSKGAyCooIIggsiQuMWZNGwVMUFNIhKZBMobZClgK1FwAU3wIpSREDcUFZFEM/JOzf3vPHet9ze1/eYe77k+zNzl5nz3ZlzZntPKYFAcHojDXimmKH6cQbwZuBM4HLgx8A9wBPAU8BjwJ3ADcDFwMnArsCaYjr/0BB4DwlwjAwfL38DzgX2AdYWk3pDJnAM8E/NuN8BpwEHAq8DXgpsCswANgN2APak/BeBu7T7sQX1A9YQE8fuDwYAf2BG/JrEaefxmSjaeOAO9syNwBwxd2Q0o/7fMhr6h8Fx+oBIX346cATwF/aON6Qbc0ZH4G4y0lHgOGAdD8/Be/KAs4AFwKsdrqkHnAA8Tu8rAzYWCWz0Bh5hraKTT11fL+AH1FXlA8/SrsEu61fmW9qLFEqNAv5LRsEw9twEvKMzcAvwJ3LoHG2AW+n9B4HdgixGHhNjiccuKlbUp9aC7yoGnqflraa8A8C2QRTjMvIVaITyKI61BjnkqiILWEjvPAwcxvLqAj+nvAqH7s1oNAfupcpjeNskhnvQOQ/xYfxQCziHRVl3sjxsNfspvYSuNR4Ywn5ClT5CA7lYkUPRU0YVy4CivkVlOE7TKxa6AP+ivKlBEORe9nUO8XD/QhWay6oqmlK3dYoirTYs70FK/wd4ocli1KVIByu7XXmb9BsOPEmj76riSfZxbAM2oPQMmqLB9GUmC/I0M8AtHp9xCd3/rM8fCHISy+vH0ruaOi3Coyqv6ETPKPSpXEOZ4X9XoSl+y89sovTNJgoyklW8rw8+aKFP5apFo3SrbMNcWsnFpgmylkU19R3yY4mc0mk0j88Z62PZ5jHDV7DQugE5dkx/3CQxzlb2qt6aCF1HtJH6BHoGju4v97F8+Sp8zeRGlldCaZtMEmQAq+zICL5hpUvrwfXy19gzZvhcvj6aILNZ3ij2ETQzRZA3WWU7RrgOfQsu05YCnyLxcFS9h91fTlMgfqKdJsg6lteBpQ8wRZASVqmmUa7txvwEJ/qe8SoxGxYymK+wpnMsNGHpxviRbVShkzEatAb5iEHUSrqzQVuiUMkMf5IFGWnM/71giiAHqEL7U7iMf2gtkk/B7/M51E4qMlklvzwNymgxl+VvobQPTRCkMavkDpaelkJlbOkgyDUsv0LZu19Oe/A++BBLvyIB0ZJX9HIQhHdZBymt1BQfso9V1Jorag28PUXKN8tBkHqUV4elLTJFkM9YpVqzllOcAmXDiG6vJsZhlt+Kpc80RZBiF2eJK4fZSS5bd4fWUcTyc1n6Y6YIMpVVii+LTgFOTHLZNjoIMpTlT2fpXUwRpIcKn021gHuwcDN0ss525Cnn3fIt2DXfK3vPljGbHtK1gdcFmkNdkYTK4gz0Tgcxytg1fI6rUBkGvubA54Ta0lTFK9VYFhS/xKV18PEHX3MfYpogfPUND9DwuamFlP5oNZXlZRcxlmsDWutsCl/aNQYZWhfBnTlOceNsLq459E1wyyhwEeNvFb7ZusClrEbhNlbJoyp8Y3UejehxPWS08v/MBrbIlcr92BvfwZit7KMKOC3f3FRBcBC2mRlBnz0dpOzN17gvqrdP7+2p7PkoJz7Hrq2pCfeqMhzXasbI1/KHa/m4Y93reRFcU1mrIh8IXaLCJzpnsLyfKRozHrNZpbFF9NHyx2pGw2tWAZ8H3gW8UjmvvWdSlIQb3raq6Kdzp6vwBbOhWn5/FRCggy9lFcdN1521ax5Q0Y9B41o7nkn8Rv1/gSkS0T/crb0vV4Uv465UAUNjLerCkfAN2jUXKef19apwnYP4AynK4tfNU6m1ZlMtaK/stQZrLXu0Q6g6OIpTjoVfAK/Xnp1GDp1fhy0th1rwHLqmEbXYHkEQJYcGitwouG2onoPx0Ne8q+yDmtGIs8lPUFCgH/Q5R4XPQlt8nfKzKB9/ouNHLT/ddFEw7t+uGQbPko90GY+gOHgcoRc5+YeBj1DY3JPyGrq8qy6JdMhBDAyz8azhZLq2JRuP4HE3a6f8KhNH7k4Dt9UORqoE3qGqfiAUo7L7lX1kjfMd4H0UHGTTFMpLzH8VUAS3iN2znsQ1GugvprCvkvMYdSFouBYxPu98FdoKusblmZXUoiz0J1FuYgPUfCrXAof7S4MgimXIRVH8wwHq5vBLna9Cs8ULyEgVWrCg8zAJ79TtjGDXjSMx5kd4Fk7XB+a3uq5Sob1QfoW86JzxR2zcjjyj3/mKTafUpCAi2nPLVcB+QA379YdoGuWEBxEwars1hujIOpZQQS1jWhzvKXeIDAOBRhT+YgQ2kcYK71NLwgOauAKJ50jwpFW8J2jHKHvLKwYBuENmVxyibAiqKIlCOkVY1g8HZHkQ5SOXeTaBR9RW9vT7agp34xVlo4jiL7KoG0TjriCR4hVlk0r8EYrAtZQiZa+14wx1qzhF2Syi+C+K5VOWko8RUVJIlPc8irIhKCP6ZItSqeJbh8kSU/qHDCbKMuZT4hFlrpgxcaIUUcuJR5TdYsLEiFLIQuLMOESZJOZLnCjLyMhrabqkZRRR1qsArDQmW5SlZOxPVWhJ2E2UNRJlVQ/wi19CRv9WhXbJoCh8zb+IujVBNYqymIyPP55ZxsQoVvK78kkBrp28rXVThSJGcoE7YZ5RoTMlc8SBpw7kj2IEAoFAIBAIBAKBQCAQCAQCgUAgEAgEAoFAIBAIBAKBQCAQCAQCgSAZ+A+0ucC4BysctgAAAABJRU5ErkJggg==","_NodeClass":["image"],"_NodeId":"29E543E0-AE93-493A-A694-FC1C330D0544","attributeConnections":[],"doNotSerialize":[],"doNotCopyProperties":[],"isLoaded":true,"__serializedExpressions__":["_Position","_Extent","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Image","__SourceModuleName__":"Global.lively.morphic.Shapes","_Position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(21.0,21.0)","_Padding":"lively.rect(0,0,0,0)"},"2500":{"morph":{"__isSmartRef__":true,"id":2498},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2501":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":2502},"_BorderRadius":5.2,"_Opacity":1,"_BorderStyle":"solid","_AppearanceStylingMode":true,"_BorderStylingMode":true,"__serializedExpressions__":["position","_Extent","_BorderColor","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(26.2,21.3)","_BorderColor":"Color.rgb(214,214,214)","_Padding":"lively.rect(0,0,0,0)"},"2502":{"stops":[{"__isSmartRef__":true,"id":2503},{"__isSmartRef__":true,"id":2504},{"__isSmartRef__":true,"id":2505},{"__isSmartRef__":true,"id":2506}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2503":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2504":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"2505":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"2506":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"2507":{"stops":[{"__isSmartRef__":true,"id":2508},{"__isSmartRef__":true,"id":2509},{"__isSmartRef__":true,"id":2510},{"__isSmartRef__":true,"id":2511}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2508":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"2509":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2510":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"2511":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"2512":{"stops":[{"__isSmartRef__":true,"id":2513},{"__isSmartRef__":true,"id":2514},{"__isSmartRef__":true,"id":2515},{"__isSmartRef__":true,"id":2516}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"2513":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"2514":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2515":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"2516":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"2517":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"MagnifierButton","comment":"A magnifier, which calls setTarget: on the owner","changes":[{"__isSmartRef__":true,"id":2518},{"__isSmartRef__":true,"id":2520}],"revisionOnLoad":203770,"lastModifiedDate":{"__isSmartRef__":true,"id":2522},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2518":{"date":{"__isSmartRef__":true,"id":2519},"author":"jenslincke","message":"no comment","id":"F343C38F-1923-4DD3-BF9B-4A4B6A7111D6"},"2519":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2520":{"date":{"__isSmartRef__":true,"id":2521},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"2521":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2522":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2523":{"sourceObj":{"__isSmartRef__":true,"id":2490},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":2490},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2524":{"morph":{"__isSmartRef__":true,"id":2490},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2525":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":2526},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":2527},"eventHandler":{"__isSmartRef__":true,"id":2568},"doNotSerialize":[],"doNotCopyProperties":[],"derivationIds":[127,"F0291F62-F100-480C-AEBF-0230398F7983","AE8B5ED7-E305-45BC-BE4A-1C28A49EE12B","39BA345C-17FA-45A0-BAC2-F0CF5654ACF8","FE91EA31-D8AE-461B-8A49-95DA5FBAE5B4","F38439A3-2F4E-4AC2-BF73-2633C00B1393","6748F5B5-2284-4748-A6EE-F1A261CBAD0B","6FECB598-D130-4242-BF1B-E18767608129","0B23F218-078F-4912-A262-31B957885F41","C56BA290-B836-4946-B4EF-DBB6FBA2368C","61176BAF-CFE6-4F2C-9F0A-971AAD6595A1","CB4127B2-0AA5-4B50-9978-F1FF39924A82","113050BB-CF0E-4193-91C6-9C25FC857EE8","EFF939E4-317B-4662-943F-77A6E6F65BD0","AA288E7F-3972-4F0D-87DD-61E4BD9C9C97","903E8C60-1158-42D5-85D2-DF134DA6CEC1","28FD6210-A549-4A11-9178-04E77FF556C0","B3312E29-D786-469F-865E-91FD69475A52","D947A1C1-DCBE-4485-A33D-DF549F6978E0","56CE0E60-45BE-43FF-9C6C-296D8AC326B6","CC61E3F8-8C8D-4F24-A591-023D3C88DEC8"],"partTests":{"__isSmartRef__":true,"id":2569},"_ClipMode":"visible","moved":true,"isBeingDragged":false,"prevScroll":[0,0],"#startLetters":"","eventsAreDisabled":false,"_HandStyle":"default","_PointerEvents":"auto","_Rotation":0,"_Scale":1.0060210561262526,"owner":null,"magnifierButton":{"__isSmartRef__":true,"id":2490},"attributeConnections":[{"__isSmartRef__":true,"id":2574},{"__isSmartRef__":true,"id":2576},{"__isSmartRef__":true,"id":2578}],"isToolMorph":true,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2580},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(190.0,89.0)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"2526":{"_BorderWidth":0,"_ClipMode":"visible","_BorderRadius":0,"_Opacity":0.2597,"_BorderStyle":"hidden","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(578.0,269.0)","_BorderColor":"Color.rgb(204,0,0)","_Fill":"Color.rgb(58,0,255)","_Padding":"lively.rect(0,0,0,0)"},"2527":{"partsSpaceName":"PartsBin/Tools","comment":"A rectangle which highlights the object under the first hand of the world","migrationLevel":4,"partName":"HighlightRectangle","changes":[{"__isSmartRef__":true,"id":2528},{"__isSmartRef__":true,"id":2530},{"__isSmartRef__":true,"id":2532},{"__isSmartRef__":true,"id":2534},{"__isSmartRef__":true,"id":2536},{"__isSmartRef__":true,"id":2538},{"__isSmartRef__":true,"id":2540},{"__isSmartRef__":true,"id":2542},{"__isSmartRef__":true,"id":2544},{"__isSmartRef__":true,"id":2546},{"__isSmartRef__":true,"id":2548},{"__isSmartRef__":true,"id":2550},{"__isSmartRef__":true,"id":2552},{"__isSmartRef__":true,"id":2554},{"__isSmartRef__":true,"id":2556},{"__isSmartRef__":true,"id":2558},{"__isSmartRef__":true,"id":2560},{"__isSmartRef__":true,"id":2562},{"__isSmartRef__":true,"id":2564},{"__isSmartRef__":true,"id":2566}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2528":{"date":{"__isSmartRef__":true,"id":2529},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"2529":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2530":{"date":{"__isSmartRef__":true,"id":2531},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"2531":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2532":{"date":{"__isSmartRef__":true,"id":2533},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"2533":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2534":{"date":{"__isSmartRef__":true,"id":2535},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"2535":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2536":{"date":{"__isSmartRef__":true,"id":2537},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"2537":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2538":{"date":{"__isSmartRef__":true,"id":2539},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"2539":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2540":{"date":{"__isSmartRef__":true,"id":2541},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"2541":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2542":{"date":{"__isSmartRef__":true,"id":2543},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"2543":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2544":{"date":{"__isSmartRef__":true,"id":2545},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"2545":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2546":{"date":{"__isSmartRef__":true,"id":2547},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"2547":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2548":{"date":{"__isSmartRef__":true,"id":2549},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"2549":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2550":{"date":{"__isSmartRef__":true,"id":2551},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"2551":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2552":{"date":{"__isSmartRef__":true,"id":2553},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"2553":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2554":{"date":{"__isSmartRef__":true,"id":2555},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"2555":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2556":{"date":{"__isSmartRef__":true,"id":2557},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"2557":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2558":{"date":{"__isSmartRef__":true,"id":2559},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"2559":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2560":{"date":{"__isSmartRef__":true,"id":2561},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"2561":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2562":{"date":{"__isSmartRef__":true,"id":2563},"author":"tessi","message":"no comment","id":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"2563":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2564":{"date":{"__isSmartRef__":true,"id":2565},"author":"tessi","message":"no comment","id":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"2565":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2566":{"date":{"__isSmartRef__":true,"id":2567},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"2567":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2568":{"morph":{"__isSmartRef__":true,"id":2525},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"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},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2572":{"this":{"__isSmartRef__":true,"id":2569}},"2573":{},"2574":{"sourceObj":{"__isSmartRef__":true,"id":2525},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":2525},"targetMethodName":"updateOnMove","varMapping":{"__isSmartRef__":true,"id":2575},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2575":{"source":{"__isSmartRef__":true,"id":2525},"target":{"__isSmartRef__":true,"id":2525}},"2576":{"sourceObj":{"__isSmartRef__":true,"id":2525},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":2490},"targetMethodName":"removeHighlighting","varMapping":{"__isSmartRef__":true,"id":2577},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2577":{"source":{"__isSmartRef__":true,"id":2525},"target":{"__isSmartRef__":true,"id":2490}},"2578":{"sourceObj":{"__isSmartRef__":true,"id":2525},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":2490},"targetMethodName":"setTarget","varMapping":{"__isSmartRef__":true,"id":2579},"converterString":"function () {\n return this.sourceObj.morphUnderCursor();\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"2579":{"source":{"__isSmartRef__":true,"id":2525},"target":{"__isSmartRef__":true,"id":2490}},"2580":{"update":{"__isSmartRef__":true,"id":2581},"updateOnMove":{"__isSmartRef__":true,"id":2585},"bringToFront":{"__isSmartRef__":true,"id":2589},"morphUnderCursor":{"__isSmartRef__":true,"id":2597}},"2581":{"varMapping":{"__isSmartRef__":true,"id":2582},"source":"function update(morphUnderCursor) {\n if (morphUnderCursor === this.magnifierButton ||\n this.magnifierButton.submorphs.include(morphUnderCursor)) {\n morphToHighlight = this.magnifierButton.currentTarget();\n } else {\n morphToHighlight = morphUnderCursor;\n }\n\n if (morphToHighlight && morphToHighlight.world()) {\n this.setPosition(morphToHighlight.getPositionInWorld());\n this.setExtent(morphToHighlight.getExtent());\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2583},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2582":{"this":{"__isSmartRef__":true,"id":2525}},"2583":{"timestamp":{"__isSmartRef__":true,"id":2584},"user":"lauritz","tags":[]},"2584":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2585":{"varMapping":{"__isSmartRef__":true,"id":2586},"source":"function updateOnMove() {\n this.update(this.morphUnderCursor());\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":2587},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2586":{"this":{"__isSmartRef__":true,"id":2525}},"2587":{"timestamp":{"__isSmartRef__":true,"id":2588},"user":"lauritz","tags":[]},"2588":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2589":{"varMapping":{"__isSmartRef__":true,"id":2590},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000;\n}","funcProperties":{"__isSmartRef__":true,"id":2595},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2590":{"this":{"__isSmartRef__":true,"id":2525},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2591}},"2591":{"$super":{"__isSmartRef__":true,"id":2592}},"2592":{"varMapping":{"__isSmartRef__":true,"id":2593},"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":2594},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2593":{"obj":{"__isSmartRef__":true,"id":2525},"name":"bringToFront"},"2594":{},"2595":{"timestamp":{"__isSmartRef__":true,"id":2596},"user":"lauritz","tags":[]},"2596":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2597":{"varMapping":{"__isSmartRef__":true,"id":2598},"source":"function morphUnderCursor() {\n var that = this,\n world = lively.morphic.World.current(); \n \n return world.morphsContainingPoint(world.firstHand().getPosition()).detect(\n function(ea) {\n return !ea.isPlaceholder &&\n !ea.isHalo &&\n (!ea.owner || !ea.owner.isHalo) &&\n !(ea === that);\n });\n}","funcProperties":{"__isSmartRef__":true,"id":2599},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2598":{"this":{"__isSmartRef__":true,"id":2525}},"2599":{"timestamp":{"__isSmartRef__":true,"id":2600},"user":"lauritz","tags":[]},"2600":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2601":{"moveHorizontal":true},"2602":{"onFire":{"__isSmartRef__":true,"id":2603},"removeHighlighting":{"__isSmartRef__":true,"id":2607},"onMouseMove":{"__isSmartRef__":true,"id":2611},"onMouseOut":{"__isSmartRef__":true,"id":2619},"reset":{"__isSmartRef__":true,"id":2627},"isTracking":{"__isSmartRef__":true,"id":2631},"isHighlighting":{"__isSmartRef__":true,"id":2635},"currentTarget":{"__isSmartRef__":true,"id":2639},"setupHighlightRectangle":{"__isSmartRef__":true,"id":2643},"setTarget":{"__isSmartRef__":true,"id":2647}},"2603":{"varMapping":{"__isSmartRef__":true,"id":2604},"source":"function onFire() {\n var hand = lively.morphic.World.current().firstHand(),\n highlight = this.highlightRectangle,\n that = this;\n\n if (this.isTracking()) {\n this.removeHighlighting();\n } else {\n this.world().addMorph(highlight);\n hand.highlightConnection = connect(hand, \"scrollFocusMorph\", highlight, \"update\");\n highlight.bringToFront();\n if (!this.currentTarget() || !this.currentTarget().world()) {\n highlight.setExtent(pt(0,0));\n }\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2605},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2604":{"this":{"__isSmartRef__":true,"id":2490}},"2605":{"timestamp":{"__isSmartRef__":true,"id":2606},"user":"lauritz","tags":[]},"2606":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2607":{"varMapping":{"__isSmartRef__":true,"id":2608},"source":"function removeHighlighting() {\n var hand = this.world().firstHand();\n\n if (this.highlightRectangle) {\n this.highlightRectangle.remove();\n }\n\n hand.attributeConnections.removeAt(\n hand.attributeConnections.indexOf(hand.highlightConnection));\n hand.highlightConnection = null;\n}","funcProperties":{"__isSmartRef__":true,"id":2609},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2608":{"this":{"__isSmartRef__":true,"id":2490}},"2609":{"timestamp":{"__isSmartRef__":true,"id":2610},"user":"jenslincke","tags":[]},"2610":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2611":{"varMapping":{"__isSmartRef__":true,"id":2612},"source":"function onMouseMove(evt) {\n var target = this.currentTarget();\n if (target && target.world() && !this.isHighlighting()) {\n this.highlightRectangle.update(target);\n this.world().addMorph(this.highlightRectangle);\n this.highlightRectangle.bringToFront();\n this.targetHighlight = this.highlightRectangle;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2617},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2612":{"this":{"__isSmartRef__":true,"id":2490},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2613}},"2613":{"$super":{"__isSmartRef__":true,"id":2614}},"2614":{"varMapping":{"__isSmartRef__":true,"id":2615},"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":2616},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2615":{"obj":{"__isSmartRef__":true,"id":2490},"name":"onMouseMove"},"2616":{},"2617":{"timestamp":{"__isSmartRef__":true,"id":2618},"user":"lauritz","tags":[]},"2618":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2619":{"varMapping":{"__isSmartRef__":true,"id":2620},"source":"function onMouseOut() {\n if (this.isHighlighting()) {\n if (!this.isTracking()) {\n this.targetHighlight.remove();\n }\n delete this.targetHighlight;\n }\n}","funcProperties":{"__isSmartRef__":true,"id":2625},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2620":{"this":{"__isSmartRef__":true,"id":2490},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":2621}},"2621":{"$super":{"__isSmartRef__":true,"id":2622}},"2622":{"varMapping":{"__isSmartRef__":true,"id":2623},"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":2624},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2623":{"obj":{"__isSmartRef__":true,"id":2490},"name":"onMouseOut"},"2624":{},"2625":{"timestamp":{"__isSmartRef__":true,"id":2626},"user":"lauritz","tags":[]},"2626":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2627":{"varMapping":{"__isSmartRef__":true,"id":2628},"source":"function reset() {\n this.highlightRectangle.attributeConnections = [];\n \n var r = this.highlightRectangle;\n r.isToolMorph = true\n disconnectAll(r)\n connect(r, \"onMouseMove\", this.highlightRectangle, \"updateOnMove\")\n connect(r, \"onMouseUp\", this, \"removeHighlighting\")\n connect(r, \"onMouseUp\", this, \"setTarget\",\n {converter: function () {\n return this.sourceObj.morphUnderCursor();\n }\n })\n}","funcProperties":{"__isSmartRef__":true,"id":2629},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2628":{"this":{"__isSmartRef__":true,"id":2490}},"2629":{"timestamp":{"__isSmartRef__":true,"id":2630},"user":"jenslincke","tags":[]},"2630":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2631":{"varMapping":{"__isSmartRef__":true,"id":2632},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection;\n}","funcProperties":{"__isSmartRef__":true,"id":2633},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2632":{"this":{"__isSmartRef__":true,"id":2490}},"2633":{"timestamp":{"__isSmartRef__":true,"id":2634},"user":"lauritz","tags":[]},"2634":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2635":{"varMapping":{"__isSmartRef__":true,"id":2636},"source":"function isHighlighting() {\n return !!this.targetHighlight;\n}","funcProperties":{"__isSmartRef__":true,"id":2637},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2636":{"this":{"__isSmartRef__":true,"id":2490}},"2637":{"timestamp":{"__isSmartRef__":true,"id":2638},"user":"lauritz","tags":[]},"2638":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2639":{"varMapping":{"__isSmartRef__":true,"id":2640},"source":"function currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":2641},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2640":{"this":{"__isSmartRef__":true,"id":2490}},"2641":{"timestamp":{"__isSmartRef__":true,"id":2642},"user":"lauritz","tags":[]},"2642":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2643":{"varMapping":{"__isSmartRef__":true,"id":2644},"source":"function setupHighlightRectangle() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":2645},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2644":{"this":{"__isSmartRef__":true,"id":2490}},"2645":{"timestamp":{"__isSmartRef__":true,"id":2646},"user":"jenslincke","tags":[]},"2646":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2647":{"varMapping":{"__isSmartRef__":true,"id":2648},"source":"function setTarget(obj) {\n this.owner.setTarget(obj)\n}","funcProperties":{"__isSmartRef__":true,"id":2649},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2648":{"this":{"__isSmartRef__":true,"id":2490}},"2649":{"timestamp":{"__isSmartRef__":true,"id":2650},"user":"jenslincke","tags":[]},"2650":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2651":{"target":{"__isSmartRef__":true,"id":1571},"selector":"update","args":[],"stopped":false,"tickTime":500,"suspended":false,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"2652":{"_BorderWidth":1,"_BorderRadius":0,"_Opacity":1,"_BorderStyle":"solid","_ClipMode":"visible","__serializedExpressions__":["position","_Extent","_BorderColor","_Fill","_Padding"],"__LivelyClassName__":"lively.morphic.Shapes.Rectangle","__SourceModuleName__":"Global.lively.morphic.Shapes","position":"lively.pt(0.0,0.0)","_Extent":"lively.pt(832.0,404.8)","_BorderColor":"Color.rgb(95,94,95)","_Fill":"Color.rgb(255,255,255)","_Padding":"lively.rect(0,0,0,0)"},"2653":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":2654}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"2654":{"date":{"__isSmartRef__":true,"id":2655},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"2655":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2656":{"morph":{"__isSmartRef__":true,"id":1571},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"2657":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"2658":{},"2659":{"displayInitialScript":{"__isSmartRef__":true,"id":2660},"displayJavaScriptSource":{"__isSmartRef__":true,"id":2664},"displaySourceForConnection":{"__isSmartRef__":true,"id":2668},"displaySourceForScript":{"__isSmartRef__":true,"id":2672},"generateSourceForConnection":{"__isSmartRef__":true,"id":2676},"generateSourceForScript":{"__isSmartRef__":true,"id":2680},"generateTargetCode":{"__isSmartRef__":true,"id":2684},"newConnection":{"__isSmartRef__":true,"id":2688},"newScript":{"__isSmartRef__":true,"id":2692},"reset":{"__isSmartRef__":true,"id":2696},"selectChangedContent":{"__isSmartRef__":true,"id":2700},"setTarget":{"__isSmartRef__":true,"id":2704},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":2708},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":2712},"updateLists":{"__isSmartRef__":true,"id":2716},"onShutdown":{"__isSmartRef__":true,"id":2720},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":2724},"update":{"__isSmartRef__":true,"id":2728},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":2732},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":2736},"printTags":{"__isSmartRef__":true,"id":2744},"setTag":{"__isSmartRef__":true,"id":2748},"runScript":{"__isSmartRef__":true,"id":2752},"openPartTestRunner":{"__isSmartRef__":true,"id":2756},"hasUnsavedChanges":{"__isSmartRef__":true,"id":2760}},"2660":{"varMapping":{"__isSmartRef__":true,"id":2661},"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":2662},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2661":{"this":{"__isSmartRef__":true,"id":1571}},"2662":{"timestamp":{"__isSmartRef__":true,"id":2663},"user":"lauritz","tags":[]},"2663":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2664":{"varMapping":{"__isSmartRef__":true,"id":2665},"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":2666},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2665":{"this":{"__isSmartRef__":true,"id":1571}},"2666":{"timestamp":{"__isSmartRef__":true,"id":2667},"user":"lauritz","tags":[]},"2667":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2668":{"varMapping":{"__isSmartRef__":true,"id":2669},"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":2670},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2669":{"this":{"__isSmartRef__":true,"id":1571}},"2670":{"timestamp":{"__isSmartRef__":true,"id":2671},"user":"conradcalmez","tags":[]},"2671":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2672":{"varMapping":{"__isSmartRef__":true,"id":2673},"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 if (code) this.displayJavaScriptSource(code);\n}","funcProperties":{"__isSmartRef__":true,"id":2674},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2673":{"this":{"__isSmartRef__":true,"id":1571}},"2674":{"timestamp":{"__isSmartRef__":true,"id":2675},"user":"cschuster","tags":[]},"2675":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2676":{"varMapping":{"__isSmartRef__":true,"id":2677},"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":2678},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2677":{"this":{"__isSmartRef__":true,"id":1571}},"2678":{"timestamp":{"__isSmartRef__":true,"id":2679},"user":"lauritz","tags":[]},"2679":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2680":{"varMapping":{"__isSmartRef__":true,"id":2681},"source":"function generateSourceForScript(scriptName) {\n var script = this.target[scriptName],\n annotation = '',\n scriptSource = '',\n tagScript = '';\n\n if (!script) return;\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":2682},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2681":{"this":{"__isSmartRef__":true,"id":1571}},"2682":{"timestamp":{"__isSmartRef__":true,"id":2683},"user":"cschuster","tags":[]},"2683":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2684":{"varMapping":{"__isSmartRef__":true,"id":2685},"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":2686},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2685":{"this":{"__isSmartRef__":true,"id":1571}},"2686":{"timestamp":{"__isSmartRef__":true,"id":2687},"user":"lauritz","tags":[]},"2687":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2688":{"varMapping":{"__isSmartRef__":true,"id":2689},"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":2690},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2689":{"this":{"__isSmartRef__":true,"id":1571}},"2690":{"timestamp":{"__isSmartRef__":true,"id":2691},"user":"lauritz","tags":[]},"2691":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2692":{"varMapping":{"__isSmartRef__":true,"id":2693},"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":2694},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2693":{"this":{"__isSmartRef__":true,"id":1571}},"2694":{"timestamp":{"__isSmartRef__":true,"id":2695},"user":"lauritz","tags":[]},"2695":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2696":{"varMapping":{"__isSmartRef__":true,"id":2697},"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 \n this.target = null;\n this.currentTag = null;\n \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 \n this.stopStepping();\n}","funcProperties":{"__isSmartRef__":true,"id":2698},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"2697":{"this":{"__isSmartRef__":true,"id":1571}},"2698":{"timestamp":{"__isSmartRef__":true,"id":2699},"user":"lauritz","tags":[]},"2699":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"2700":{"varMapping":{"__isSmartRef__":true,"id":2701},"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