-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":570},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"569":{"this":{"__isSmartRef__":true,"id":84}},"570":{},"571":{"varMapping":{"__isSmartRef__":true,"id":572},"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":573},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"572":{"this":{"__isSmartRef__":true,"id":84}},"573":{},"574":{"varMapping":{"__isSmartRef__":true,"id":575},"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":576},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"575":{"this":{"__isSmartRef__":true,"id":84}},"576":{},"577":{"varMapping":{"__isSmartRef__":true,"id":578},"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":579},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"578":{"this":{"__isSmartRef__":true,"id":84}},"579":{},"580":{"varMapping":{"__isSmartRef__":true,"id":581},"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":673},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"672":{"this":{"__isSmartRef__":true,"id":648}},"673":{"timestamp":{"__isSmartRef__":true,"id":674},"user":"lauritz","categories":[]},"674":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"675":{"submorphs":[{"__isSmartRef__":true,"id":676}],"scripts":[],"id":"C87B11BF-C047-4C0E-A84A-50486F9CBE8C","shape":{"__isSmartRef__":true,"id":681},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":687},"lighterFill":{"__isSmartRef__":true,"id":692},"label":{"__isSmartRef__":true,"id":676},"attributeConnections":[{"__isSmartRef__":true,"id":697}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"showsHalos":false,"name":"ObjectEditorRemoveScriptButton","partsBinMetaInfo":{"__isSmartRef__":true,"id":699},"owner":{"__isSmartRef__":true,"id":77},"eventHandler":{"__isSmartRef__":true,"id":700},"isCopyMorphRef":true,"morphRefId":24,"draggingEnabled":false,"objectEditorPane":{"__isSmartRef__":true,"id":77},"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":701},"__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)"},"676":{"submorphs":[],"scripts":[],"id":"E4CF1460-0FB1-43B1-9958-363B39D4FC4C","shape":{"__isSmartRef__":true,"id":677},"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":675},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":678}],"prevScroll":[0,0],"_FontFamily":"Helvetica, Sans-Serif","_ClipMode":"hidden","_WhiteSpaceHandling":"pre-wrap","_Align":"center","eventHandler":{"__isSmartRef__":true,"id":680},"_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)"},"677":{"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)"},"678":{"style":{"__isSmartRef__":true,"id":679},"chunkOwner":{"__isSmartRef__":true,"id":676},"storedString":"-","_id":"_1363","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"679":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"680":{"morph":{"__isSmartRef__":true,"id":676},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"681":{"_Fill":{"__isSmartRef__":true,"id":682},"_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)"},"682":{"stops":[{"__isSmartRef__":true,"id":683},{"__isSmartRef__":true,"id":684},{"__isSmartRef__":true,"id":685},{"__isSmartRef__":true,"id":686}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"683":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"684":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"685":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"686":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"687":{"stops":[{"__isSmartRef__":true,"id":688},{"__isSmartRef__":true,"id":689},{"__isSmartRef__":true,"id":690},{"__isSmartRef__":true,"id":691}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"688":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"689":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"690":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"691":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"692":{"stops":[{"__isSmartRef__":true,"id":693},{"__isSmartRef__":true,"id":694},{"__isSmartRef__":true,"id":695},{"__isSmartRef__":true,"id":696}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"693":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"694":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"695":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"696":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"697":{"sourceObj":{"__isSmartRef__":true,"id":675},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":675},"targetMethodName":"deleteSelectedScript","converterString":null,"updaterString":null,"varMapping":{"__isSmartRef__":true,"id":698},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"698":{"source":{"__isSmartRef__":true,"id":675},"target":{"__isSmartRef__":true,"id":675}},"699":{"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"},"700":{"morph":{"__isSmartRef__":true,"id":675},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"701":{"deleteSelectedScript":{"__isSmartRef__":true,"id":702}},"702":{"varMapping":{"__isSmartRef__":true,"id":703},"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":704},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"703":{"this":{"__isSmartRef__":true,"id":675}},"704":{"timestamp":{"__isSmartRef__":true,"id":705},"user":"lauritz"},"705":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"706":{"submorphs":[{"__isSmartRef__":true,"id":707}],"scripts":[],"id":"BFA9D8B5-058C-4596-94EA-78BF9A59CD96","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":714},"lighterFill":{"__isSmartRef__":true,"id":719},"label":{"__isSmartRef__":true,"id":707},"showsHalos":false,"name":"ObjectEditorMorphSelector","partsBinMetaInfo":{"__isSmartRef__":true,"id":724},"list":[],"eventHandler":{"__isSmartRef__":true,"id":725},"owner":{"__isSmartRef__":true,"id":77},"textString":"","selection":{"__isSmartRef__":true,"id":726},"_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":732},"__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)"},"707":{"submorphs":[],"scripts":[],"id":"D0123CFA-F3A5-41E8-930E-1155D9AD98A4","shape":{"__isSmartRef__":true,"id":708},"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":706},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":709}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":711}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":712},"_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)"},"708":{"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)"},"709":{"style":{"__isSmartRef__":true,"id":710},"chunkOwner":{"__isSmartRef__":true,"id":707},"_id":"_28","storedString":"","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"710":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"711":{"sourceObj":{"__isSmartRef__":true,"id":707},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":706},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"712":{"morph":{"__isSmartRef__":true,"id":707},"__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(220.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.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"717":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"718":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"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(250,250,250)"},"721":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"722":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"723":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"724":{"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"},"725":{"morph":{"__isSmartRef__":true,"id":706},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"726":{"submorphs":[],"scripts":[],"id":181,"shape":{"__isSmartRef__":true,"id":727},"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":728},"textChunks":[{"__isSmartRef__":true,"id":729}],"eventHandler":{"__isSmartRef__":true,"id":731},"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)"},"727":{"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)"},"728":{"partsSpaceName":"PartsBin/Worlds/","comment":"For example a world title.","partName":"Title","migrationLevel":2,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"729":{"style":{"__isSmartRef__":true,"id":730},"chunkOwner":{"__isSmartRef__":true,"id":726},"storedString":"","_id":"_1365","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"730":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"731":{"morph":{"__isSmartRef__":true,"id":726},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"732":{"reset":{"__isSmartRef__":true,"id":733},"onMouseDown":{"__isSmartRef__":true,"id":737},"onBlur":{"__isSmartRef__":true,"id":745},"createScenePresentation":{"__isSmartRef__":true,"id":753},"presentTargetChooser":{"__isSmartRef__":true,"id":757},"removeTargetChooser":{"__isSmartRef__":true,"id":761},"removeHighlight":{"__isSmartRef__":true,"id":765},"highlightCurrentTarget":{"__isSmartRef__":true,"id":769},"updateTargetFromSelection":{"__isSmartRef__":true,"id":773},"currentMorphicScene":{"__isSmartRef__":true,"id":777},"highlightTarget":{"__isSmartRef__":true,"id":781},"setLabel":{"__isSmartRef__":true,"id":785},"updateTargetFromOwner":{"__isSmartRef__":true,"id":793}},"733":{"varMapping":{"__isSmartRef__":true,"id":734},"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":735},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"734":{"this":{"__isSmartRef__":true,"id":706}},"735":{"timestamp":{"__isSmartRef__":true,"id":736},"user":"lauritz","tags":[]},"736":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"737":{"varMapping":{"__isSmartRef__":true,"id":738},"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":743},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"738":{"this":{"__isSmartRef__":true,"id":706},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":739}},"739":{"$super":{"__isSmartRef__":true,"id":740}},"740":{"varMapping":{"__isSmartRef__":true,"id":741},"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":742},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"741":{"obj":{"__isSmartRef__":true,"id":706},"name":"onMouseDown"},"742":{},"743":{"timestamp":{"__isSmartRef__":true,"id":744},"user":"lauritz","tags":[]},"744":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"745":{"varMapping":{"__isSmartRef__":true,"id":746},"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":751},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"746":{"this":{"__isSmartRef__":true,"id":706},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":747}},"747":{"$super":{"__isSmartRef__":true,"id":748}},"748":{"varMapping":{"__isSmartRef__":true,"id":749},"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":750},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"749":{"obj":{"__isSmartRef__":true,"id":706},"name":"onBlur"},"750":{},"751":{"timestamp":{"__isSmartRef__":true,"id":752},"user":"lauritz","tags":[]},"752":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"753":{"varMapping":{"__isSmartRef__":true,"id":754},"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":755},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"754":{"this":{"__isSmartRef__":true,"id":706}},"755":{"timestamp":{"__isSmartRef__":true,"id":756},"user":"lauritz","tags":[]},"756":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"757":{"varMapping":{"__isSmartRef__":true,"id":758},"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":759},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"758":{"this":{"__isSmartRef__":true,"id":706}},"759":{"timestamp":{"__isSmartRef__":true,"id":760},"user":"lauritz","tags":[]},"760":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"761":{"varMapping":{"__isSmartRef__":true,"id":762},"source":"function removeTargetChooser() {\n if (this.listMorph) {\n this.listMorph.remove();\n delete this.listMorph; \n }\n}","funcProperties":{"__isSmartRef__":true,"id":763},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"762":{"this":{"__isSmartRef__":true,"id":706}},"763":{"timestamp":{"__isSmartRef__":true,"id":764},"user":"lauritz","tags":[]},"764":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"765":{"varMapping":{"__isSmartRef__":true,"id":766},"source":"function removeHighlight(node) {\n node.submorphs[0].setFill(Color.rgb(255,255,255))\n}","funcProperties":{"__isSmartRef__":true,"id":767},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"766":{"this":{"__isSmartRef__":true,"id":706}},"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 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":771},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"770":{"this":{"__isSmartRef__":true,"id":706}},"771":{"timestamp":{"__isSmartRef__":true,"id":772},"user":"lauritz","tags":[]},"772":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"773":{"varMapping":{"__isSmartRef__":true,"id":774},"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":775},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"774":{"this":{"__isSmartRef__":true,"id":706}},"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 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":779},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"778":{"this":{"__isSmartRef__":true,"id":706}},"779":{"timestamp":{"__isSmartRef__":true,"id":780},"user":"lauritz","tags":[]},"780":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"781":{"varMapping":{"__isSmartRef__":true,"id":782},"source":"function highlightTarget(node) {\n node.submorphs[0].setFill(Color.rgb(218,218,218))\n}","funcProperties":{"__isSmartRef__":true,"id":783},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"782":{"this":{"__isSmartRef__":true,"id":706}},"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 setLabel(label) {\n this.label.setTextString(label);\n this.label.setAlign('left');\n}","funcProperties":{"__isSmartRef__":true,"id":791},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"786":{"this":{"__isSmartRef__":true,"id":706},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":787}},"787":{"$super":{"__isSmartRef__":true,"id":788}},"788":{"varMapping":{"__isSmartRef__":true,"id":789},"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":790},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"789":{"obj":{"__isSmartRef__":true,"id":706},"name":"setLabel"},"790":{},"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 updateTargetFromOwner() {\n this.setLabel(this.owner.target);\n}","funcProperties":{"__isSmartRef__":true,"id":795},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"794":{"this":{"__isSmartRef__":true,"id":706}},"795":{"timestamp":{"__isSmartRef__":true,"id":796},"user":"lauritz","tags":[]},"796":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"797":{"submorphs":[],"scripts":[],"id":"D8E5BDC0-3DEC-42E3-8DC2-2750BA88AAEF","shape":{"__isSmartRef__":true,"id":798},"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":799},"textChunks":[{"__isSmartRef__":true,"id":800}],"charsReplaced":"Scripts","lastFindLoc":-7,"prevScroll":[0,0],"eventHandler":{"__isSmartRef__":true,"id":802},"_WhiteSpaceHandling":"pre-wrap","_MinTextWidth":64.8979476392384,"_ClipMode":"visible","draggingEnabled":false,"eventsAreIgnored":true,"isCopyMorphRef":true,"morphRefId":27,"owner":{"__isSmartRef__":true,"id":77},"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)"},"798":{"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)"},"799":{"partsSpaceName":"PartsBin/NewWorld","migrationLevel":1,"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"800":{"style":{"__isSmartRef__":true,"id":801},"chunkOwner":{"__isSmartRef__":true,"id":797},"storedString":"Tag:","_id":"_1367","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"801":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"802":{"morph":{"__isSmartRef__":true,"id":797},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"803":{"submorphs":[{"__isSmartRef__":true,"id":804}],"scripts":[],"id":"F61911EF-28B3-4970-8F92-C107552BC77B","shape":{"__isSmartRef__":true,"id":810},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"showsMorphMenu":true,"halosEnabled":true,"registeredForMouseEvents":true,"value":true,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":816},"lighterFill":{"__isSmartRef__":true,"id":821},"label":{"__isSmartRef__":true,"id":804},"showsHalos":false,"name":"ObjectEditorTagChooser","partsBinMetaInfo":{"__isSmartRef__":true,"id":826},"listMorph":null,"list":[],"eventHandler":{"__isSmartRef__":true,"id":827},"textString":"PartsBinBrowser","selection":"","_ClipMode":"visible","prevScroll":[0,0],"owner":{"__isSmartRef__":true,"id":77},"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":828},"__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)"},"804":{"submorphs":[],"scripts":[],"id":"C9643D24-653D-4039-A6E2-F53D814BA51C","shape":{"__isSmartRef__":true,"id":805},"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":803},"eventsAreIgnored":true,"textChunks":[{"__isSmartRef__":true,"id":806}],"prevScroll":[0,0],"attributeConnections":[{"__isSmartRef__":true,"id":808}],"doNotSerialize":["$$savedTextString"],"doNotCopyProperties":["$$savedTextString"],"eventHandler":{"__isSmartRef__":true,"id":809},"_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)"},"805":{"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)"},"806":{"style":{"__isSmartRef__":true,"id":807},"chunkOwner":{"__isSmartRef__":true,"id":804},"_id":"_17847","storedString":"all","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"807":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"808":{"sourceObj":{"__isSmartRef__":true,"id":804},"sourceAttrName":"savedTextString","targetObj":{"__isSmartRef__":true,"id":803},"targetMethodName":"selection","converterString":null,"updaterString":null,"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"809":{"morph":{"__isSmartRef__":true,"id":804},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"810":{"_Fill":{"__isSmartRef__":true,"id":811},"_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)"},"811":{"stops":[{"__isSmartRef__":true,"id":812},{"__isSmartRef__":true,"id":813},{"__isSmartRef__":true,"id":814},{"__isSmartRef__":true,"id":815}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"812":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(230,243,253)"},"813":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"814":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(171,215,248)"},"815":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(157,198,229)"},"816":{"stops":[{"__isSmartRef__":true,"id":817},{"__isSmartRef__":true,"id":818},{"__isSmartRef__":true,"id":819},{"__isSmartRef__":true,"id":820}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"817":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"818":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"819":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"820":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"821":{"stops":[{"__isSmartRef__":true,"id":822},{"__isSmartRef__":true,"id":823},{"__isSmartRef__":true,"id":824},{"__isSmartRef__":true,"id":825}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"822":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"823":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"824":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"825":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"826":{"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"},"827":{"morph":{"__isSmartRef__":true,"id":803},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"828":{"createListMorph":{"__isSmartRef__":true,"id":829},"getList":{"__isSmartRef__":true,"id":833},"removeList":{"__isSmartRef__":true,"id":837},"reset":{"__isSmartRef__":true,"id":841},"onMouseUp":{"__isSmartRef__":true,"id":845},"onBlur":{"__isSmartRef__":true,"id":853},"setTag":{"__isSmartRef__":true,"id":861}},"829":{"varMapping":{"__isSmartRef__":true,"id":830},"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":831},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"830":{"this":{"__isSmartRef__":true,"id":803}},"831":{"timestamp":{"__isSmartRef__":true,"id":832},"user":"lauritz","categories":[]},"832":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"833":{"varMapping":{"__isSmartRef__":true,"id":834},"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":835},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"834":{"this":{"__isSmartRef__":true,"id":803}},"835":{"timestamp":{"__isSmartRef__":true,"id":836},"user":"lauritz","tags":[]},"836":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"837":{"varMapping":{"__isSmartRef__":true,"id":838},"source":"function removeList() {\n this.listMorph && this.listMorph.remove()\n this.listMorph = null;\n}","funcProperties":{"__isSmartRef__":true,"id":839},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"838":{"this":{"__isSmartRef__":true,"id":803}},"839":{"timestamp":{"__isSmartRef__":true,"id":840},"user":"lauritz","categories":[]},"840":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"841":{"varMapping":{"__isSmartRef__":true,"id":842},"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":843},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"842":{"this":{"__isSmartRef__":true,"id":803}},"843":{"timestamp":{"__isSmartRef__":true,"id":844},"user":"lauritz","tags":[]},"844":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"845":{"varMapping":{"__isSmartRef__":true,"id":846},"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":851},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"846":{"this":{"__isSmartRef__":true,"id":803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":847}},"847":{"$super":{"__isSmartRef__":true,"id":848}},"848":{"varMapping":{"__isSmartRef__":true,"id":849},"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":850},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"849":{"obj":{"__isSmartRef__":true,"id":803},"name":"onMouseUp"},"850":{},"851":{"timestamp":{"__isSmartRef__":true,"id":852},"user":"lauritz","categories":[]},"852":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"853":{"varMapping":{"__isSmartRef__":true,"id":854},"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":859},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"854":{"this":{"__isSmartRef__":true,"id":803},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":855}},"855":{"$super":{"__isSmartRef__":true,"id":856}},"856":{"varMapping":{"__isSmartRef__":true,"id":857},"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":858},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"857":{"obj":{"__isSmartRef__":true,"id":803},"name":"onBlur"},"858":{},"859":{"timestamp":{"__isSmartRef__":true,"id":860},"user":"lauritz","categories":[]},"860":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"861":{"varMapping":{"__isSmartRef__":true,"id":862},"source":"function setTag(tag) {\n this.setLabel(tag || '');\n this.label.setAlign('left');\n this.owner.setTag(tag);\n}","funcProperties":{"__isSmartRef__":true,"id":863},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"862":{"this":{"__isSmartRef__":true,"id":803}},"863":{"timestamp":{"__isSmartRef__":true,"id":864},"user":"lauritz","categories":[]},"864":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"865":{"submorphs":[{"__isSmartRef__":true,"id":866}],"scripts":[],"id":"49C5A2C6-3FD8-4DBA-ACB2-DB28A99D26DD","shape":{"__isSmartRef__":true,"id":871},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":872},"lighterFill":{"__isSmartRef__":true,"id":877},"label":{"__isSmartRef__":true,"id":866},"name":"Button","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":882},"attributeConnections":[{"__isSmartRef__":true,"id":883}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":906},"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":77},"layout":{"__isSmartRef__":true,"id":907},"_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)"},"866":{"submorphs":[],"scripts":[],"id":"A704D80D-F07C-464B-958F-4CA381111CF8","shape":{"__isSmartRef__":true,"id":867},"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":865},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":868}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":870},"_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)"},"867":{"_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)"},"868":{"style":{"__isSmartRef__":true,"id":869},"chunkOwner":{"__isSmartRef__":true,"id":866},"storedString":"run","_id":"_1369","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"869":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"870":{"morph":{"__isSmartRef__":true,"id":866},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"871":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":872},"_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)"},"872":{"stops":[{"__isSmartRef__":true,"id":873},{"__isSmartRef__":true,"id":874},{"__isSmartRef__":true,"id":875},{"__isSmartRef__":true,"id":876}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"873":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"874":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"875":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"876":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"877":{"stops":[{"__isSmartRef__":true,"id":878},{"__isSmartRef__":true,"id":879},{"__isSmartRef__":true,"id":880},{"__isSmartRef__":true,"id":881}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"878":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"879":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"880":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"881":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"882":{"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"},"883":{"sourceObj":{"__isSmartRef__":true,"id":865},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":77},"targetMethodName":"runScript","visualConnector":{"__isSmartRef__":true,"id":884},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"884":{"submorphs":[{"__isSmartRef__":true,"id":885}],"scripts":[],"shape":{"__isSmartRef__":true,"id":892},"derivationIds":[null],"id":"C89B50A0-17E7-4D22-AE1D-5112520DAEE7","eventHandler":{"__isSmartRef__":true,"id":895},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":896},{"__isSmartRef__":true,"id":897}],"con":{"__isSmartRef__":true,"id":883},"showsMorphMenu":true,"showsHalos":false,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":898},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"885":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":886},"derivationIds":[null],"id":"2A71BE9E-6820-46AF-ACED-3C9BDCC918AF","eventHandler":{"__isSmartRef__":true,"id":891},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":884},"_Rotation":-3.130064002485303,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(0.0,0.0)"},"886":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":887},{"__isSmartRef__":true,"id":888},{"__isSmartRef__":true,"id":889},{"__isSmartRef__":true,"id":890}],"_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)"},"887":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"888":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"889":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"890":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"891":{"morph":{"__isSmartRef__":true,"id":885},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"892":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":893},{"__isSmartRef__":true,"id":894}],"_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)"},"893":{"isAbsolute":true,"x":829.7085000406639,"y":9.565843617262885,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"894":{"isAbsolute":true,"x":0,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"895":{"morph":{"__isSmartRef__":true,"id":884},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"896":{"morph":{"__isSmartRef__":true,"id":884},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"897":{"morph":{"__isSmartRef__":true,"id":884},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":885},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"898":{"morphMenuItems":{"__isSmartRef__":true,"id":899}},"899":{"varMapping":{"__isSmartRef__":true,"id":900},"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":905},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"900":{"this":{"__isSmartRef__":true,"id":884},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":901}},"901":{"$super":{"__isSmartRef__":true,"id":902}},"902":{"varMapping":{"__isSmartRef__":true,"id":903},"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":904},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"903":{"obj":{"__isSmartRef__":true,"id":884},"name":"morphMenuItems"},"904":{},"905":{},"906":{"morph":{"__isSmartRef__":true,"id":865},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"907":{"centeredHorizontal":false,"moveHorizontal":true},"908":{"submorphs":[{"__isSmartRef__":true,"id":909}],"scripts":[],"id":"9C290A6C-EC96-413C-9B61-D3655331FD17","shape":{"__isSmartRef__":true,"id":914},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":915},"lighterFill":{"__isSmartRef__":true,"id":920},"label":{"__isSmartRef__":true,"id":909},"name":"saveButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":925},"attributeConnections":[{"__isSmartRef__":true,"id":926}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":949},"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":950},"owner":{"__isSmartRef__":true,"id":77},"_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)"},"909":{"submorphs":[],"scripts":[],"id":"44616C4B-CDDF-4175-8154-09DA193BDEE5","shape":{"__isSmartRef__":true,"id":910},"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":908},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":911}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":913},"_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)"},"910":{"_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)"},"911":{"style":{"__isSmartRef__":true,"id":912},"chunkOwner":{"__isSmartRef__":true,"id":909},"storedString":"save","_id":"_1370","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"912":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"913":{"morph":{"__isSmartRef__":true,"id":909},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"914":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":915},"_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)"},"915":{"stops":[{"__isSmartRef__":true,"id":916},{"__isSmartRef__":true,"id":917},{"__isSmartRef__":true,"id":918},{"__isSmartRef__":true,"id":919}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"916":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"917":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"918":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"919":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"920":{"stops":[{"__isSmartRef__":true,"id":921},{"__isSmartRef__":true,"id":922},{"__isSmartRef__":true,"id":923},{"__isSmartRef__":true,"id":924}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"921":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"922":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"923":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"924":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"925":{"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"},"926":{"sourceObj":{"__isSmartRef__":true,"id":908},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":312},"targetMethodName":"doSave","visualConnector":{"__isSmartRef__":true,"id":927},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"927":{"submorphs":[{"__isSmartRef__":true,"id":928}],"scripts":[],"shape":{"__isSmartRef__":true,"id":935},"derivationIds":[null],"id":"F46012D5-C8BE-4E52-BF98-D052FDAAE17A","eventHandler":{"__isSmartRef__":true,"id":938},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":null,"controlPoints":[{"__isSmartRef__":true,"id":939},{"__isSmartRef__":true,"id":940}],"con":{"__isSmartRef__":true,"id":926},"showsMorphMenu":true,"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":941},"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"928":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":929},"derivationIds":[null],"id":"A2A83C78-09B8-473C-829B-198206D7A9E4","eventHandler":{"__isSmartRef__":true,"id":934},"__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":927},"_Rotation":3.077607197692381,"__serializedExpressions__":["_Position"],"__LivelyClassName__":"lively.morphic.Path","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs","_Position":"lively.pt(201.2,40.2)"},"929":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":930},{"__isSmartRef__":true,"id":931},{"__isSmartRef__":true,"id":932},{"__isSmartRef__":true,"id":933}],"_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)"},"930":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"931":{"isAbsolute":true,"x":-12,"y":6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"932":{"isAbsolute":true,"x":4,"y":0,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"933":{"isAbsolute":true,"x":-12,"y":-6,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"934":{"morph":{"__isSmartRef__":true,"id":928},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"935":{"dontChangeShape":false,"cachedVertices":null,"_PathElements":[{"__isSmartRef__":true,"id":936},{"__isSmartRef__":true,"id":937}],"_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)"},"936":{"isAbsolute":true,"x":679.4857209639925,"y":9.595948897894004,"__LivelyClassName__":"lively.morphic.Shapes.MoveTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"937":{"isAbsolute":true,"x":201.20421122525056,"y":40.24084224505009,"__LivelyClassName__":"lively.morphic.Shapes.LineTo","__SourceModuleName__":"Global.lively.morphic.PathShapes"},"938":{"morph":{"__isSmartRef__":true,"id":927},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"939":{"morph":{"__isSmartRef__":true,"id":927},"index":0,"connectedMagnet":null,"__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"940":{"morph":{"__isSmartRef__":true,"id":927},"index":1,"connectedMagnet":null,"marker":{"__isSmartRef__":true,"id":928},"markerDirection":"prev","__LivelyClassName__":"lively.morphic.ControlPoint","__SourceModuleName__":"Global.lively.morphic.AdditionalMorphs"},"941":{"morphMenuItems":{"__isSmartRef__":true,"id":942}},"942":{"varMapping":{"__isSmartRef__":true,"id":943},"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":948},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"943":{"this":{"__isSmartRef__":true,"id":927},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":944}},"944":{"$super":{"__isSmartRef__":true,"id":945}},"945":{"varMapping":{"__isSmartRef__":true,"id":946},"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":947},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"946":{"obj":{"__isSmartRef__":true,"id":927},"name":"morphMenuItems"},"947":{},"948":{},"949":{"morph":{"__isSmartRef__":true,"id":908},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"950":{"centeredHorizontal":false,"moveHorizontal":true},"951":{"submorphs":[{"__isSmartRef__":true,"id":952}],"scripts":[],"id":"48A1C499-0C85-434D-A903-4E6B925F8038","shape":{"__isSmartRef__":true,"id":957},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":958},"lighterFill":{"__isSmartRef__":true,"id":963},"label":{"__isSmartRef__":true,"id":952},"name":"openTestsButton","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":968},"attributeConnections":[{"__isSmartRef__":true,"id":969}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":970},"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":77},"_ClipMode":"visible","isPressed":false,"layout":{"__isSmartRef__":true,"id":971},"_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)"},"952":{"submorphs":[],"scripts":[],"id":"413852B7-E353-454D-8668-BF7C8C5300A9","shape":{"__isSmartRef__":true,"id":953},"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":951},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":954}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":956},"_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)"},"953":{"_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)"},"954":{"style":{"__isSmartRef__":true,"id":955},"chunkOwner":{"__isSmartRef__":true,"id":952},"storedString":"Tests","_id":"_1371","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"955":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"956":{"morph":{"__isSmartRef__":true,"id":952},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"957":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":958},"_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)"},"958":{"stops":[{"__isSmartRef__":true,"id":959},{"__isSmartRef__":true,"id":960},{"__isSmartRef__":true,"id":961},{"__isSmartRef__":true,"id":962}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"959":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"960":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"961":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"962":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"963":{"stops":[{"__isSmartRef__":true,"id":964},{"__isSmartRef__":true,"id":965},{"__isSmartRef__":true,"id":966},{"__isSmartRef__":true,"id":967}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"964":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"965":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"966":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"967":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"968":{"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"},"969":{"sourceObj":{"__isSmartRef__":true,"id":951},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":77},"targetMethodName":"openPartTestRunner","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"970":{"morph":{"__isSmartRef__":true,"id":951},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"971":{"moveHorizontal":true},"972":{"submorphs":[{"__isSmartRef__":true,"id":973},{"__isSmartRef__":true,"id":980}],"scripts":[],"id":"0FDFC89B-98A6-4AC5-93F6-6F3D349AF317","shape":{"__isSmartRef__":true,"id":983},"grabbingEnabled":false,"__layered_droppingEnabled__":false,"halosEnabled":true,"registeredForMouseEvents":true,"value":false,"toggle":false,"isActive":true,"normalFill":{"__isSmartRef__":true,"id":989},"lighterFill":{"__isSmartRef__":true,"id":994},"label":{"__isSmartRef__":true,"id":973},"name":"MagnifierButton2","showsHalos":false,"partsBinMetaInfo":{"__isSmartRef__":true,"id":999},"attributeConnections":[{"__isSmartRef__":true,"id":1005}],"doNotSerialize":["$$fire"],"doNotCopyProperties":["$$fire"],"eventHandler":{"__isSmartRef__":true,"id":1006},"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":1007},"isPressed":false,"prevScroll":[0,0],"layout":{"__isSmartRef__":true,"id":1083},"moved":true,"owner":{"__isSmartRef__":true,"id":77},"_PreviousBorderWidth":1.1840000000000002,"_Rotation":0,"_Scale":0.9822058852177662,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1084},"__LivelyClassName__":"lively.morphic.Button","__SourceModuleName__":"Global.lively.morphic.Widgets","_Position":"lively.pt(657.8,7.4)","distanceToDragEvent":"lively.pt(24.9,-13.0)"},"973":{"submorphs":[],"scripts":[],"id":"C4748268-2D1D-4117-8864-F90E1A5FAD7D","shape":{"__isSmartRef__":true,"id":974},"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":972},"isLabel":true,"eventsAreIgnored":true,"_ClipMode":"hidden","textChunks":[{"__isSmartRef__":true,"id":975},{"__isSmartRef__":true,"id":977}],"_Align":"center","eventHandler":{"__isSmartRef__":true,"id":979},"_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)"},"974":{"_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)"},"975":{"style":{"__isSmartRef__":true,"id":976},"chunkOwner":{"__isSmartRef__":true,"id":973},"storedString":"","_id":"_1372","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"976":{"__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"977":{"style":{"__isSmartRef__":true,"id":978},"chunkOwner":{"__isSmartRef__":true,"id":973},"storedString":"","_id":"_1373","__LivelyClassName__":"lively.morphic.TextChunk","__SourceModuleName__":"Global.lively.morphic.TextCore"},"978":{"textShadow":"0px 1px 0 rgba(255,255,255,1)","__LivelyClassName__":"lively.morphic.TextEmphasis","__SourceModuleName__":"Global.lively.morphic.TextCore"},"979":{"morph":{"__isSmartRef__":true,"id":973},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"980":{"submorphs":[],"scripts":[],"shape":{"__isSmartRef__":true,"id":981},"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":"4991FFEC-3207-4CEF-B804-F08C48F2DEB3","eventHandler":{"__isSmartRef__":true,"id":982},"_ClipMode":"visible","__layered_droppingEnabled__":true,"halosEnabled":true,"owner":{"__isSmartRef__":true,"id":972},"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)"},"981":{"_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)"},"982":{"morph":{"__isSmartRef__":true,"id":980},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"983":{"_BorderWidth":1,"_Fill":{"__isSmartRef__":true,"id":984},"_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)"},"984":{"stops":[{"__isSmartRef__":true,"id":985},{"__isSmartRef__":true,"id":986},{"__isSmartRef__":true,"id":987},{"__isSmartRef__":true,"id":988}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"985":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"986":{"offset":0.3,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"987":{"offset":0.7,"__serializedExpressions__":["color"],"color":"Color.rgb(221,221,221)"},"988":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(204,204,204)"},"989":{"stops":[{"__isSmartRef__":true,"id":990},{"__isSmartRef__":true,"id":991},{"__isSmartRef__":true,"id":992},{"__isSmartRef__":true,"id":993}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"990":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(245,245,245)"},"991":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"992":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(209,209,209)"},"993":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(240,240,240)"},"994":{"stops":[{"__isSmartRef__":true,"id":995},{"__isSmartRef__":true,"id":996},{"__isSmartRef__":true,"id":997},{"__isSmartRef__":true,"id":998}],"__serializedExpressions__":["vector"],"__LivelyClassName__":"lively.morphic.LinearGradient","__SourceModuleName__":"Global.lively.morphic.Shapes","vector":"lively.rect(0,0,0,1)"},"995":{"offset":0,"__serializedExpressions__":["color"],"color":"Color.rgb(250,250,250)"},"996":{"offset":0.4,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"997":{"offset":0.6,"__serializedExpressions__":["color"],"color":"Color.rgb(232,232,232)"},"998":{"offset":1,"__serializedExpressions__":["color"],"color":"Color.rgb(248,248,248)"},"999":{"partsSpaceName":"PartsBin/Inputs/","migrationLevel":4,"partName":"MagnifierButton","comment":"A magnifier, which calls setTarget: on the owner","changes":[{"__isSmartRef__":true,"id":1000},{"__isSmartRef__":true,"id":1002}],"revisionOnLoad":203770,"lastModifiedDate":{"__isSmartRef__":true,"id":1004},"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1000":{"date":{"__isSmartRef__":true,"id":1001},"author":"jenslincke","message":"no comment","id":"F343C38F-1923-4DD3-BF9B-4A4B6A7111D6"},"1001":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1002":{"date":{"__isSmartRef__":true,"id":1003},"author":"robertkrahn","message":"no comment","id":"0366C0A2-0C8E-4AEB-AAC3-120434134545"},"1003":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1004":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1005":{"sourceObj":{"__isSmartRef__":true,"id":972},"sourceAttrName":"fire","targetObj":{"__isSmartRef__":true,"id":972},"targetMethodName":"onFire","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1006":{"morph":{"__isSmartRef__":true,"id":972},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1007":{"submorphs":[],"scripts":[],"id":"364FF344-E489-461B-BC8C-ED45E4823ED4","shape":{"__isSmartRef__":true,"id":1008},"__layered_droppingEnabled__":true,"halosEnabled":true,"registeredForMouseEvents":true,"showsHalos":false,"name":"HighlightRectangle","partsBinMetaInfo":{"__isSmartRef__":true,"id":1009},"eventHandler":{"__isSmartRef__":true,"id":1050},"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":1051},"_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":972},"attributeConnections":[{"__isSmartRef__":true,"id":1056},{"__isSmartRef__":true,"id":1058},{"__isSmartRef__":true,"id":1060}],"isToolMorph":true,"isMetaTool":true,"__serializedExpressions__":["_Position","distanceToDragEvent"],"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1062},"__LivelyClassName__":"lively.morphic.Box","__SourceModuleName__":"Global.lively.morphic.Core","_Position":"lively.pt(900.8,445.9)","distanceToDragEvent":"lively.pt(44.0,-14.0)"},"1008":{"_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)"},"1009":{"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":1010},{"__isSmartRef__":true,"id":1012},{"__isSmartRef__":true,"id":1014},{"__isSmartRef__":true,"id":1016},{"__isSmartRef__":true,"id":1018},{"__isSmartRef__":true,"id":1020},{"__isSmartRef__":true,"id":1022},{"__isSmartRef__":true,"id":1024},{"__isSmartRef__":true,"id":1026},{"__isSmartRef__":true,"id":1028},{"__isSmartRef__":true,"id":1030},{"__isSmartRef__":true,"id":1032},{"__isSmartRef__":true,"id":1034},{"__isSmartRef__":true,"id":1036},{"__isSmartRef__":true,"id":1038},{"__isSmartRef__":true,"id":1040},{"__isSmartRef__":true,"id":1042},{"__isSmartRef__":true,"id":1044},{"__isSmartRef__":true,"id":1046},{"__isSmartRef__":true,"id":1048}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1010":{"date":{"__isSmartRef__":true,"id":1011},"author":"timfelgentreff","message":"no comment","id":"3DB7DB40-210A-4BED-91FD-9287005703EC"},"1011":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1012":{"date":{"__isSmartRef__":true,"id":1013},"author":"tessi","message":"no comment","id":"23D7AA12-66A9-4C3B-B494-131256C291AC"},"1013":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1014":{"date":{"__isSmartRef__":true,"id":1015},"author":"tessi","message":"no comment","id":"2C30B7CA-388F-4F51-B4CF-A2E50E381148"},"1015":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1016":{"date":{"__isSmartRef__":true,"id":1017},"author":"tessi","message":"diable events","id":"7C1F71A3-FDAC-470A-B9A9-E1F2C9FEF18E"},"1017":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1018":{"date":{"__isSmartRef__":true,"id":1019},"author":"tessi","message":"no comment","id":"01996A33-11BC-4C15-96D7-B7D219E2E961"},"1019":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1020":{"date":{"__isSmartRef__":true,"id":1021},"author":"undefined","message":"whoopsie","id":"3F17A2D2-3C24-424B-B0FA-E43112267D23"},"1021":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1022":{"date":{"__isSmartRef__":true,"id":1023},"author":"undefined","message":"whoopsie","id":"CEA5DCD5-2DB7-40AD-A776-262A7A0666FC"},"1023":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1024":{"date":{"__isSmartRef__":true,"id":1025},"author":"undefined","message":"sorry","id":"44B56D2E-9B59-4C67-A305-49A6E10E66C2"},"1025":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1026":{"date":{"__isSmartRef__":true,"id":1027},"author":"fbo","message":"","id":"BD1C654D-9100-4B66-BC62-B15FF2498B2B"},"1027":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1028":{"date":{"__isSmartRef__":true,"id":1029},"author":"undefined","message":"css transitions","id":"1004E0FC-D96B-4F40-B3E0-F514A3FCFFD7"},"1029":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1030":{"date":{"__isSmartRef__":true,"id":1031},"author":"undefined","message":"suddenly, the rectangle became a CarDemo","id":"B5083AA8-9BAE-48DD-A6B4-FD7DB3998350"},"1031":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1032":{"date":{"__isSmartRef__":true,"id":1033},"author":"tessi","message":"no comment","id":"4B982A01-25B3-455A-848D-89C2C3C471D7"},"1033":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1034":{"date":{"__isSmartRef__":true,"id":1035},"author":"tessi","message":"no comment","id":"2FD6CB7B-3BC7-4666-98B4-AACF1001954D"},"1035":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1036":{"date":{"__isSmartRef__":true,"id":1037},"author":"tessi","message":"no comment","id":"09CF5ECF-2C87-4B66-A164-39848628596F"},"1037":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1038":{"date":{"__isSmartRef__":true,"id":1039},"author":"tessi","message":"no comment","id":"252A3EB5-DB00-4CF9-BF38-2927DD1C5229"},"1039":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1040":{"date":{"__isSmartRef__":true,"id":1041},"author":"tessi","message":"no comment","id":"81534551-62C1-4FC9-96CB-A5AC6642CA1E"},"1041":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1042":{"date":{"__isSmartRef__":true,"id":1043},"author":"tessi","message":"no comment","id":"5125DE3A-D50E-4621-8490-F3A9D99C2C4C"},"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":"C81A2FBF-CB0B-4A0B-9D63-F9AEDFCB5DA6"},"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":"DC8EF5EC-7563-45B6-816D-20E2DC218525"},"1047":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1048":{"date":{"__isSmartRef__":true,"id":1049},"author":"timfelgentreff","message":"no comment","id":"E7515DFB-DE7D-4E1F-A2C3-85166DCE4942"},"1049":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1050":{"morph":{"__isSmartRef__":true,"id":1007},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1051":{"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1052}},"1052":{"test01IsMorph":{"__isSmartRef__":true,"id":1053}},"1053":{"varMapping":{"__isSmartRef__":true,"id":1054},"source":"function test01IsMorph(aPart) {\n this.assert(aPart.isMorph, 'rectangle should be a morph');\n}","funcProperties":{"__isSmartRef__":true,"id":1055},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1054":{"this":{"__isSmartRef__":true,"id":1051}},"1055":{},"1056":{"sourceObj":{"__isSmartRef__":true,"id":1007},"sourceAttrName":"onMouseMove","targetObj":{"__isSmartRef__":true,"id":1007},"targetMethodName":"updateOnMove","varMapping":{"__isSmartRef__":true,"id":1057},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1057":{"source":{"__isSmartRef__":true,"id":1007},"target":{"__isSmartRef__":true,"id":1007}},"1058":{"sourceObj":{"__isSmartRef__":true,"id":1007},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":972},"targetMethodName":"removeHighlighting","varMapping":{"__isSmartRef__":true,"id":1059},"__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1059":{"source":{"__isSmartRef__":true,"id":1007},"target":{"__isSmartRef__":true,"id":972}},"1060":{"sourceObj":{"__isSmartRef__":true,"id":1007},"sourceAttrName":"onMouseUp","targetObj":{"__isSmartRef__":true,"id":972},"targetMethodName":"setTarget","varMapping":{"__isSmartRef__":true,"id":1061},"converterString":"function () {\n return this.sourceObj.morphUnderCursor();\n }","__LivelyClassName__":"AttributeConnection","__SourceModuleName__":"Global.lively.bindings.Core"},"1061":{"source":{"__isSmartRef__":true,"id":1007},"target":{"__isSmartRef__":true,"id":972}},"1062":{"update":{"__isSmartRef__":true,"id":1063},"updateOnMove":{"__isSmartRef__":true,"id":1067},"bringToFront":{"__isSmartRef__":true,"id":1071},"morphUnderCursor":{"__isSmartRef__":true,"id":1079}},"1063":{"varMapping":{"__isSmartRef__":true,"id":1064},"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":1065},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1064":{"this":{"__isSmartRef__":true,"id":1007}},"1065":{"timestamp":{"__isSmartRef__":true,"id":1066},"user":"lauritz","tags":[]},"1066":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1067":{"varMapping":{"__isSmartRef__":true,"id":1068},"source":"function updateOnMove() {\n this.update(this.morphUnderCursor());\n this.bringToFront();\n}","funcProperties":{"__isSmartRef__":true,"id":1069},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1068":{"this":{"__isSmartRef__":true,"id":1007}},"1069":{"timestamp":{"__isSmartRef__":true,"id":1070},"user":"lauritz","tags":[]},"1070":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1071":{"varMapping":{"__isSmartRef__":true,"id":1072},"source":"function bringToFront() {\n this.renderContext().morphNode.style.zIndex= 1000;\n}","funcProperties":{"__isSmartRef__":true,"id":1077},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1072":{"this":{"__isSmartRef__":true,"id":1007},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1073}},"1073":{"$super":{"__isSmartRef__":true,"id":1074}},"1074":{"varMapping":{"__isSmartRef__":true,"id":1075},"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":1076},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1075":{"obj":{"__isSmartRef__":true,"id":1007},"name":"bringToFront"},"1076":{},"1077":{"timestamp":{"__isSmartRef__":true,"id":1078},"user":"lauritz","tags":[]},"1078":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1079":{"varMapping":{"__isSmartRef__":true,"id":1080},"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":1081},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1080":{"this":{"__isSmartRef__":true,"id":1007}},"1081":{"timestamp":{"__isSmartRef__":true,"id":1082},"user":"lauritz","tags":[]},"1082":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1083":{"moveHorizontal":true},"1084":{"onFire":{"__isSmartRef__":true,"id":1085},"removeHighlighting":{"__isSmartRef__":true,"id":1089},"onMouseMove":{"__isSmartRef__":true,"id":1093},"onMouseOut":{"__isSmartRef__":true,"id":1101},"reset":{"__isSmartRef__":true,"id":1109},"isTracking":{"__isSmartRef__":true,"id":1113},"isHighlighting":{"__isSmartRef__":true,"id":1117},"currentTarget":{"__isSmartRef__":true,"id":1121},"setupHighlightRectangle":{"__isSmartRef__":true,"id":1125},"setTarget":{"__isSmartRef__":true,"id":1129}},"1085":{"varMapping":{"__isSmartRef__":true,"id":1086},"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":1087},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1086":{"this":{"__isSmartRef__":true,"id":972}},"1087":{"timestamp":{"__isSmartRef__":true,"id":1088},"user":"lauritz","tags":[]},"1088":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1089":{"varMapping":{"__isSmartRef__":true,"id":1090},"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":1091},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1090":{"this":{"__isSmartRef__":true,"id":972}},"1091":{"timestamp":{"__isSmartRef__":true,"id":1092},"user":"jenslincke","tags":[]},"1092":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1093":{"varMapping":{"__isSmartRef__":true,"id":1094},"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":1099},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1094":{"this":{"__isSmartRef__":true,"id":972},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1095}},"1095":{"$super":{"__isSmartRef__":true,"id":1096}},"1096":{"varMapping":{"__isSmartRef__":true,"id":1097},"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":1098},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1097":{"obj":{"__isSmartRef__":true,"id":972},"name":"onMouseMove"},"1098":{},"1099":{"timestamp":{"__isSmartRef__":true,"id":1100},"user":"lauritz","tags":[]},"1100":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1101":{"varMapping":{"__isSmartRef__":true,"id":1102},"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":1107},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1102":{"this":{"__isSmartRef__":true,"id":972},"__serializedLivelyClosures__":{"__isSmartRef__":true,"id":1103}},"1103":{"$super":{"__isSmartRef__":true,"id":1104}},"1104":{"varMapping":{"__isSmartRef__":true,"id":1105},"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":1106},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1105":{"obj":{"__isSmartRef__":true,"id":972},"name":"onMouseOut"},"1106":{},"1107":{"timestamp":{"__isSmartRef__":true,"id":1108},"user":"lauritz","tags":[]},"1108":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1109":{"varMapping":{"__isSmartRef__":true,"id":1110},"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":1111},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1110":{"this":{"__isSmartRef__":true,"id":972}},"1111":{"timestamp":{"__isSmartRef__":true,"id":1112},"user":"jenslincke","tags":[]},"1112":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1113":{"varMapping":{"__isSmartRef__":true,"id":1114},"source":"function isTracking() {\n return !!this.world().firstHand().highlightConnection;\n}","funcProperties":{"__isSmartRef__":true,"id":1115},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1114":{"this":{"__isSmartRef__":true,"id":972}},"1115":{"timestamp":{"__isSmartRef__":true,"id":1116},"user":"lauritz","tags":[]},"1116":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1117":{"varMapping":{"__isSmartRef__":true,"id":1118},"source":"function isHighlighting() {\n return !!this.targetHighlight;\n}","funcProperties":{"__isSmartRef__":true,"id":1119},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1118":{"this":{"__isSmartRef__":true,"id":972}},"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 currentTarget() {\n return this.owner.target;\n}","funcProperties":{"__isSmartRef__":true,"id":1123},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1122":{"this":{"__isSmartRef__":true,"id":972}},"1123":{"timestamp":{"__isSmartRef__":true,"id":1124},"user":"lauritz","tags":[]},"1124":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1125":{"varMapping":{"__isSmartRef__":true,"id":1126},"source":"function setupHighlightRectangle() {\n \n}","funcProperties":{"__isSmartRef__":true,"id":1127},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1126":{"this":{"__isSmartRef__":true,"id":972}},"1127":{"timestamp":{"__isSmartRef__":true,"id":1128},"user":"jenslincke","tags":[]},"1128":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1129":{"varMapping":{"__isSmartRef__":true,"id":1130},"source":"function setTarget(obj) {\n this.owner.setTarget(obj)\n}","funcProperties":{"__isSmartRef__":true,"id":1131},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1130":{"this":{"__isSmartRef__":true,"id":972}},"1131":{"timestamp":{"__isSmartRef__":true,"id":1132},"user":"jenslincke","tags":[]},"1132":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1133":{"target":{"__isSmartRef__":true,"id":77},"selector":"update","args":[],"stopped":false,"tickTime":500,"__LivelyClassName__":"lively.morphic.TargetScript","__SourceModuleName__":"Global.lively.morphic.Core"},"1134":{"_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)"},"1135":{"partsSpaceName":"PartsBin/Basic","comment":"Edit scripts and connections of a specific morph.","migrationLevel":4,"partName":"ObjectEditorPane","changes":[{"__isSmartRef__":true,"id":1136}],"__LivelyClassName__":"lively.PartsBin.PartsBinMetaInfo","__SourceModuleName__":"Global.lively.PartsBin"},"1136":{"date":{"__isSmartRef__":true,"id":1137},"author":"lauritz","message":"Adapted the update behavior on ticks. Reduces the impact of HTML's autoscroll to selected list items."},"1137":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1138":{"morph":{"__isSmartRef__":true,"id":77},"__LivelyClassName__":"lively.morphic.EventHandler","__SourceModuleName__":"Global.lively.morphic.Events"},"1139":{"resizeWidth":true,"resizeHeight":true,"adjustForNewBounds":true},"1140":{},"1141":{"displayInitialScript":{"__isSmartRef__":true,"id":1142},"displayJavaScriptSource":{"__isSmartRef__":true,"id":1146},"displaySourceForConnection":{"__isSmartRef__":true,"id":1150},"displaySourceForScript":{"__isSmartRef__":true,"id":1154},"generateSourceForConnection":{"__isSmartRef__":true,"id":1158},"generateSourceForScript":{"__isSmartRef__":true,"id":1162},"generateTargetCode":{"__isSmartRef__":true,"id":1166},"newConnection":{"__isSmartRef__":true,"id":1170},"newScript":{"__isSmartRef__":true,"id":1174},"reset":{"__isSmartRef__":true,"id":1178},"selectChangedContent":{"__isSmartRef__":true,"id":1182},"setTarget":{"__isSmartRef__":true,"id":1186},"sortedConnectionNamesOfObj":{"__isSmartRef__":true,"id":1190},"sortedScriptNamesOfObj":{"__isSmartRef__":true,"id":1194},"updateLists":{"__isSmartRef__":true,"id":1198},"onShutdown":{"__isSmartRef__":true,"id":1202},"confirmUnsavedChanges":{"__isSmartRef__":true,"id":1206},"update":{"__isSmartRef__":true,"id":1210},"ensureAnnotationLayer":{"__isSmartRef__":true,"id":1214},"copyToPartsBinWithUserRequest":{"__isSmartRef__":true,"id":1218},"printTags":{"__isSmartRef__":true,"id":1226},"setTag":{"__isSmartRef__":true,"id":1230},"runScript":{"__isSmartRef__":true,"id":1234},"openPartTestRunner":{"__isSmartRef__":true,"id":1238},"hasUnsavedChanges":{"__isSmartRef__":true,"id":1242}},"1142":{"varMapping":{"__isSmartRef__":true,"id":1143},"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":1144},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1143":{"this":{"__isSmartRef__":true,"id":77}},"1144":{"timestamp":{"__isSmartRef__":true,"id":1145},"user":"lauritz","tags":[]},"1145":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1146":{"varMapping":{"__isSmartRef__":true,"id":1147},"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":1148},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1147":{"this":{"__isSmartRef__":true,"id":77}},"1148":{"timestamp":{"__isSmartRef__":true,"id":1149},"user":"lauritz","tags":[]},"1149":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1150":{"varMapping":{"__isSmartRef__":true,"id":1151},"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":1152},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1151":{"this":{"__isSmartRef__":true,"id":77}},"1152":{"timestamp":{"__isSmartRef__":true,"id":1153},"user":"conradcalmez","tags":[]},"1153":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1154":{"varMapping":{"__isSmartRef__":true,"id":1155},"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":1156},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1155":{"this":{"__isSmartRef__":true,"id":77}},"1156":{"timestamp":{"__isSmartRef__":true,"id":1157},"user":"cschuster","tags":[]},"1157":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1158":{"varMapping":{"__isSmartRef__":true,"id":1159},"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":1160},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1159":{"this":{"__isSmartRef__":true,"id":77}},"1160":{"timestamp":{"__isSmartRef__":true,"id":1161},"user":"lauritz","tags":[]},"1161":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1162":{"varMapping":{"__isSmartRef__":true,"id":1163},"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":1164},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1163":{"this":{"__isSmartRef__":true,"id":77}},"1164":{"timestamp":{"__isSmartRef__":true,"id":1165},"user":"cschuster","tags":[]},"1165":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1166":{"varMapping":{"__isSmartRef__":true,"id":1167},"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":1168},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1167":{"this":{"__isSmartRef__":true,"id":77}},"1168":{"timestamp":{"__isSmartRef__":true,"id":1169},"user":"lauritz","tags":[]},"1169":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1170":{"varMapping":{"__isSmartRef__":true,"id":1171},"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":1172},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1171":{"this":{"__isSmartRef__":true,"id":77}},"1172":{"timestamp":{"__isSmartRef__":true,"id":1173},"user":"lauritz","tags":[]},"1173":{"isSerializedDate":true,"string":"Wed Dec 31 1969 16:00:00 GMT-0800 (PST)"},"1174":{"varMapping":{"__isSmartRef__":true,"id":1175},"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":1176},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1175":{"this":{"__isSmartRef__":true,"id":77}},"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 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":1180},"__LivelyClassName__":"lively.Closure","__SourceModuleName__":"Global.lively.lang.Closure"},"1179":{"this":{"__isSmartRef__":true,"id":77}},"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 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